After assigning a prefix to a client, the show command does not display lease information.
Output of the show dhcpv6 server leases command:
vyos@vyos# run show dhcpv6 server leases WARNING: DHCP server is configured but not started. Data may be stale. Traceback (most recent call last): File "/usr/libexec/vyos/op_mode/dhcp.py", line 286, in <module> res = vyos.opmode.run(sys.modules[__name__]) File "/usr/lib/python3/dist-packages/vyos/opmode.py", line 227, in run res = func(**args) File "/usr/libexec/vyos/op_mode/dhcp.py", line 246, in _wrapper return func(*args, **kwargs) File "/usr/libexec/vyos/op_mode/dhcp.py", line 277, in show_server_leases lease_data = _get_raw_server_leases(family=family, pool=pool, sorted=sorted, state=state) File "/usr/libexec/vyos/op_mode/dhcp.py", line 85, in _get_raw_server_leases data_lease['end'] = lease.end.timestamp() AttributeError: 'NoneType' object has no attribute 'timestamp' [edit] vyos@vyos#
The client router receives a dhcpv6 prefix:
vyos@vyos:~$ show interfaces Codes: S - State, L - Link, u - Up, D - Down, A - Admin Down Interface IP Address S/L Description --------- ---------- --- ----------- eth0 2001:cafe:ffff:fefe:e56:caff:febb:0/64 u/u eth1 2001:cafe:fefe:ffff::1/64 u/u eth2 - u/D eth3 - u/D lo 127.0.0.1/8 u/u ::1/128 vyos@vyos:~$
Server DHCPv6 PD configuration:
set interfaces ethernet eth0 address '2001:cafe:ffff:fefe::1/64' set interfaces ethernet eth0 address '2001:cafe:fefe::1/48' set interfaces loopback lo address '2001:4860:4860::8888/128' set service dhcpv6-server shared-network-name LAN6-0 subnet 2001:cafe:fefe::/48 prefix-delegation start 2001:cafe:fefe:: prefix-length '64' set service dhcpv6-server shared-network-name LAN6-0 subnet 2001:cafe:fefe::/48 prefix-delegation start 2001:cafe:fefe:: stop '2001:cafe:fefe:ffff::' set service router-advert interface eth0 managed-flag set service router-advert interface eth0 other-config-flag set service router-advert interface eth0 prefix ::/64
Client router configuration:
set interfaces ethernet eth0 dhcpv6-options pd 1 interface eth1 address '1' set interfaces ethernet eth0 dhcpv6-options pd 1 interface eth1 sla-id '1' set interfaces ethernet eth0 dhcpv6-options pd 1 length '64' set interfaces ethernet eth0 ipv6 address autoconf set service router-advert interface eth1 other-config-flag set service router-advert interface eth1 prefix ::/64