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