Niklaas Baudet von Gersdorff <st...@niklaas.eu> wrote in <20160610071254.gc2...@box-hlm-03.niklaas.eu>:
st> Niklaas Baudet von Gersdorff [2016-06-10 08:52 +0200] : st> st> > --------------------8<-------------------- st> > ifconfig_vtnet0="DHCP" st> > ifconfig_vtnet0_ipv6="inet6 accept_rtadv" st> > rtsold_enable="YES" st> > -------------------->8-------------------- st> [...] st> > --------------------8<-------------------- st> > ipv6_defaultrouter="<IPv6-gateway>" st> > -------------------->8-------------------- st> st> Plus these lines: st> st> --------------------8<-------------------- st> gateway_enable="YES" st> ipv6_gateway_enable="YES" st> -------------------->8-------------------- A router does not accept RAs (more strictly, default route information in RA) because it is a sender of RAs. However, some devices such as CPE need to behave like a host for the uplink and a router for the LAN. In that case, an interface on the WAN side has to accept RAs and one on the LAN side has to send RAs. On FreeBSD, there is a knob to support it. Set the following variable to rc.conf in addition to your current configuration: ipv6_cpe_wanif="vtnet0" This touches some per-IF flags and sysctls. For more complex configurations such as having two or more uplinks you need to set them manually, but if you have only one uplink the above variable should do the trick. And, $rtsold_enable is not required unless you want to get DNS server information from RAs. -- Hiroki
pgpWevMRRiqcu.pgp
Description: PGP signature