In SLIP server section:

Brush up a bit the kernel configuration subsection.
This commit is contained in:
Marc Fonvieille 2005-07-12 16:31:40 +00:00
parent ad7e7dca8d
commit 76a86b186a
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/head/; revision=25090

View file

@ -2816,36 +2816,28 @@ water.CS.Example localhost.Example. UGH 34 47641234 lo0 - 0.438
<sect3>
<title>Kernel Configuration</title>
<indexterm><primary>kernel</primary><secondary>configuration</secondary></indexterm>
<para>FreeBSD's default kernels usually come with two SLIP
interfaces defined (<devicename>sl0</devicename> and
<devicename>sl1</devicename>); you can use <command>netstat
-i</command> to see whether these interfaces are defined in your
kernel.</para>
<indexterm><primary>SLIP</primary></indexterm>
<para>Sample output from <command>netstat -i</command>:</para>
<para>&os;'s default kernel (<filename>GENERIC</filename>)
comes with SLIP (&man.sl.4;) support; in case of a custom
kernel, you have to add the following line to your kernel
configuration file:</para>
<screen>Name Mtu Network Address Ipkts Ierrs Opkts Oerrs Coll
ed0 1500 &lt;Link&gt;0.0.c0.2c.5f.4a 291311 0 174209 0 133
ed0 1500 138.247.224 ivory 291311 0 174209 0 133
lo0 65535 &lt;Link&gt; 79 0 79 0 0
lo0 65535 loop localhost 79 0 79 0 0
sl0* 296 &lt;Link&gt; 0 0 0 0 0
sl1* 296 &lt;Link&gt; 0 0 0 0 0</screen>
<programlisting>device sl</programlisting>
<para>The <devicename>sl0</devicename> and
<devicename>sl1</devicename> interfaces shown from
<command>netstat -i</command> indicate that there are
two SLIP interfaces built into the kernel. (The asterisks after
the <literal>sl0</literal> and <literal>sl1</literal> indicate
that the interfaces are <quote>down</quote>.)</para>
<para>Under &os;&nbsp;4.X, use instead the following
line:</para>
<para>However, FreeBSD's default kernel does not come configured
to forward packets (by default, your FreeBSD machine will not act
as a
router) due to Internet RFC requirements for Internet hosts (see
RFCs 1009 [Requirements for Internet Gateways], 1122
[Requirements for Internet Hosts &mdash; Communication Layers],
and perhaps 1127 [A Perspective on the Host Requirements RFCs]).
<programlisting>pseudo-device sl 2</programlisting>
<note>
<para>The number at the end of the line is the maximum
number of SLIP connections that may be operating
simultaneously. Since &os;&nbsp;5.0, the &man.sl.4;
driver is <quote>auto-cloning</quote>.</para>
</note>
<para>By default, your &os; machine will not forward packets.
If you want your FreeBSD SLIP Server to act as a router, you
will have to edit the <filename>/etc/rc.conf</filename> file and
change the setting of the <literal>gateway_enable</literal> variable to
@ -2854,18 +2846,6 @@ sl1* 296 &lt;Link&gt; 0 0 0 0
<para>You will then need to reboot for the new settings to take
effect.</para>
<para>You will notice that near the end of the default kernel
configuration file (<filename>/sys/i386/conf/GENERIC</filename>)
is a line that reads:</para>
<programlisting>pseudo-device sl 2</programlisting>
<indexterm><primary>SLIP</primary></indexterm>
<para>This is the line that defines the number of SLIP devices
available in the kernel; the number at the end of the line is
the maximum number of SLIP connections that may be operating
simultaneously.</para>
<para>Please refer to <xref linkend="kernelconfig"> on
Configuring the FreeBSD Kernel for help in
reconfiguring your kernel.</para>