RasPi gets no IP after router change Topic is solved

Having issues with your DietPi installation or found a bug? Post it here.
GreenGentleman
Posts: 53
Joined: Mon Nov 09, 2020 4:10 pm

Re: RasPi gets no IP after router change

Post by GreenGentleman »

Joulinar wrote: Fri Jul 09, 2021 11:02 pm why are you going with such a huge IP range? If I'm not mistaken, a netmask of 255.255.0.0 will result in 65536 possible hosts :x

Usually 192.168.178.0/24 should be sufficient.

Fritzbox: 192.168.178.1 (Static)
RasPi: 192.168.178.2 (Static)
Local devices: 192.168.1.20 ff (DHCP)
Netmask 255.255.255.0
Probably, yeah - I just made the lower bound lower, so the original RasPi IP is in it. Can I just change the static IP of the RasPi in the Fritzbox, or do I have to go in the settings of the RasPi (which still doesn't work :D )?
User avatar
Joulinar
Posts: 5149
Joined: Sat Nov 16, 2019 12:49 am

Re: RasPi gets no IP after router change

Post by Joulinar »

well you could change the Fritzbox IP address too. This way you would not need to go into RPI. STATIC IP of the RPi can be changed on the RPi only. Or you place the SD card of the RPI into another Linux box and change config files manually.

Probably easiest might be to perform a change as follow

FritzBox change to 192.168.2.1\24 (255.255.255.0)
RasPi keep at 192.168.2.125
Set DHCP Server range to 192.168.2.20-192.168.2.120 (255.255.255.0)
Set DNS Server inside DHCP Server config to 192.168.2.125
My PC: set to DHCP

picture1.PNG
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
GreenGentleman
Posts: 53
Joined: Mon Nov 09, 2020 4:10 pm

Re: RasPi gets no IP after router change

Post by GreenGentleman »

Thank you so much! Your configuration made everything work again.
User avatar
Joulinar
Posts: 5149
Joined: Sat Nov 16, 2019 12:49 am

Re: RasPi gets no IP after router change

Post by Joulinar »

ensure the RPi is using STATIC IP, just to be sure ;)
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Post Reply