99 lines
5.6 KiB
HTML
99 lines
5.6 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3O//DTD W3 HTML 2.0//EN">
|
|
<!Converted with LaTeX2HTML 95.1 (Fri Jan 20 1995) by Nikos Drakos (nikos@cbl.leeds.ac.uk), CBLU, University of Leeds >
|
|
<HEAD>
|
|
<TITLE>5.3.3 SLIP Configuration</TITLE>
|
|
</HEAD>
|
|
<BODY>
|
|
<meta name="description" value="5.3.3 SLIP Configuration">
|
|
<meta name="keywords" value="gs">
|
|
<meta name="resource-type" value="document">
|
|
<meta name="distribution" value="global">
|
|
<P>
|
|
<BR> <HR><A NAME=tex2html4555 HREF="node218.html"><IMG ALIGN=BOTTOM ALT="next" SRC="next_motif.gif"></A> <A NAME=tex2html4553 HREF="node206.html"><IMG ALIGN=BOTTOM ALT="up" SRC="up_motif.gif"></A> <A NAME=tex2html4547 HREF="node216.html"><IMG ALIGN=BOTTOM ALT="previous" SRC="previous_motif.gif"></A> <A NAME=tex2html4557 HREF="node1.html"><IMG ALIGN=BOTTOM ALT="contents" SRC="contents_motif.gif"></A> <A NAME=tex2html4558 HREF="node250.html"><IMG ALIGN=BOTTOM ALT="index" SRC="index_motif.gif"></A> <BR>
|
|
<B> Next:</B> <A NAME=tex2html4556 HREF="node218.html">5.3.3.1 Static IP address </A>
|
|
<B>Up:</B> <A NAME=tex2html4554 HREF="node206.html">5.3 Networking with TCP/IP</A>
|
|
<B> Previous:</B> <A NAME=tex2html4548 HREF="node216.html">5.3.2.8 Trying it out</A>
|
|
<BR> <HR> <P>
|
|
<H2><A NAME=SECTION00733000000000000000>5.3.3 SLIP Configuration</A></H2>
|
|
<P>
|
|
<A NAME=5916> </A>
|
|
<A NAME=5917> </A>
|
|
<A NAME=5918> </A>
|
|
<A NAME=5919> </A>
|
|
SLIP (Serial Line Internet Protocol) allows you to use TCP/IP
|
|
over a serial line, be that a phone line, with a dialup modem, or
|
|
a leased asynchronous line of some sort. Of course, to use SLIP you'll
|
|
need access to a dial-in SLIP server in your area. Many universities
|
|
and businesses provide SLIP access for a modest fee.
|
|
<P>
|
|
<A NAME=6101> </A>
|
|
<A NAME=6102> </A>
|
|
There are two major SLIP-related programs available---<tt>dip</tt> and
|
|
<tt>slattach</tt>. Both of these programs are used to initiate a SLIP
|
|
connection over a serial device. It is <em>necessary</em> to use one
|
|
of these programs in order to enable SLIP---it will not suffice to
|
|
dial up the SLIP server (with a communications program such as
|
|
<tt>kermit</tt>) and issue <tt>ifconfig</tt> and <tt>route</tt> commands.
|
|
This is because <tt>dip</tt> and <tt>slattach</tt> issue a special
|
|
<em>ioctl()</em> system call to seize control of the serial device to
|
|
be used as a SLIP interface.
|
|
<P>
|
|
<tt>dip</tt> can be used to dial up a SLIP server,
|
|
do some handshaking to login to the server (exchanging your username
|
|
and password, for example) and then initate the SLIP connection over the
|
|
open serial line. <tt>slattach</tt>, on the other hand, does very little
|
|
other than grab the serial device for use by SLIP. It is useful if you
|
|
have a permanent line to your SLIP server and no modem dialup or handshaking
|
|
is necessary to initiate the connection. Most dialup SLIP users should
|
|
use <tt>dip</tt>, on the other hand.
|
|
<P>
|
|
<tt>dip</tt> can also be used to configure your Linux system as a SLIP
|
|
server, where other machines can dial into your own and connect to the
|
|
network through a secondary Ethernet connection on your machine.
|
|
See the documentation and man pages for <tt>dip</tt> for more information
|
|
on this procedure.
|
|
<P>
|
|
<A NAME=5936> </A>
|
|
<A NAME=5937> </A>
|
|
<A NAME=5938> </A>
|
|
<A NAME=5939> </A>
|
|
SLIP is quite unlike Ethernet, in that there are only two machines
|
|
on the ``network''---the SLIP host (that's you) and the SLIP server.
|
|
For this reason, SLIP is often referred to as a ``point-to-point''
|
|
connection. A generalization of this idea, known as PPP (Point to Point
|
|
Protocol) has also been implemented for Linux.
|
|
<P>
|
|
When you initiate a connection to a SLIP server, the SLIP server will
|
|
give you an IP address based on (usually) one of two methods. Some
|
|
SLIP servers allocate ``static'' IP addresses---in which case your
|
|
IP address will be the same every time you connect to the server.
|
|
However, many SLIP servers allocate IP addresses dynamically---in which
|
|
case you receive a different IP address each time you connect.
|
|
In general, the SLIP server will print the values of your IP and
|
|
gateway addresses when you connect. <tt>dip</tt> is capable of reading
|
|
these values from the output of the SLIP server login session and
|
|
using them to configure the SLIP device.
|
|
<P>
|
|
Essentially, configuring a SLIP connection is just like configuring
|
|
for loopback or ethernet. The main differences are discussed below.
|
|
Read the previous section on configuring the basic TCP/IP files,
|
|
and apply the changes described below.
|
|
<P>
|
|
<BR> <HR>
|
|
<UL>
|
|
<LI> <A NAME=tex2html4559 HREF="node218.html#SECTION00733100000000000000">5.3.3.1 Static IP address SLIP connections using dip</A>
|
|
<LI> <A NAME=tex2html4560 HREF="node219.html#SECTION00733200000000000000">5.3.3.2 Static IP address SLIP connections using slattach</A>
|
|
<LI> <A NAME=tex2html4561 HREF="node220.html#SECTION00733300000000000000">5.3.3.3 Dynamic IP address SLIP connections using dip</A>
|
|
</UL>
|
|
<BR> <HR><A NAME=tex2html4555 HREF="node218.html"><IMG ALIGN=BOTTOM ALT="next" SRC="next_motif.gif"></A> <A NAME=tex2html4553 HREF="node206.html"><IMG ALIGN=BOTTOM ALT="up" SRC="up_motif.gif"></A> <A NAME=tex2html4547 HREF="node216.html"><IMG ALIGN=BOTTOM ALT="previous" SRC="previous_motif.gif"></A> <A NAME=tex2html4557 HREF="node1.html"><IMG ALIGN=BOTTOM ALT="contents" SRC="contents_motif.gif"></A> <A NAME=tex2html4558 HREF="node250.html"><IMG ALIGN=BOTTOM ALT="index" SRC="index_motif.gif"></A> <BR>
|
|
<B> Next:</B> <A NAME=tex2html4556 HREF="node218.html">5.3.3.1 Static IP address </A>
|
|
<B>Up:</B> <A NAME=tex2html4554 HREF="node206.html">5.3 Networking with TCP/IP</A>
|
|
<B> Previous:</B> <A NAME=tex2html4548 HREF="node216.html">5.3.2.8 Trying it out</A>
|
|
<BR> <HR> <P>
|
|
<BR> <HR>
|
|
<P><ADDRESS>
|
|
<I>Matt Welsh <BR>
|
|
mdw@sunsite.unc.edu</I>
|
|
</ADDRESS>
|
|
</BODY>
|