Static IP makes network unusable. Topic is solved

Having issues with your DietPi installation or found a bug? Post it here.
Post Reply
maya95
Posts: 48
Joined: Tue Apr 20, 2021 12:20 pm

Static IP makes network unusable.

Post by maya95 »

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.

Image
Last edited by maya95 on Tue Apr 20, 2021 12:50 pm, edited 1 time in total.
User avatar
Joulinar
Posts: 4502
Joined: Sat Nov 16, 2019 12:49 am

Re: Static IP makes network unusable.

Post by Joulinar »

Can you set it to DHCP and run ip a. Once done set it to STATIC and run ip a again
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 »

Still fails after execute ip a command.

Image
Last edited by maya95 on Tue Apr 20, 2021 1:20 pm, edited 2 times in total.
User avatar
trendy
Posts: 292
Joined: Tue Feb 25, 2020 2:54 pm

Re: Static IP makes network unusable.

Post by trendy »

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:

Code: Select all

head -n -0 /etc/resolv.conf 
head -n -0 /etc/resolvconf/resolv.conf.d/*
nslookup dietpi.com
Post also the output of the following

Code: Select all

ip -4 addr; ip -4 ro; ip -4 ru; ip neigh show
User avatar
Joulinar
Posts: 4502
Joined: Sat Nov 16, 2019 12:49 am

Re: Static IP makes network unusable.

Post by Joulinar »

ip a doesn't do anything. It's showing current configuration only. Pls share the output for DHCP as well as STATIC
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 »

missing commands and files.

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

Re: Static IP makes network unusable.

Post by Joulinar »

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
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. 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.
User avatar
trendy
Posts: 292
Joined: Tue Feb 25, 2020 2:54 pm

Re: Static IP makes network unusable.

Post by trendy »

Your configuration looks correct. However The fact that arp entry to the gateway is stale shows that there is something misconfigured with the VM.
maya95
Posts: 48
Joined: Tue Apr 20, 2021 12:20 pm

Re: Static IP makes network unusable.

Post by maya95 »

New VM. login through ssh (putty)

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

==

Code: Select all

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:~#
Post Reply