Page MenuHomeVyOS Platform

DHCPv6 client get incorrect mask /128
Closed, InvalidPublicBUG

Description

It seems the issue in dhcpv6 client as it gets in 1.3 prefix /128

Example of server configuration:

set interfaces ethernet eth1 address '192.0.2.1/24'
set interfaces ethernet eth1 address '2001:db8::1/48'
set service dhcpv6-server global-parameters name-server '2001:db8::1'
set service dhcpv6-server global-parameters name-server '2001:db8::2'
set service dhcpv6-server shared-network-name SHARED subnet 2001:db8::/48 address-range start 2001:db8::100 stop '2001:db8::199'
set service router-advert interface eth1 managed-flag

Show leases:

vyos@r1-roll# run show dhcpv6 server leases 
IPv6 address    State    Last communication    Lease expiration     Remaining    Type           Pool    IAID_DUID
--------------  -------  --------------------  -------------------  -----------  -------------  ------  -----------------------------------------------------
2001:db8::198   active   2021/09/04 11:29:48   2021/09/04 13:34:48  1:39:41      non-temporary  SHARED  e3:09:28:00:00:01:00:01:28:c5:ea:f9:52:54:00:28:09:e3
2001:db8::199   active   2021/09/04 11:44:20   2021/09/04 23:44:20  11:49:13     non-temporary  SHARED  00:00:00:00:00:01:00:01:28:c5:eb:20:52:54:00:5d:46:09

Client 1.3 2001:db8::199/128 <== incorrect

set interfaces ethernet eth1 address 'dhcpv6'

[email protected]# run show int
Codes: S - State, L - Link, u - Up, D - Down, A - Admin Down
Interface        IP Address                        S/L  Description
---------        ----------                        ---  -----------
eth0             192.168.122.14/24                 u/u  FOO-BAR
eth1             2001:db8::199/128                 u/u  FOO

Client 1.2 get /64:

vyos@r12-lts# run show int
Codes: S - State, L - Link, u - Up, D - Down, A - Admin Down
Interface        IP Address                        S/L  Description
---------        ----------                        ---  -----------
eth0             192.168.122.12/24                 u/u  FOOO 
eth1             2001:db8::198/64                  u/u

Details

Difficulty level
Unknown (require assessment)
Version
VyOS 1.3.0-rc6
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Unspecified (please specify)

Event Timeline

c-po changed the task status from Open to Confirmed.Sep 4 2021, 4:16 PM
c-po added a project: VyOS 1.4 Sagitta.

Client should also enable "SLAAC"

set interfaces ethernet eth1 vif 204 address 'dhcpv6'
set interfaces ethernet eth1 vif 204 ipv6 address autoconf
7: eth1.204@eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether 00:50:56:b3:38:c5 brd ff:ff:ff:ff:ff:ff
    inet6 2001:db8::250:56ff:feb3:38c5/64 scope global dynamic mngtmpaddr
       valid_lft 2591998sec preferred_lft 14398sec
    inet6 2001:db8::198/128 scope global
       valid_lft forever preferred_lft forever
    inet6 fe80::250:56ff:feb3:38c5/64 scope link
       valid_lft forever preferred_lft forever