# Static IP makes network unusable.

**URL:** https://dietpi.com/forum/t/static-ip-makes-network-unusable/5232
**Category:** Troubleshooting
**Created:** [20 April 2021 10:34 UTC](https://dietpi.com/forum/t/static-ip-makes-network-unusable/5232 "2021-04-20T10:34:29Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![maya95](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/m/7993a0/32.png) [@maya95](https://dietpi.com/forum/u/maya95)
#### Post date: [20 April 2021 10:34 UTC](https://dietpi.com/forum/t/static-ip-makes-network-unusable/5232/1 "2021-04-20T10:34:29Z")

</div>

I’m using newest VMWare x86 vmdk buster image. Tested multiple times.

Whenever I set static IP for IPv4, the whole network stop working. Can’t ping anything, network test always fail.

Disabling IPv6 did not hep. Changing DNS servers did not help .(Ex. change DNS from quad9 to Google)

Changing timezone also didn’t help. It makes using DietPi as a server impossible.

IIRC, it’s been like this even a year ago.

![](https://i.imgur.com/tXBluL3.png)

---

<div class="post-metadata">

### Author: ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)
#### Post date: [20 April 2021 10:36 UTC](https://dietpi.com/forum/t/static-ip-makes-network-unusable/5232/2 "2021-04-20T10:36:48Z")

</div>

Can you set it to DHCP and run ip a. Once done set it to STATIC and run ip a again

---

<div class="post-metadata">

### Author: ![maya95](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/m/7993a0/32.png) [@maya95](https://dietpi.com/forum/u/maya95)
#### Post date: [20 April 2021 11:17 UTC](https://dietpi.com/forum/t/static-ip-makes-network-unusable/5232/3 "2021-04-20T11:17:27Z")

</div>

Still fails after execute ip a command.

![](https://i.imgur.com/6Ijpk2A.png)

---

<div class="post-metadata">

### Author: ![trendy](https://dietpi.com/forum/user_avatar/dietpi.com/trendy/32/61_2.png) [@trendy](https://dietpi.com/forum/u/trendy)
#### Post date: [20 April 2021 11:17 UTC](https://dietpi.com/forum/t/static-ip-makes-network-unusable/5232/4 "2021-04-20T11:17:58Z")

</div>

There is an issue resolving the address.  
First make sure you can reach the nameserver: traceroute 8.8.8.8  
Then verify that the correct nameserver is used:

```nohighlight
head -n -0 /etc/resolv.conf 
head -n -0 /etc/resolvconf/resolv.conf.d/*
nslookup dietpi.com

```

Post also the output of the following

```nohighlight
ip -4 addr; ip -4 ro; ip -4 ru; ip neigh show

```

---

<div class="post-metadata">

### Author: ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)
#### Post date: [20 April 2021 11:30 UTC](https://dietpi.com/forum/t/static-ip-makes-network-unusable/5232/5 "2021-04-20T11:30:23Z")

</div>

ip a doesn’t do anything. It’s showing current configuration only. Pls share the output for DHCP as well as STATIC

---

<div class="post-metadata">

### Author: ![maya95](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/m/7993a0/32.png) [@maya95](https://dietpi.com/forum/u/maya95)
#### Post date: [20 April 2021 11:32 UTC](https://dietpi.com/forum/t/static-ip-makes-network-unusable/5232/6 "2021-04-20T11:32:40Z")

</div>

missing commands and files.

![](https://i.imgur.com/Z8RJG1U.png)

---

<div class="post-metadata">

### Author: ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)
#### Post date: [20 April 2021 11:39 UTC](https://dietpi.com/forum/t/static-ip-makes-network-unusable/5232/7 "2021-04-20T11:39:09Z")

</div>

There is no need to create screen shots, you can easily copy the content from SSH terminal. This is way better reading than looking at a screen shot

---

<div class="post-metadata">

### Author: ![maya95](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/m/7993a0/32.png) [@maya95](https://dietpi.com/forum/u/maya95)
#### Post date: [20 April 2021 11:43 UTC](https://dietpi.com/forum/t/static-ip-makes-network-unusable/5232/8 "2021-04-20T11:43:59Z")

</div>

OK. It won’t even let me run DietPi-Software since the DNS could not be reached, however.

BTW, I’m a Windows guy. I might need to recreate the VM. It just blue screen and stops working after I exit to the command line.

---

<div class="post-metadata">

### Author: ![trendy](https://dietpi.com/forum/user_avatar/dietpi.com/trendy/32/61_2.png) [@trendy](https://dietpi.com/forum/u/trendy)
#### Post date: [20 April 2021 12:27 UTC](https://dietpi.com/forum/t/static-ip-makes-network-unusable/5232/9 "2021-04-20T12:27:55Z")

</div>

Your configuration looks correct. However The fact that arp entry to the gateway is stale shows that there is something misconfigured with the VM.

---

<div class="post-metadata">

### Author: ![maya95](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/m/7993a0/32.png) [@maya95](https://dietpi.com/forum/u/maya95)
#### Post date: [20 April 2021 12:30 UTC](https://dietpi.com/forum/t/static-ip-makes-network-unusable/5232/10 "2021-04-20T12:30:32Z")

</div>

New VM. login through ssh (putty)

Noticed that the dietpi upgrade itself from 6.x to 7.0.2, only selected SAMBA being installed.

==

```nohighlight
login as: root
root@192.168.0.103's password:
 ─────────────────────────────────────────────────────
 DietPi v7.0.2 : 13:26 - Tue 04/20/21
 ─────────────────────────────────────────────────────
 - Device model : Virtual Machine (x86_64)
 - CPU temp : N/A
 - LAN IP : 192.168.0.103 (eth0)
 - MOTD : Spring in northern hemisphere: Do you know the tulip command?
          Run "ss -tulp" to see which process listens on which TCP/UDP port.
 ─────────────────────────────────────────────────────

 DietPi Team : MichaIng (lead), Daniel Knight (founder), Joulinar (support)
 Image : DietPi Core Team (pre-image: Debian mini.iso)
 Web : https://dietpi.com | https://twitter.com/DietPi_
 Patreon Legends : Camry2731
 Donate : https://dietpi.com/#donate
 DietPi Hosting : Powered by https://myvirtualserver.com

 dietpi-launcher : All the DietPi programs in one place.
 dietpi-config : Feature rich configuration tool for your device.
 dietpi-software : Select optimized software for installation.
 htop : Resource monitor.
 cpu : Shows CPU information and stats.

root@DietPi:~# traceroute 8.8.8.8
-bash: traceroute: command not found
root@DietPi:~# ifconfig
-bash: ifconfig: command not found
root@DietPi:~#

```

---

<div class="post-metadata">

### Author: ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)
#### Post date: [20 April 2021 12:36 UTC](https://dietpi.com/forum/t/static-ip-makes-network-unusable/5232/11 "2021-04-20T12:36:35Z")

</div>

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

ifconfig depreciated and was replaced by ip command long time ago

---

<div class="post-metadata">

### Author: ![maya95](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/m/7993a0/32.png) [@maya95](https://dietpi.com/forum/u/maya95)
#### Post date: [20 April 2021 12:47 UTC](https://dietpi.com/forum/t/static-ip-makes-network-unusable/5232/12 "2021-04-20T12:47:01Z")

</div>

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

```nohighlight
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

```

---

<div class="post-metadata">

### Author: ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)
#### Post date: [20 April 2021 12:50 UTC](https://dietpi.com/forum/t/static-ip-makes-network-unusable/5232/13 "2021-04-20T12:50:57Z")

</div>

Do you still have an issue?

---

<div class="post-metadata">

### Author: ![trendy](https://dietpi.com/forum/user_avatar/dietpi.com/trendy/32/61_2.png) [@trendy](https://dietpi.com/forum/u/trendy)
#### Post date: [20 April 2021 12:51 UTC](https://dietpi.com/forum/t/static-ip-makes-network-unusable/5232/14 "2021-04-20T12:51:58Z")

</div>

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?

---

<div class="post-metadata">

### Author: ![maya95](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/m/7993a0/32.png) [@maya95](https://dietpi.com/forum/u/maya95)
#### Post date: [20 April 2021 13:06 UTC](https://dietpi.com/forum/t/static-ip-makes-network-unusable/5232/15 "2021-04-20T13:06:03Z")

</div>

> [@](#):
>
> Do you still have an issue?

Yes.

```plaintext
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> │
│ │
└──────────────────────────────────────────────────────────────────────────────┘

```

---

<div class="post-metadata">

### Author: ![maya95](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/m/7993a0/32.png) [@maya95](https://dietpi.com/forum/u/maya95)
#### Post date: [20 April 2021 13:08 UTC](https://dietpi.com/forum/t/static-ip-makes-network-unusable/5232/16 "2021-04-20T13:08:51Z")

</div>

> [@](#):
>
> 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. 

```plaintext
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

```

1. no

---

<div class="post-metadata">

### Author: ![maya95](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/m/7993a0/32.png) [@maya95](https://dietpi.com/forum/u/maya95)
#### Post date: [20 April 2021 13:11 UTC](https://dietpi.com/forum/t/static-ip-makes-network-unusable/5232/17 "2021-04-20T13:11:46Z")

</div>

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

![](https://i.imgur.com/GhChAoJ.png)

---

<div class="post-metadata">

### Author: ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)
#### Post date: [20 April 2021 13:18 UTC](https://dietpi.com/forum/t/static-ip-makes-network-unusable/5232/18 "2021-04-20T13:18:41Z")

</div>

can you do following and share the output

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

```

```nohighlight
ping -4 -c 1 dns9.quad9.net
ping -4 -c 9.9.9.9

```

---

<div class="post-metadata">

### Author: ![maya95](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/m/7993a0/32.png) [@maya95](https://dietpi.com/forum/u/maya95)
#### Post date: [20 April 2021 13:29 UTC](https://dietpi.com/forum/t/static-ip-makes-network-unusable/5232/19 "2021-04-20T13:29:26Z")

</div>

```nohighlight
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:~#

```

---

<div class="post-metadata">

### Author: ![maya95](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/m/7993a0/32.png) [@maya95](https://dietpi.com/forum/u/maya95)
#### Post date: [20 April 2021 13:33 UTC](https://dietpi.com/forum/t/static-ip-makes-network-unusable/5232/20 "2021-04-20T13:33:44Z")

</div>

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://dietpi.com) , [https://google.com](https://google.com) [http://apple.com](http://apple.com) always fail.

```nohighlight
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

```

[Next page](https://dietpi.com/forum/t/static-ip-makes-network-unusable/5232.md?page=2)
