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";
}
: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";
}
:if ($"pd-valid" = 1) do={
:local lanVZ ([:pick $"pd-prefix" 0 [:find $"pd-prefix" "/"]]."/64");
:log info "VZ value is $lanVZ";
/ipv6 nd prefix set interface=sfp-sfpplus1-LAN prefix=$"lanVZ" [find prefix~"2600:4041"]
/ipv6 nd prefix add interface=sfp-sfpplus1-LAN prefix=$"lanVZ";
}
Not sure I know what that is. I saw a "from pool" option in the dhcpv6 server but I'm not using dhcpv6 on my LAN only neighbor discovery. Is there a better way to do this??You know that IPv6 address has from-pool parameter that can do it automatically, right?
Thanks! This was super helpfulIf that's not good enough for some reason, you can get some ideas from this script (I don't exactly recommend it as whole):
viewtopic.php?p=911478#p911478
/ipv6 dhcp-client
add add-default-route=yes interface=wan pool-name=comcast_ipv6 \
prefix-hint=::/60 request=address,prefix use-peer-dns=no
/ipv6 address
add from-pool=comcast_ipv6 interface=vlan10
add from-pool=comcast_ipv6 interface=vlan500
mikrotik is so good - thanks guys[adm@gw01] /ipv6/nd/prefix/default> print
autonomous: yes
valid-lifetime: 5m
preferred-lifetime: 2m30s