In the IPv6 section:
Add rc.conf configuration examples PR: 67996 Submitted by: Brad Davis <so14k@so14k.com>
This commit is contained in:
parent
456c702b03
commit
cfb31503b3
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/head/; revision=21343
1 changed files with 102 additions and 0 deletions
|
@ -7498,6 +7498,14 @@ round-trip min/avg/max/stddev = 2.530/2.643/2.774/0.103 ms</screen>
|
|||
<contrib>Restructured and Added by </contrib>
|
||||
</author>
|
||||
</authorgroup>
|
||||
<authorgroup>
|
||||
<author>
|
||||
<firstname>Brad</firstname>
|
||||
<surname>Davis</surname>
|
||||
<contrib>Extended by </contrib>
|
||||
</author>
|
||||
</authorgroup>
|
||||
|
||||
</sect1info>
|
||||
|
||||
<title>IPv6</title>
|
||||
|
@ -7838,6 +7846,100 @@ gif0: flags=8010<POINTOPOINT,MULTICAST> mtu 1280
|
|||
and <filename role="package">dns/djbdns</filename> (with the IPv6 patch)
|
||||
support AAAA records.</para>
|
||||
</sect2>
|
||||
|
||||
<sect2>
|
||||
<title>Applying the needed changes to <filename>/etc/rc.conf</filename></title>
|
||||
|
||||
<sect3>
|
||||
<title>IPv6 Client Settings</title>
|
||||
|
||||
<para>These settings will help you configure a machine that will be on
|
||||
your LAN and act as a client, not a router. To have &man.rtsol.8;
|
||||
autoconfigure your interface on boot all you need to add is:</para>
|
||||
|
||||
<programlisting>ipv6_enable="YES"</programlisting>
|
||||
|
||||
<para>To statically assign an IP address such as <hostid role="ip6addr">
|
||||
2001:471:1f11:251:290:27ff:fee0:2093</hostid>, to your
|
||||
<devicename>fxp0</devicename> interface, add:</para>
|
||||
|
||||
<programlisting>ipv6_ifconfig_fxp0="2001:471:1f11:251:290:27ff:fee0:2093"</programlisting>
|
||||
|
||||
<para>To assign a default router of
|
||||
<hostid role="ip6addr">2001:471:1f11:251::1</hostid>
|
||||
add the following to <filename>/etc/rc.conf</filename>:</para>
|
||||
|
||||
<programlisting>ipv6_defaultrouter="2001:471:1f11:251::1"</programlisting>
|
||||
|
||||
</sect3>
|
||||
|
||||
<sect3>
|
||||
<title>IPv6 Router/Gateway Settings</title>
|
||||
|
||||
<para>This will help you take the directions that your Tunnel provider,
|
||||
such as the <ulink url="http://www.6bone.net/">6bone</ulink>, has
|
||||
given you and convert it into settings that will persist through reboots.
|
||||
To restore your tunnel on startup use something like the following in
|
||||
<filename>/etc/rc.conf</filename>:</para>
|
||||
|
||||
<para>List the Generic Tunneling interfaces that will be configured, for
|
||||
example: gif0</para>
|
||||
|
||||
<programlisting>gif_interfaces="gif0"</programlisting>
|
||||
|
||||
<para>To configure the interface with a local endpoint of:
|
||||
<replaceable>MY_IPv4_ADDR</replaceable> to a remote endpoint of:
|
||||
<replaceable>REMOTE_IPv4_ADDR</replaceable>.</para>
|
||||
|
||||
<programlisting>gif_config_gif0="<replaceable>MY_IPv4_ADDR REMOTE_IPv4_ADDR</replaceable>"</programlisting>
|
||||
|
||||
<para>To apply the IPv6 address you have been assigned for use as your
|
||||
IPv6 tunnel endpoint, add:</para>
|
||||
|
||||
<programlisting>ipv6_ifconfig_gif0="<replaceable>MY_ASSIGNED_IPv6_TUNNEL_ENDPOINT_ADDR</replaceable>"</programlisting>
|
||||
|
||||
<para>Then all you have to do is set the default route for IPv6. This is
|
||||
the other side of the IPv6 Tunnel.</para>
|
||||
|
||||
<programlisting>ipv6_defaultrouter="<replaceable>MY_IPv6_REMOTE_TUNNEL_ENDPOINT_ADDR</replaceable>"</programlisting>
|
||||
|
||||
</sect3>
|
||||
</sect2>
|
||||
|
||||
<sect2>
|
||||
<title>Router Advertisement and Host Auto Configuration</title>
|
||||
|
||||
<para>This section will help you setup &man.rtadvd.8; to advertise the
|
||||
IPv6 default route.</para>
|
||||
|
||||
<para>To enable &man.rtadvd.8; you'll need the following in your
|
||||
<filename>/etc/rc.conf</filename>:</para>
|
||||
|
||||
<programlisting>rtadvd_enable="YES"</programlisting>
|
||||
|
||||
<para>It is important that you specify the interface on which to do
|
||||
IPv6 router solicitation. For example to tell &man.rtadvd.8; to use
|
||||
<devicename>fxp0</devicename>:</para>
|
||||
|
||||
<programlisting>rtadvd_interfaces="fxp0"</programlisting>
|
||||
|
||||
<para>Now we must create the config file,
|
||||
<filename>/etc/rtadvd.conf</filename>. Here is an example:</para>
|
||||
|
||||
<programlisting>fxp0:\
|
||||
:addrs#1:addr="2001:471:1f11:246::":prefixlen#64:tc=ether:</programlisting>
|
||||
|
||||
<para>Replace <devicename>fxp0</devicename> with the interface you
|
||||
are going to be using.</para>
|
||||
|
||||
<para>Next, replace <hostid role="ip6addr">2001:471:1f11:246::</hostid>
|
||||
with the prefix of your allocation.</para>
|
||||
|
||||
<para>If you are dedicated a <hostid role="netmask">/64</hostid> subnet
|
||||
you won't need to change anything else. Otherwise, you will need to
|
||||
change the <literal>prefixlen#</literal> to the correct value.</para>
|
||||
|
||||
</sect2>
|
||||
</sect1>
|
||||
|
||||
<sect1 id="network-atm">
|
||||
|
|
Loading…
Reference in a new issue