Forum

Full Version: Static IP/Router Problem
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,

I'm having a problem when trying to set a static IP to my RPi, running Xbian A4, from my router. When I leave every option in my router blank, it uses dhcp and sets a normal IP on my Rpi. However, when I set a static IP it works the first time I boot the RPi but after rebooting it gets an IP of 0.0.0.0.

I don't have this same problem with other devices in my network. My router is a D-Link DIR-600. Don't know if this would help you help me:

Router's IP: 192.168.0.1
Subnet Mask: 255.255.255.0
Rpi's Desired IP: 192.168.0.105

Don't know what other information you may find useful.
Does setting a static ip help?
@Curly that what he is trying to say is that we he sett the static IP, is vanished after reboot (if I understand it good )
Yes, but if I leave it with dhcp it gets one but random.
When on DHCP it's your router that's the one that controls what IP address it hands out. If you don't want that you can probably set an IP address reservation for a certain MAC address. That's why i did as well.
Hello, thanks for answering. My router is the one that hands out IP addresses, if I set and IP adress for my RPi's MAC address I loose internet connection in my RPi after I reboot several times. On the router's configuration page it says that the RPi's IP is 0.0.0.0
Can you try if the new xbian-config fixes this? https://github.com/xbianonpi/xbian-config-bash
I'll give it a try and post back.
I did the xbian-config to put the IP static. It is working!
Well I hope it continues to work. I'll post if there's anything new.
Reference URL's