Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Jun 2016 22:50:31 +0900 (JST)
From:      Hiroki Sato <hrs@FreeBSD.org>
To:        stdin@niklaas.eu
Cc:        freebsd-net@freebsd.org, freebsd-questions@freebsd.org
Subject:   Re: And what about ipv6_defaultrouter?
Message-ID:  <20160610.225031.1318863285679295699.hrs@allbsd.org>
In-Reply-To: <20160610071254.GC2817@box-hlm-03.niklaas.eu>
References:  <20160610065224.GB2817@box-hlm-03.niklaas.eu> <20160610071254.GC2817@box-hlm-03.niklaas.eu>

next in thread | previous in thread | raw e-mail | index | archive | help
----Security_Multipart(Fri_Jun_10_22_50_31_2016_828)--
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Niklaas Baudet von Gersdorff <stdin@niklaas.eu> wrote
  in <20160610071254.GC2817@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

----Security_Multipart(Fri_Jun_10_22_50_31_2016_828)--
Content-Type: application/pgp-signature
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iEYEABECAAYFAldaxacACgkQTyzT2CeTzy3RVQCg0tDzc6mr49Vo7ixexi3JETZG
m70AnjAG7p2A8ZNmunxxJQX3tDFQ7sT2
=esrc
-----END PGP SIGNATURE-----

----Security_Multipart(Fri_Jun_10_22_50_31_2016_828)----



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20160610.225031.1318863285679295699.hrs>