dhcpcd and secondary interface
Kobi Cohen-Arazi
Fri Feb 08 06:06:42 2013
Hi,
I have a question related to dhcpcd with the following scenario:
Client is connected to one network say with IP subnet 192.168.1.0/24.
Gets an IP e.g. 192.168.1.40.
Then it is switching to a different network without "if down" of the
interface. (for this e.g. wlan0 interface).
dhcpcd is restarted and DHCP request is sent to the DHCP server on the
seconds network. Second network has the same IP subnet configuration as the
previous one (192.168.1.0/24) and a different DHCP server.
dhcpcd receive a new IP, e.g. 192.168.1.50 but here is what I see when
running:
$ *ip* addr *show dev wlan0*
there are 2 interfaces for wlan0 one is with the original address
(192.168.1.40) and one with the new address 192.168.1.50 with "*secondary*"
flag.
I already saw that dhcpcd is making sure that promote_secondary is == 1.
My question is why dhcpcd is not removing the primary/original address so
the secondary can be promoted.
The above scenario with *different *IP subnet configuration on the 2
different networks works fine. So the new incoming address from the seconds
DHCP server takes over the old address and there are no issues.
Any pointers on how should I debug it in dhcpcd code?
I'm using the following commit:
http://gitorious.org/rowboat/external-dhcpcd/commits/rowboat-jb
ver 5.5.6.
Thanks,
- Kobi
Archive administrator: postmaster@marples.name