To provide the conveyance of the configuration information, a single DHCPv6 option is used, expressing the AFTR's Fully Qualified Domain Name (FQDN) to the B4 element.
<gif> <tunnel-local-addr>192.0.0.2</tunnel-local-addr> <tunnel-remote-addr>192.0.0.1</tunnel-remote-addr> <tunnel-remote-net>29</tunnel-remote-net> <remote-addr>2a02:8071:2000::4002</remote-addr> <descr>Vodafone West DS-Lite (Karlsruhe AFTR)</descr> <gifif>gif0</gifif> <if>wan</if> <ipaddr/></gif>
/usr/local/etc/rc.bootup: The command '/sbin/ifconfig 'gif0' inet6 tunnel '' '2a02:8071:2000::4002'' returned exit code '1', the output was 'ifconfig: error in parsing address string: Name does not resolve'
# ifconfig gif0gif0: flags=8011<UP,POINTOPOINT,MULTICAST> metric 0 mtu 1280 options=80000<LINKSTATE> inet 192.0.0.2 --> 192.0.0.1 netmask 0xfffffff8 groups: gif nd6 options=2b<PERFORMNUD,ACCEPT_RTADV,IFDISABLED,AUTO_LINKLOCAL>
# ifconfig gif0gif0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> metric 0 mtu 1280 description: WAN_4in6 (opt1) options=80000<LINKSTATE> tunnel inet6 2a02:8071:3123:4567::a --> 2a02:8071:2000::4002 inet 192.0.0.2 --> 192.0.0.1 netmask 0xfffffff8 groups: gif nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
Now DS-Lite has IPv6 as primary, which doesn't reload GIF tunnels like IPv4 does:
# opnsense-patch 315153a07