And what about ipv6_defaultrouter?

Hiroki Sato hrs at FreeBSD.org
Fri Jun 10 13:53:07 UTC 2016


Niklaas Baudet von Gersdorff <stdin at niklaas.eu> wrote
  in <20160610071254.GC2817 at 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20160610/c7fbfecc/attachment.sig>


More information about the freebsd-questions mailing list