DHCP overriding my static IP configuration
Hi everyone its been a long while since I have been on here, even though I am using Linux for 95% of the time (I guess its getting that good!)
I have a static IP configured I have put my config below: Quote:
Quote:
Quote:
Could anyone give me any ideas whats overriding the static ip or if I have it badly configured? |
Have you checked in your router that there is no overlapping between its DHCP range and your static IP?
|
Is it stacking resolv.conf's? If so, the running resolv.conf should contain the details of (the last program) that has stacked it.
Alternatively, are you running dhcpd/avahi or something? Quote:
|
Hi again,
@JosipBroz the ip addresses are not overlapping. The router is giving out addresses starting at 10.0.0.11 and my static ip is 10.0.0.10 (Which gets changed by dhcp all the time to 10.0.0.11) Its interesting if I stop dhcdb which I understand is the client side DHCP demon: Quote:
@salasi I think that I have left all the networking configuration standard. I am not sure what you mean by stacking resolv.con but here are the contents of my resolv.conf Quote:
|
Quote:
Quote:
I think if you you want to run NM, you can set the static address in there and it'll work (until the next time you have a non-clean shutdown, and then you might have to re-write resolv.conf, so you might need want to take a backup copy when NM isn't running). |
Hey salasi
Thanks for your help, it seems to be behaving its self now. I went into the network manager and even though it was already set to static IP I configured it again and applied the settings. I have restarted my router and still have my static ip. I guess it could be some sort of a bug with the NM if you manually edit the settings and put a static IP. |
Quote:
If you'd like a NM that works look into wicd http://www.wicd.net/ It is excellent. |
This is going back some years, but back in Sarge, if you allowed DHCP to set an address during install, then tried to configure a static afterwards, you would see exactly the problem you described. The installation would set up dhcp-client which would run on reboot even though you had set static. Since dhcp would run at boot, you'd lose your static.
The solution was to uninstall what was then dhcp-client, and now appears to be called dhclient3 on unstable. If you need the dhclient, then you need to edit your startup and make sure nothing uses dhclient. Peace, JimBass |
@tredegar thanks for the info although it seems to be behaving its self since I re-configured eth0 with the KDE NM.
@JimBass I did read something about what your describing but when I saw the dates (at least 2 years ago) I figured this issue must have been fixed. Anyway its keeping the static now |
All times are GMT -5. The time now is 11:32 PM. |