Static IP makes network unusable. Topic is solved

Having issues with your DietPi installation or found a bug? Post it here.
User avatar
Joulinar
Posts: 4502
Joined: Sat Nov 16, 2019 12:49 am

Re: Static IP makes network unusable.

Post by Joulinar »

traceroute is not installed by default. Therefore command is not working.

ifconfig depreciated and was replaced by ip command long time ago
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
maya95
Posts: 48
Joined: Tue Apr 20, 2021 12:20 pm

Re: Static IP makes network unusable.

Post by maya95 »

OK. Traceroute installed itself while waiting in ssh session. Traced to 8.8.8.8 fine.

Code: Select all

root@DietPi:~# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether 00:0c:29:f4:ac:2e brd ff:ff:ff:ff:ff:ff
    inet 192.168.0.103/24 brd 192.168.0.255 scope global dynamic eth0
       valid_lft 5892sec preferred_lft 5892sec
    inet6 fe80::20c:29ff:fef4:ac2e/64 scope link
       valid_lft forever preferred_lft forever
User avatar
Joulinar
Posts: 4502
Joined: Sat Nov 16, 2019 12:49 am

Re: Static IP makes network unusable.

Post by Joulinar »

Do you still have an issue?
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
User avatar
trendy
Posts: 292
Joined: Tue Feb 25, 2020 2:54 pm

Re: Static IP makes network unusable.

Post by trendy »

Is this the DHCP scenario?
Can you repeat the ip neigh show ?
Is there any chance that you are running some kind of dhcp snooping or port-security?
maya95
Posts: 48
Joined: Tue Apr 20, 2021 12:20 pm

Re: Static IP makes network unusable.

Post by maya95 »

Joulinar wrote: Tue Apr 20, 2021 2:50 pm Do you still have an issue?
Yes.

Code: Select all

Virtual Machine (x86_64) | IP: 192.168.0.5



┌──────────────────────────────┤ DietPi-Config ├───────────────────────────────┐
│ Please select an option to change:                                           │
│                                                                              │
│                          ●─ Adapter Options ──────────────●                  │
│                 Ethernet : Available | [On] | Connected                      │
│                 WiFi     : Not Found | [Off] | Disconnected                  │
│                          ●─ Additional Options ───────────●                  │
│                 IPv6     : [Off]                                             │
│                 Proxy    : [Off]                                             │
│                 Test     : [Failure] | Offline                               │
│                                                                              │
│                                                                              │
│                     <Ok>                         <Back>                      │
│                                                                              │
└──────────────────────────────────────────────────────────────────────────────┘
maya95
Posts: 48
Joined: Tue Apr 20, 2021 12:20 pm

Re: Static IP makes network unusable.

Post by maya95 »

trendy wrote: Tue Apr 20, 2021 2:51 pm Is this the DHCP scenario?
Can you repeat the ip neigh show ?
Is there any chance that you are running some kind of dhcp snooping or port-security?
1. static / DNS set to 1.1.1.1 and 1.0.0.1
2.

Code: Select all

192.168.0.1 dev eth0 lladdr b8:a3:86:fb:54:f4 REACHABLE
192.168.0.22 dev eth0 lladdr 00:60:6e:01:11:3a STALE
192.168.0.21 dev eth0 lladdr 64:00:6a:59:65:16 REACHABLE
3. no
Last edited by maya95 on Tue Apr 20, 2021 3:13 pm, edited 1 time in total.
maya95
Posts: 48
Joined: Tue Apr 20, 2021 12:20 pm

Re: Static IP makes network unusable.

Post by maya95 »

Noticed that when I reboot the VM, I got these messages and it counted to 60/60

Image
User avatar
Joulinar
Posts: 4502
Joined: Sat Nov 16, 2019 12:49 am

Re: Static IP makes network unusable.

Post by Joulinar »

can you do following and share the output

Code: Select all

ping -4 -c 1 one.one.one.one
ping -4 -c 1 1.1.1.1

Code: Select all

ping -4 -c 1 dns9.quad9.net
ping -4 -c 9.9.9.9
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
maya95
Posts: 48
Joined: Tue Apr 20, 2021 12:20 pm

Re: Static IP makes network unusable.

Post by maya95 »

Code: Select all

root@DietPi:~# ping -4 -c 1 one.one.one.one
PING one.one.one.one (1.0.0.1) 56(84) bytes of data.
64 bytes from one.one.one.one (1.0.0.1): icmp_seq=1 ttl=60 time=10.3 ms

--- one.one.one.one ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 10.333/10.333/10.333/0.000 ms
root@DietPi:~# ping -4 -c 1 1.1.1.1
PING 1.1.1.1 (1.1.1.1) 56(84) bytes of data.
64 bytes from 1.1.1.1: icmp_seq=1 ttl=60 time=51.7 ms

--- 1.1.1.1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 51.693/51.693/51.693/0.000 ms
root@DietPi:~# ping -4 -c 1 dns9.quad9.net
PING dns9.quad9.net (149.112.112.9) 56(84) bytes of data.
64 bytes from dns9.quad9.net (149.112.112.9): icmp_seq=1 ttl=56 time=42.6 ms

--- dns9.quad9.net ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 42.643/42.643/42.643/0.000 ms
root@DietPi:~# ping -4 -c 9.9.9.9
Usage: ping [-aAbBdDfhLnOqrRUvV64] [-c count] [-i interval] [-I interface]
            [-m mark] [-M pmtudisc_option] [-l preload] [-p pattern] [-Q tos]
            [-s packetsize] [-S sndbuf] [-t ttl] [-T timestamp_option]
            [-w deadline] [-W timeout] [hop1 ...] destination
Usage: ping -6 [-aAbBdDfhLnOqrRUvV] [-c count] [-i interval] [-I interface]
             [-l preload] [-m mark] [-M pmtudisc_option]
             [-N nodeinfo_option] [-p pattern] [-Q tclass] [-s packetsize]
             [-S sndbuf] [-t ttl] [-T timestamp_option] [-w deadline]
             [-W timeout] destination
root@DietPi:~#
maya95
Posts: 48
Joined: Tue Apr 20, 2021 12:20 pm

Re: Static IP makes network unusable.

Post by maya95 »

OK. Last command should be
ping -4 -c 1 9.9.9.9

I's all good. But in Dietpi-Config network test https://dietpi.com , https://google.com http://apple.com always fail.

Code: Select all

PING 9.9.9.9 (9.9.9.9) 56(84) bytes of data.
64 bytes from 9.9.9.9: icmp_seq=1 ttl=56 time=40.0 ms

--- 9.9.9.9 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 39.997/39.997/39.997/0.000 ms
Last edited by maya95 on Tue Apr 20, 2021 3:52 pm, edited 1 time in total.
Post Reply