Forum
[SOLVED] Static IP/Router Problem - Printable Version

+- Forum (http://forum.xbian.org)
+-- Forum: Hardware (/forum-7.html)
+--- Forum: Network (/forum-25.html)
+--- Thread: [SOLVED] Static IP/Router Problem (/thread-405.html)



Static IP/Router Problem - fuchini - 5th Feb, 2013 02:03 AM

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.


RE: Static IP/Router Problem - CurlyMo - 5th Feb, 2013 09:55 AM

Does setting a static ip help?


RE: Static IP/Router Problem - rikardo1979 - 5th Feb, 2013 10:05 AM

@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 )


RE: Static IP/Router Problem - fuchini - 6th Feb, 2013 06:17 AM

Yes, but if I leave it with dhcp it gets one but random.


RE: Static IP/Router Problem - CurlyMo - 6th Feb, 2013 06:19 AM

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.


RE: Static IP/Router Problem - fuchini - 6th Feb, 2013 09:22 AM

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


RE: Static IP/Router Problem - CurlyMo - 6th Feb, 2013 06:33 PM

Can you try if the new xbian-config fixes this? https://github.com/xbianonpi/xbian-config-bash


RE: Static IP/Router Problem - fuchini - 9th Feb, 2013 04:53 AM

I'll give it a try and post back.


RE: Static IP/Router Problem - fuchini - 9th Feb, 2013 09:01 AM

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.