How can I create a IPv6 /64 prefix from dhcpv6 client provided /56 prefix
Posted: Tue Oct 04, 2022 2:24 am
I'm trying to create a script in my dhcpv6 client that adds an nd prefix for my LAN (a ::/64) from my ISP provided /56. How can I do this? I was thinking of something like:
but this doesn't work, and it wouldn't work for ::/56 prefixes where there are abbreviated IPs. Any working examples would be extremely appreciated! Thank you
Code: Select all
:if ($"pd-valid" = 1) do={
:local lan_vz ([:pick $"pd-prefix" 0 19] . "::/64");
/ipv6 nd prefix add interface=sfp-sfpplus1-LAN prefix=$"lan_vz" comment="VZLAN";
}