67 lines
3.8 KiB
HTML
67 lines
3.8 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.2 Static IP address SLIP connections using slattach</TITLE>
|
|
</HEAD>
|
|
<BODY>
|
|
<meta name="description" value="5.3.3.2 Static IP address SLIP connections using slattach">
|
|
<meta name="keywords" value="gs">
|
|
<meta name="resource-type" value="document">
|
|
<meta name="distribution" value="global">
|
|
<P>
|
|
<BR> <HR><A NAME=tex2html4582 HREF="node220.html"><IMG ALIGN=BOTTOM ALT="next" SRC="next_motif.gif"></A> <A NAME=tex2html4580 HREF="node217.html"><IMG ALIGN=BOTTOM ALT="up" SRC="up_motif.gif"></A> <A NAME=tex2html4574 HREF="node218.html"><IMG ALIGN=BOTTOM ALT="previous" SRC="previous_motif.gif"></A> <A NAME=tex2html4584 HREF="node1.html"><IMG ALIGN=BOTTOM ALT="contents" SRC="contents_motif.gif"></A> <A NAME=tex2html4585 HREF="node250.html"><IMG ALIGN=BOTTOM ALT="index" SRC="index_motif.gif"></A> <BR>
|
|
<B> Next:</B> <A NAME=tex2html4583 HREF="node220.html">5.3.3.3 Dynamic IP address </A>
|
|
<B>Up:</B> <A NAME=tex2html4581 HREF="node217.html">5.3.3 SLIP Configuration</A>
|
|
<B> Previous:</B> <A NAME=tex2html4575 HREF="node218.html">5.3.3.1 Static IP address </A>
|
|
<BR> <HR> <P>
|
|
<H3><A NAME=SECTION00733200000000000000>5.3.3.2 Static IP address SLIP connections using slattach</A></H3>
|
|
<P>
|
|
<A NAME=6108> </A>
|
|
<A NAME=6109> </A>
|
|
<A NAME=6110> </A>
|
|
If you have a leased line or cable running directly to your SLIP
|
|
server, then there is no need to use <tt>dip</tt> to initiate a connection.
|
|
<tt>slattach</tt> can be used to configure the SLIP device instead.
|
|
<P>
|
|
In this case, your <tt>/etc/rc.inet1</tt> file should look something like
|
|
the following:
|
|
<P><TT> <PRE>#!/bin/sh
|
|
IPADDR="128.253.154.32" # Replace with your IP address
|
|
REMADDR="128.253.154.2" # Replace with your SLIP server address
|
|
|
|
# Modify the following for the appropriate serial device for the SLIP
|
|
# connection:
|
|
slattach -p cslip -s 19200 /dev/ttyS0
|
|
/etc/ifconfig sl0 $IPADDR pointopoint $REMADDR up
|
|
/etc/route add default gw $REMADDR
|
|
</PRE> <P></TT>
|
|
<P>
|
|
<tt>slattach</tt> allocates the first unallocated SLIP device (<tt>sl0</tt>,
|
|
<tt>sl1</tt>, etc.) to the serial line specified.
|
|
<P>
|
|
Note that the first parameter to <tt>slattach</tt> is the SLIP protocol to use.
|
|
At present the only valid values are <tt>slip</tt> and <tt>cslip</tt>.
|
|
<tt>slip</tt> is regular SLIP, as you would expect, and <tt>cslip</tt> is
|
|
SLIP with datagram header compression. In most cases you should use
|
|
<tt>cslip</tt>; however, if you seem to be having problems with this,
|
|
try <tt>slip</tt>.
|
|
<P>
|
|
If you have more than one SLIP interface then you will have routing
|
|
considerations to make. You will have to decide what routes to
|
|
add, and those decisions can only be made on the basis of the
|
|
actual layout of your network connections. A book on TCP/IP network
|
|
configuration, as well as the man pages to <tt>route</tt>, will be of
|
|
use.
|
|
<P>
|
|
<BR> <HR><A NAME=tex2html4582 HREF="node220.html"><IMG ALIGN=BOTTOM ALT="next" SRC="next_motif.gif"></A> <A NAME=tex2html4580 HREF="node217.html"><IMG ALIGN=BOTTOM ALT="up" SRC="up_motif.gif"></A> <A NAME=tex2html4574 HREF="node218.html"><IMG ALIGN=BOTTOM ALT="previous" SRC="previous_motif.gif"></A> <A NAME=tex2html4584 HREF="node1.html"><IMG ALIGN=BOTTOM ALT="contents" SRC="contents_motif.gif"></A> <A NAME=tex2html4585 HREF="node250.html"><IMG ALIGN=BOTTOM ALT="index" SRC="index_motif.gif"></A> <BR>
|
|
<B> Next:</B> <A NAME=tex2html4583 HREF="node220.html">5.3.3.3 Dynamic IP address </A>
|
|
<B>Up:</B> <A NAME=tex2html4581 HREF="node217.html">5.3.3 SLIP Configuration</A>
|
|
<B> Previous:</B> <A NAME=tex2html4575 HREF="node218.html">5.3.3.1 Static IP address </A>
|
|
<BR> <HR> <P>
|
|
<BR> <HR>
|
|
<P><ADDRESS>
|
|
<I>Matt Welsh <BR>
|
|
mdw@sunsite.unc.edu</I>
|
|
</ADDRESS>
|
|
</BODY>
|