Code: Select all
:local prefix1 2xxx:xxxx:xxxx:xxxx::/64;
:local prefix2 2axx:xxxx:xxxx:xxxx ::/64;
:local int1 sit1;
:local int2 sit2;
:if ([/interface 6to4 find where running and name=$int1])
do={/ipv6 nd prefix enable [find prefix=$prefix1];/ipv6 nd prefix disable [find prefix=$prefix2]}
else={:if ([/interface 6to4 find where running and name=$int2])
do={/ipv6 nd prefix disable [find prefix=$prefix1];/ipv6 nd prefix enable [find prefix=$prefix2]}}
And btw ipv6 NAT would be better in this case.