View previous topic :: View next topic |
Author |
Message |
Punchcutter Guru
Joined: 11 Feb 2007 Posts: 363
|
Posted: Mon Apr 27, 2009 5:17 pm Post subject: dhcpcd interfering with static IP settings |
|
|
I just did an emerge world the other day, and now something funny's happening...
I have a static IP that I use on my wired network (here at work), and now what I find is that when I start up (or restart net.eth0 by hand), I get my static IP, but in a few seconds dhcpcd comes on and takes over the interface, assigning me a dynamic IP. If I try to kill dhcpcd and restart the interface, same thing happens... static IP at first, then dhcpcd reassigns it.
Anybody know what's going on here? I think I've done my due diligence checking the forums and docs, but can't find anything like this mentioned....
Thanks.
(I vaguely remember seeing something a while ago about the syntax of /etc/conf.d/net changing, and I might be using the old syntax. Could this be relevant? Seems unlikely, since static config is working, if briefly...)
UPDATE: I just remembered something relevant: I used to use knetworkmanager before the emerge world. The emerge broke that... I couldn't even compile it, but now that I try again, it builds, but downgrades networkmanager and networkmanager-vpnc. Now I'm working through another issue, apparently dbus-related. I'll update when I get through that, but any other hints are appreciated... |
|
Back to top |
|
|
d2_racing Bodhisattva
Joined: 25 Apr 2005 Posts: 13047 Location: Ste-Foy,Canada
|
Posted: Tue Apr 28, 2009 1:08 am Post subject: |
|
|
Hi, cany you post this :
Code: |
# cat /etc/conf.d/net
# rc-update show
|
|
|
Back to top |
|
|
UberLord Retired Dev
Joined: 18 Sep 2003 Posts: 6835 Location: Blighty
|
Posted: Tue Apr 28, 2009 7:30 am Post subject: Re: dhcpcd interfering with static IP settings |
|
|
Punchcutter wrote: | I have a static IP that I use on my wired network (here at work), and now what I find is that when I start up (or restart net.eth0 by hand), I get my static IP, but in a few seconds dhcpcd comes on and takes over the interface, assigning me a dynamic IP. If I try to kill dhcpcd and restart the interface, same thing happens... static IP at first, then dhcpcd reassigns it. |
dhcpcd-4.x upwards don't touch static IP address assigned to the interface.
On the other hand, the net.xxx scripts DO clear interface on restart and I suspect NetworkManager does the same. _________________ Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool |
|
Back to top |
|
|
cwr Veteran
Joined: 17 Dec 2005 Posts: 1969
|
Posted: Tue Apr 28, 2009 11:46 am Post subject: |
|
|
You can in fact configure dhcpd via dhcpd.conf to leave certain MAC addresses
alone; I think there's an instance in the configuration file example. Probably
the simplest solution; I'm not sure if you can do the same trick with Internet
addresses, so check the docs.
Will |
|
Back to top |
|
|
UberLord Retired Dev
Joined: 18 Sep 2003 Posts: 6835 Location: Blighty
|
|
Back to top |
|
|
Nerevar l33t
Joined: 31 May 2008 Posts: 720
|
Posted: Tue Apr 28, 2009 10:34 pm Post subject: Re: dhcpcd interfering with static IP settings |
|
|
Punchcutter wrote: | but in a few seconds dhcpcd comes on and takes over the interface, assigning me a dynamic IP. |
Does dhcpcd have it's own init script? Would it be as simple as "rc-update del <script> <runlevel>"? I run all static configs and don't even have dhcpcd installed. |
|
Back to top |
|
|
Punchcutter Guru
Joined: 11 Feb 2007 Posts: 363
|
Posted: Tue Apr 28, 2009 10:41 pm Post subject: Re: dhcpcd interfering with static IP settings |
|
|
Nerevar wrote: | Does dhcpcd have it's own init script? Would it be as simple as "rc-update del <script> <runlevel>"? I run all static configs and don't even have dhcpcd installed. |
Actually dhcpcd does not seem to be under rc control (it didn't show up under rc-update show).
Thanks to everyone for the responses.... the problem seems to have "magically" gone away today
Maybe it's because I finally succeeded in merging and launching knetworkmanager? Don't really have time or inclination to do a post-mortem, but dhcpcd is now gone (i.e. not running). Instead I've got this on my system:
Code: | root 16352 1 0 10:28 ? 00:00:00 /sbin/dhcdbd --system
|
Whatever. As long as it works
Thanks again. |
|
Back to top |
|
|
|