Menu

#5 Not working on IPv6 only interfaces

open
nobody
None
5
2005-02-15
2005-02-15
Anonymous
No

DHCPv6 does not work if the interface has only IPv6
address.

In create_iaid function, file client6_addr.c,
ioct(nlsock, SIOCGIFCONF, &ifc) only returns interfaces
that have an IPv4 address.

host:~# ip addr show dev eth1
4: eth1: <BROADCAST,MULTICAST,ALLMULTI,PROMISC,UP> mtu
1500 qdisc pfifo_fast qlen 100
link/ether fe:fd:00:00:01:01 brd ff:ff:ff:ff:ff:ff
inet6 fec0::fcfd:ff:fe00:101/64 scope site dynamic
valid_lft 2591997sec preferred_lft 604797sec
inet6 fe80::fcfd:ff:fe00:101/64 scope link

host:~# dhcp6c -dDIf eth1
Feb/15/2005 12:39:09 extracted an existing DUID from
/var/lib/dhcpv6/dhcp6c_duid:
00:01:00:01:09:a3:9a:67:fe:fd:00:00:01:01
Feb/15/2005 12:39:09 link local addr is
fe80::fcfd:ff:fe00:101
Feb/15/2005 12:39:09 res addr is
fe80::fcfd:ff:fe00:101%eth1/28
Feb/15/2005 12:39:09 found an interface eth0 harware
8069443
Feb/15/2005 12:39:09 create iaid 2831220222 for
interface eth0
Feb/15/2005 12:39:09 found an interface eth1 harware
bffffcb3
Feb/15/2005 12:39:09 interface eth1 iaid failed to be
created

host:~# ip addr add 10.0.0.1/24 dev eth1

host:~# dhcp6c -dDIf eth1
Feb/15/2005 12:40:52 extracted an existing DUID from
/var/lib/dhcpv6/dhcp6c_duid:
00:01:00:01:09:a3:9a:67:fe:fd:00:00:01:01
Feb/15/2005 12:40:52 link local addr is
fe80::fcfd:ff:fe00:101
Feb/15/2005 12:40:52 res addr is
fe80::fcfd:ff:fe00:101%eth1/28
Feb/15/2005 12:40:52 found an interface eth0 harware
8069443
Feb/15/2005 12:40:52 create iaid 2831220222 for
interface eth0
Feb/15/2005 12:40:52 found an interface eth1 harware
8069453
Feb/15/2005 12:40:52 create iaid 65022 for interface eth1
Feb/15/2005 12:40:52 found an interface eth1 harware
bffffcb3
Feb/15/2005 12:40:52 found interface eth1 iaid 65022
Feb/15/2005 12:40:52 interface eth1 iaid is 65022
[...]

Antonio Tapiador, <atapiador a dit . upm . es>

Discussion


Log in to post a comment.

MongoDB Logo MongoDB