Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
apipa persists after dhcp server is up
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
MickKi
Veteran
Veteran


Joined: 08 Feb 2004
Posts: 1179

PostPosted: Mon Nov 19, 2007 9:46 pm    Post subject: apipa persists after dhcp server is up Reply with quote

This is driving me crazy: If the dhcp server is not up while the PC boots up an apipa is set as the IP address of my NIC. So far, so good. However, once the dhcp server (my ADSL router) is up again my PC will not give up the apipa to obtain a LAN IP address, but holds on to this useless (under the circumstances) apipa address.

I noticed that the MS Windows machines seem to have more 'intelligence' in this matter and they readily drop the apipa address for a freshly leased dhcp server LAN address.

How can I change this behaviour to my liking?
_________________
Regards,
Mick


Last edited by MickKi on Tue Nov 20, 2007 8:22 pm; edited 1 time in total
Back to top
View user's profile Send private message
MickKi
Veteran
Veteran


Joined: 08 Feb 2004
Posts: 1179

PostPosted: Tue Nov 20, 2007 8:21 pm    Post subject: Reply with quote

Any ideas guys?
_________________
Regards,
Mick
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 Nov 20, 2007 10:47 pm    Post subject: Reply with quote

Depends on what assings the APIPA address.
If it's the net scripts then you're SOL as they're one shot only.

However, you could use dhcpcd-3.1 which has automatic APIPA support built in, and will detect a DHCP server when one becomes available.
_________________
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
MickKi
Veteran
Veteran


Joined: 08 Feb 2004
Posts: 1179

PostPosted: Wed Nov 21, 2007 12:58 pm    Post subject: Reply with quote

Thank you UberLord,

It seems that it is the initialisation scripts:
Code:
# /etc/init.d/net.eth0 start
 * Starting eth0
 *   Loading networking modules for eth0
 *     modules: apipa arping ccwgroup macchanger macnet rename ifplugd iwconfig essidnet iptunnel iproute2 pppd system dhcpcd ip6to4
 *       ifplugd provides plug
 *       iwconfig provides wireless
 *       iproute2 provides interface
 *       pppd provides ppp
 *       dhcpcd provides dhcp
 *   Configuring eth0 for MAC address 00:02:A5:B6:A1:8F ...                                       [ ok ]
 *   Starting ifplugd on eth0 ...                                                                 [ ok ]
 *     Backgrounding ...
Meanwhile, I am running net-misc/dhcpcd-3.1.5-r1, but I seem to get stuck with the apipa address even after the DHCP server has come up. How long before the dhcpcd will pick up a 'proper' LAN address? Perhaps I am not waiting long enough?
_________________
Regards,
Mick
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