Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
dhcpcd interfering with static IP settings
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Punchcutter
Guru
Guru


Joined: 11 Feb 2007
Posts: 363

PostPosted: Mon Apr 27, 2009 5:17 pm    Post subject: dhcpcd interfering with static IP settings Reply with quote

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
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Tue Apr 28, 2009 1:08 am    Post subject: Reply with quote

Hi, cany you post this :

Code:

# cat /etc/conf.d/net
# rc-update show
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Tue Apr 28, 2009 7:30 am    Post subject: Re: dhcpcd interfering with static IP settings Reply with quote

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
View user's profile Send private message
cwr
Veteran
Veteran


Joined: 17 Dec 2005
Posts: 1969

PostPosted: Tue Apr 28, 2009 11:46 am    Post subject: Reply with quote

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
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Tue Apr 28, 2009 12:26 pm    Post subject: Reply with quote

cwr wrote:
You can in fact configure dhcpd via dhcpd.conf to leave certain MAC addresses
alone


No, you can leave certain interface names alone ....

Code:
denyinterfaces eth0 eth1

_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
Nerevar
l33t
l33t


Joined: 31 May 2008
Posts: 720

PostPosted: Tue Apr 28, 2009 10:34 pm    Post subject: Re: dhcpcd interfering with static IP settings Reply with quote

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
View user's profile Send private message
Punchcutter
Guru
Guru


Joined: 11 Feb 2007
Posts: 363

PostPosted: Tue Apr 28, 2009 10:41 pm    Post subject: Re: dhcpcd interfering with static IP settings Reply with quote

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 :oops:

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 :roll:

Thanks again.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum