dhcpcd-discuss

dhcpcd -n sets IPv4LL address even if -L is given

Marco Wirz

Mon Jan 06 10:21:02 2014

Hi

I have a mobile Linux device with several wired interfaces, some of them running dhcpcd. 
The interfaces are connected to an external switch and are up, but there is no DHCP server 
present most of the time.

dhcpcd is run without config file as

$ dhcpcd -qb4 -L -m 30 -C resolv.conf -C hostname vlan30

This works as expected: it waits forever for a DHCP server to appear, and then obtains an IP 
address.

But when I kick dhcpcd before it has obtained an address using

$ dhcpcd -n vlan30

with still no DHCP server present, the running dhcpcd happily assigns 169.254.X.Y/16 on this 
interface after a few seconds.

I would expect it to never assign IPv4LL addresses when -L was given.

Kicking dhcpcd when a DHCP server is present works as expected.

Did I miss something?
How else can I tell a running dhcpcd to try to get a lease right now, and not wait until the 
regular retry interval is over? Restarting dhcpcd is not what I have in mind...

So far all versions I have tested show this behavior:
4.0.15, 5.6.8, 6.1.0, 6.2.0

Thanks.

Marco

Follow-Ups:
Re: dhcpcd -n sets IPv4LL address even if -L is givenRoy Marples
Archive administrator: postmaster@marples.name