vtnet2: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 options=6c00b8<VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,VLAN_HWTSO,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6> inet6 fd45:5612:5ae5:867:: prefixlen 64 inet6 2002:XXX:d137 prefixlen 64 inet6 fe80::1:1%vtnet2 prefixlen 64 scopeid 0x3 nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
2: ens3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 state UP qlen 1000 inet6 fd45:5612:5ae5:867::2000/128 scope global dynamic noprefixroute valid_lft 7184sec preferred_lft 4484sec inet6 fd45:5612:5ae5:867:c3a:a550:9785:575/64 scope global dynamic mngtmpaddr noprefixroute valid_lft 86398sec preferred_lft 14398sec inet6 fe80::4113:fbcd:b20a:abe0/64 scope link valid_lft forever preferred_lft forever
option domain-name "foonet.foo";default-lease-time 7200;max-lease-time 86400;log-facility local7;one-lease-per-client true;deny duplicates;ping-check true;update-conflict-detection false;authoritative;subnet6 fd45:5612:5ae5:867::/64 { range6 fd45:5612:5ae5:867::1000 fd45:5612:5ae5:867::2000; option dhcp6.name-servers fd45:5612:5ae5:867::; prefix6 fd45:5612:5ae5:868:: fd45:5612:5ae5:86c::/63;}ddns-update-style none;
interface vtnet2 { AdvSendAdvert on; MinRtrAdvInterval 3; MaxRtrAdvInterval 10; AdvLinkMTU 1500; AdvOtherConfigFlag on; prefix fd45:5612:5ae5:867::/64 { AdvOnLink on; AdvAutonomous on; AdvRouterAddr on; }; RDNSS fd45:5612:5ae5:867:: { }; DNSSL heimnetz.netz { };};# Generated config for dhcp6 delegation from wan on laninterface vtnet1 { AdvSendAdvert on; MinRtrAdvInterval 3; MaxRtrAdvInterval 10; AdvLinkMTU 1500; AdvOtherConfigFlag on; prefix 2002:xxxx::/64 { AdvOnLink on; AdvAutonomous on; AdvRouterAddr on; }; RDNSS 2002:xxxx:4296 { }; DNSSL heimnetz.netz { };};
#!/bin/sh#ifconfig vtnet2 inet6 | grep inet6 | awk '{ print $2 }'IP6a=$(ifconfig vtnet2 | grep inet6 | awk '{print $2}')ula=falsegua=falsella=falsefor i in $IP6ado case $i in "fd45"*)" ula_addr="$i" ifconfig vtnet2 inet6 "$ula_addr" -alias ifconfig vtnet2 inet6 "$ula_addr" prefixlen 64 alias exit 1 ;; "200"*) exit 2 ;; "fe80"*) ;; *) ;; esac