How to configure dhcpv6-pd

Hello community,
I have tried to make dhcpv6-server and advertise dhcpv6-pd. I share configuration:

FOR SERVIER
vyos@vyos-1# run show configuration commands | match eth1
set interfaces ethernet eth1 address ‘2001:db9:0101:3000::1/64’
set interfaces ethernet eth1 hw-id ‘08:00:27:31:6f:1c’
set interfaces ethernet eth1 ipv6 disable-forwarding
set service dhcpv6-server listen-interface ‘eth1’
set service dhcpv6-server shared-network-name VLAN30 interface ‘eth1’

set service dhcpv6-server listen-interface ‘eth1’
set service dhcpv6-server shared-network-name VLAN30 interface ‘eth1’
set service dhcpv6-server shared-network-name VLAN30 subnet 2001:db9:0101:3000::/64 prefix-delegation prefix 2 001:db9:0101:3001:: delegated-length ‘64’
set service dhcpv6-server shared-network-name VLAN30 subnet 2001:db9:0101:3000::/64 prefix-delegation prefix 2 001:db9:0101:3001:: prefix-length ‘56’
set service dhcpv6-server shared-network-name VLAN30 subnet 2001:db9:0101:3000::/64 subnet-id ‘300’

CUSTOMER

vyos@cust-1-vyos# run show configuration commands | match eth1
set interfaces ethernet eth1 address ‘dhcpv6’
set interfaces ethernet eth1 dhcpv6-options pd 1 interface eth1
set interfaces ethernet eth1 dhcpv6-options pd 1 length ‘64’
set interfaces ethernet eth1 hw-id ‘08:00:27:a6:d0:a6’
set interfaces ethernet eth1 ipv6 address autoconf
set interfaces ethernet eth1 offload gro
set interfaces ethernet eth1 offload gso
set interfaces ethernet eth1 offload sg
set interfaces ethernet eth1 offload tso

vyos@cust-1-vyos# run show configuration commands | match eth2
set interfaces ethernet eth2 address ‘dhcpv6’
set interfaces ethernet eth2 hw-id ‘08:00:27:a0:4f:7d’
set interfaces ethernet eth2 ipv6 address autoconf

ON customer router, I don’t have any assigned ipv6. Please share experience or advice !

I suddendly have trouble getting my V6 to work too, i wonder if thats a change from a nightly.
My config didnt change but im not getting any replies.

Which version of vyos are you using?

Hi MartB,

My version is 1.5-rolling-202407280023, but I made some changes from yesterday.
set service dhcpv6-server listen-interface ‘eth1’
set service router-advert interface eth1 default-preference ‘high’
set service router-advert interface eth1 name-server ‘2001:db9:0101:3000::1’
set service router-advert interface eth1 other-config-flag
set service router-advert interface eth1 prefix 2001:db9:101:3000::/64

This section is important to Notify customer device, router or whatever to use IPv6 “other-flag”, not only SLAAC

set service dhcpv6-server listen-interface ‘eth1’
set service dhcpv6-server shared-network-name VLAN30 subnet 2001:db9:0101:3000::/52 prefix-delegation prefix 2001:db9:0101:3000:: delegated-length ‘64’
set service dhcpv6-server shared-network-name VLAN30 subnet 2001:db9:0101:3000::/52 prefix-delegation prefix 2001:db9:0101:3000:: prefix-length ‘64’
set service dhcpv6-server shared-network-name VLAN30 subnet 2001:db9:0101:3000::/52 subnet-id ‘30’

This section should initiate dhcpv6-pd for customer devices. But I don’t have luck with that one.

All documentation is missing an explanation how the configuration idea is structured and why developers decided on that approach.

Missing good examples, and it is a good idea to have case studies for every contributor who wants to share their own experience.
Best you, good luck

Hello community,

I can share configuration that working but make dhcpv6-pd from 56 to 64

set service dhcpv6-server shared-network-name NET1 subnet 2a01:4a40:101:3000::/56 interface ‘eth1’
set service dhcpv6-server shared-network-name NET1 subnet 2a01:4a40:101:3000::/56 option name-server ‘2a01:4a40:101:3000::1’
set service dhcpv6-server shared-network-name NET1 subnet 2a01:4a40:101:3000::/56 prefix-delegation prefix 2a01:4a40:101:3100:: delegated-length ‘64’
set service dhcpv6-server shared-network-name NET1 subnet 2a01:4a40:101:3000::/56 prefix-delegation prefix 2a01:4a40:101:3100:: prefix-length ‘56’
set service dhcpv6-server shared-network-name NET1 subnet 2a01:4a40:101:3000::/56 range 1 start ‘2a01:4a40:101:3000::100’
set service dhcpv6-server shared-network-name NET1 subnet 2a01:4a40:101:3000::/56 range 1 stop ‘2a01:4a40:101:3000::ffff:fff0’
set service dhcpv6-server shared-network-name NET1 subnet 2a01:4a40:101:3000::/56 subnet-id ‘1’

but when I try to make configuration from 52 to 64:
So IP range in that case should be 2a01:4a40:101:3000:: to 2a01:4a40:101:3fff::

and kea-dhcpv6 has unable to start with that error:

“Invalid Pool6 address boundaries: 2a01:4a40:101:3001:: is not the first address in prefix: 2a01:4a40:101:3000::/52”

kea-dhcp6-server.service - Kea IPv6 DHCP daemon
Loaded: loaded (/lib/systemd/system/kea-dhcp6-server.service; disabled; preset: enabled)
Drop-In: /etc/systemd/system/kea-dhcp6-server.service.d
└─override.conf
Active: failed (Result: exit-code) since Thu 2024-08-08 14:57:39 UTC; 8s ago

Any suggestions ?

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.