dhcpcd-discuss

Problems getting an IP address from various routers

Mick

Fri Jun 05 18:03:46 2015

Hi All,

I have over the years been confused about the ClientID Vs DUID Vs MAC address, 
or whatever various routers are using to give my laptop an IP address.  In 
addition, some routers take a long time to provide an IP address, which is 
annoying at best.  More recently (dhcpcd-6.9.0) I discovered that I end up 
with two addresses showing, an IP4ALL and a normal router provided address. 

I changed clientid to duid and back to client id in my dhcpcd.conf, but the 
behaviour is pretty much the same.  The router is contacted, an IP4ALL address 
is obtained within a couple of seconds, then a minute or so later I eventually 
get an address from the router.

dhcpcd is called from ifplug on my laptop, via an openrc network interface 
start up script - this is on a Gentoo build.

Is there some way of waiting until the router's dhcpd responds before an 
IP4ALL IP address is sought for?  It seems to me that IP4ALL should be the IP 
address space of last resort, rather than the first thing to get.

Also, I end up with two addresses because the IP4ALL is not dropped after the 
router's dhcp server decides to respond:
======================================
ip -s address show dev enp11s0                Fri Jun  5 18:53:06 2015

2: enp11s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1492 qdisc mq state UP group 
def
ault qlen 1000
    link/ether 00:26:b9:20:b4:9c brd ff:ff:ff:ff:ff:ff
    inet 169.254.181.113/16 brd 169.254.255.255 scope global enp11s0
       valid_lft forever preferred_lft forever
    inet 10.10.10.7/24 brd 10.10.10.255 scope global enp11s0
       valid_lft forever preferred_lft forever
    inet6 fe80::6446:88fd:e7eb:b031/64 scope link
       valid_lft forever preferred_lft forever
    RX: bytes  packets  errors  dropped overrun mcast
    102630     603      0       362     0       0
    TX: bytes  packets  errors  dropped carrier collsns
    24236      220      0       0       0       0
======================================

Shouldn't the IP4ALL be dropped as soon as a dhcp address is obtained?

Please ask for more info if needed.

-- 
Regards,
Mick

Attachment: signature.asc
Description: This is a digitally signed message part.


Follow-Ups:
Re: Problems getting an IP address from various routersRoy Marples
Archive administrator: postmaster@marples.name