Static IPv6 address on pppoe0 (out of WAN prefix)

Hello,

maybe someone can help with this or point me in the right direction.

Problem:
With static addressing, the German Telekom assigns me 2 IPv6 prefixes: 1x /64 for WAN and 1x /56 for delegation.

Now I’m trying to set a static IPv6 Address from the WAN prefix on interface pppoe0 but did not find a configuration element to set that for the interface.
Using ip address add xxxx:xxxx:257f:8ac0::1/64 dev pppoe0 works (just for testing).
The only way I got it working is using a dummy interface with the desired address (please see below).

Prefixes/Addresses I got:

IPv4: xxx.xxx.68.192
IPv6 (Public/WAN):	    xxxx:xxxx:257f:8ac0::/64
IPv6 (Customer/LAN):    xxxx:xxxx:250e:c000::/56

Status:

  • Using:
    Version: VyOS 1.4-rolling-202212090319
    Release train: current
  • IPv4 works
  • IPv6 works
  • assigning a static address out of the public WAN prefix: does not work (as suspected)

Configuration that works so far:

vyos@gw1# show int
 dummy dum0 {
     address xxxx:xxxx:257f:8ac0::1/128
 }
 ethernet eth0 {
     description WAN-PHY
     hw-id xx:xx:xx:xx:xx:90
 }
 ethernet eth1 {
     address xxx.xxx.1.1/24
     description LAN
     hw-id xx:xx:xx:xx:xx:91
     vif 2 {
         address xxx.xxx.2.1/24
         description Guests
     }
     vif 4 {
         address xxx.xxx.4.1/24
         description Kids
     }
     vif 5 {
         address xxx.xxx.5.1/24
         description IoT
     }
     vif 6 {
         address xxx.xxx.6.1/24
         description Office
     }
 }
 ethernet eth2 {
     disable
     hw-id xx:xx:xx:xx:xx:92
 }
 ethernet eth3 {
     disable
     hw-id xx:xx:xx:xx:xx:93
 }
 loopback lo {
 }
 pppoe pppoe0 {
     authentication {
         password xxxxxx
         user xxxxxx
     }
     description Telekom
     dhcpv6-options {
         pd 0 {
             interface eth1 {
                 address 1
                 sla-id 1
             }
             interface eth1.2 {
                 address 1
                 sla-id 2
             }
             interface eth1.4 {
                 address 1
                 sla-id 4
             }
             interface eth1.5 {
                 address 1
                 sla-id 5
             }
             interface eth1.6 {
                 address 1
                 sla-id 6
             }
             length 56
         }
     }
     ip {
         adjust-mss clamp-mss-to-pmtu
     }
     ipv6 {
         address {
             autoconf
         }
         adjust-mss clamp-mss-to-pmtu
     }
     local-address xxx.xxx.68.192
     no-peer-dns
     source-interface eth0
 }

Interfaces:

vyos@gw1:~$ show int
Codes: S - State, L - Link, u - Up, D - Down, A - Admin Down
Interface        IP Address                        S/L  Description
---------        ----------                        ---  -----------
dum0             xxxx:xxxx:257f:8ac0::1/128           u/u
eth0             -                                 u/u  WAN-PHY
eth1             xxx.xxx.1.1/24                    u/u  LAN
                 xxxx:xxxx:250e:c001::1/64
eth1.2           xxx.xxx.2.1/24                      u/u  Guests
                 xxxx:xxxx:250e:c002::1/64
eth1.4           xxx.xxx.4.1/24                      u/u  Kids
                 xxxx:xxxx:250e:c004::1/64
eth1.5           xxx.xxx.5.1/24                      u/u  IoT
                 xxxx:xxxx:250e:c005::1/64
eth1.6           xxx.xxx.6.1/24                     u/u  Office
                 xxxx:xxxx:250e:c006::1/64
eth2             -                                 A/D
eth3             -                                 A/D
lo               xxx.xxx.0.1/8                       u/u
                 ::1/128
pppoe0           xxx.xxx.78.192/32                  u/u  Telekom
                 xxxx:xxxx:257f:8ac0:xxxx:xxxx:xxxx:e6d4/64

Is this the only way at the moment to use a static address from the WAN prefix for the router, or am I missing something?

Kind Regards,
Andreas

Hello @Schwertfried,

You need to configure router-advert.
For example:
set service router-advert interface ethX managed-flag (if you use DHCPv6 server)
or
set service router-advert interface ethX other-config-flag
and prefix
set service router-advert interface ethX prefix ::/64

ethX - is your LAN interfaces
More information about router-advert for VyOS 1.4

Thank you, @RyVolodya,

but that was not the point. Maybe I wrote it a bit unclear. My fault.

The ISP gives me 2 Prefixes, 1 for WAN (/64) and 1 for LAN (/56).
The LAN prefix is good with router-advert and DHCPv6. Works fine.

But the Address of the WAN interface (pppoe0) is always random.
I want to specify the WAN address out of the /64 and don’t want to get a random address out of it.
If I put the address manually on pppoe0 it works, but I’m not sure if there’s a better way doing it through the config.

Thank you,
Andreas