I configured one of my LAB routers to make use of DHCPv6
vyos@vyos# show interfaces
ethernet eth0 {
duplex auto
hw-id 00:50:56:00:00:fa
smp-affinity auto
speed auto
vif 202 {
address dhcp
address dhcpv6
}
}An IPv6 address is assigend as shown by:
vyos@vyos:~$ show interfaces ethernet
Codes: S - State, L - Link, u - Up, D - Down, A - Admin Down
Interface IP Address S/L Description
--------- ---------- --- -----------
eth0 - u/u
eth0.202 172.18.202.10/24 u/u
2001:db8:202::199/64vyos@vyos:~$ show interfaces ethernet eth0 vif 202
eth0.202@eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
link/ether 00:50:56:00:00:fa brd ff:ff:ff:ff:ff:ff
inet 172.18.202.10/24 brd 172.18.202.255 scope global eth0.202
valid_lft forever preferred_lft forever
inet6 2001:db8:202::199/64 scope global
valid_lft forever preferred_lft forever
inet6 fe80::250:56ff:fe00:fa/64 scope link
valid_lft forever preferred_lft forever
RX: bytes packets errors dropped overrun mcast
310719 4181 0 0 0 3
TX: bytes packets errors dropped carrier collisions
562266 3813 0 0 0 0But the show dhcpv6 client leases command fails
vyos@vyos:~$ show dhcpv6 client leases There are no DHCPv6 leases.
vyos@vyos:~$ ls -la /var/lib/dhcp/dhclient_v6_* -rw-r--r-- 1 root root 168 Mar 8 18:43 /var/lib/dhcp/dhclient_v6_eth0.202.conf -rw-r--r-- 1 root root 450 Mar 8 18:43 /var/lib/dhcp/dhclient_v6_eth0.202.leases -rw-r--r-- 1 root root 5 Mar 8 18:43 /var/lib/dhcp/dhclient_v6_eth0.202.pid
Shows that the file /var/lib/dhcp/dhclient_v6_eth0.202_leases is missing as required by /opt/vyatta/sbin/dhcpv6-client-show-leases.pl