I’ve been reading blogs, documentation and trying things for a while, and I think ROS just can’t do what I’m asking it to but would like someone to sense-check this.
My ISP provides a /56 prefix via DHCP, I can set this up in ROS with no issues:
/ipv6 dhcp-client
add interface=Aquiss pool-name=Aquiss prefix-hint=::/56 request=prefix use-peer-dns=no
This retrieves a prefix:
# INTERFACE STATUS REQUEST PREFIX
0 Aquiss bound prefix ****:****:****:f800::/56, 4w1d23h44m1s
If use this prefix to address an interface, it works as expected:
/ipv6 address
add address=::3:0:0:0:1 from-pool=Aquiss interface=lo
# ADDRESS FROM-POOL INTERFACE VRF ADVERTISE VALID PREFERRED
11 G ****:****:****:f803::1/64 Aquiss lo main yes 4w1d23h18m2s 6d23h18m2s
I can also pick the /64 that is used:
/ipv6 address
add address=::da:0:0:0:1 from-pool=Aquiss interface=lo
# ADDRESS FROM-POOL INTERFACE VRF ADVERTISE VALID PREFERRED
11 G ****:****:****:f8da::1/64 Aquiss lo main yes 4w1d22h56m31s 6d22h56m31s
I would like to delegate /60 of my allocation downstream to another router. My understanding of ROS is that if I wanted to do this I would need to change pool-prefix-length in the DHCPv6 client to /60. If I change this value I can’t address an interface with a /64.
Is there a way to delegate /60 to a client while using /64s from the prefix on other interfaces, or does specifying the prefix size in the pool set it for everything using that pool?
The only way I can think of getting the outcome I want is to not bother pulling the IPv6 prefix by DHCP and setting all the addressing as static - the prefix I am getting from the ISP is static, it’s just delivered by DHCP. Then I can configure the /60 I want to delegate and drop it onto a DHCPv6 server on the interface that the downstream router connects to - or give up and statically assign routes and addressing on the downstream router. I’ve not looked to see if ROS adds a route to a delegated prefix automatically when a downstream router pulls the prefix down.