old-www/HOWTO/PPP-HOWTO/wan.html

219 lines
3.8 KiB
HTML

<HTML
><HEAD
><TITLE
>Linking two networks using PPP</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.52"><LINK
REL="HOME"
TITLE="Linux PPP HOWTO"
HREF="index.html"><LINK
REL="PREVIOUS"
TITLE="Setting Up a local Name server"
HREF="x1386.html"><LINK
REL="NEXT"
TITLE="Setting up the routing"
HREF="x1410.html"></HEAD
><BODY
CLASS="CHAPTER"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
><A
HREF="http://www.linuxports.com/howto/ppp"
TARGET="_top"
>Linux PPP HOWTO</A
></TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="x1386.html"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="x1410.html"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="CHAPTER"
><H1
><A
NAME="WAN"
>Chapter 24. Linking two networks using PPP</A
></H1
><DIV
CLASS="TOC"
><DL
><DT
><B
>Table of Contents</B
></DT
><DT
>24.1. <A
HREF="wan.html#AEN1403"
>Setting up the IP numbers</A
></DT
><DT
>24.2. <A
HREF="x1410.html"
>Setting up the routing</A
></DT
><DT
>24.3. <A
HREF="x1418.html"
>Network security</A
></DT
></DL
></DIV
><P
>There is basically no difference between linking a single Linux PC to a
PPP server and linking two LANs using PPP on a machine on each LAN.
Remember, PPP is a <I
CLASS="EMPHASIS"
>peer to peer</I
> protocol.</P
><P
>However, you <I
CLASS="EMPHASIS"
>DEFINITELY</I
> need to understand about how routing is
established. Read the NET-2 howto and the Linux Network Administrator
Guide (NAG). You will also find TCP/IP Network
Administration (published by O'Reilly and Assoc - ISBN
0-937175-82-X) to be of invaluable assistance.</P
><P
>If you are going to be sub networking an IP network number on either side
of the link, you will also find the Linux (draft) sub networking
mini-howto) to be of use. This is available at <A
HREF="http://www.interweft.com.au/other/"
TARGET="_top"
>Linux Sub networking mini-HOWTO</A
>.</P
><P
>In order to link two LANs, you <I
CLASS="EMPHASIS"
>must</I
> be using different IP network
numbers (or subnets of the same network number) and you will need to use
static IP numbers - or use IP masquerade. If you want to use IP
masquerade, see the IP masquerade mini-howto for instructions on setting
that up.</P
><DIV
CLASS="SECT1"
><H1
CLASS="SECT1"
><A
NAME="AEN1403"
>24.1. Setting up the IP numbers</A
></H1
><P
>Arrange with the network administrator of the other LAN the IP numbers
that will be used for each end of the PPP interface. If you are using
static IP numbers, this will also probably require you to dial into a
specific telephone number.</P
><P
>Now edit the appropriate <TT
CLASS="LITERAL"
>/etc/ppp/options[.ttyXX]</TT
> file - it's a
good idea to have a specific modem and port at your end for this
connection. This may well require you to change your
<TT
CLASS="LITERAL"
>/etc/ppp/options</TT
> file - and create appropriate
options.ttyXX files for any other connections!</P
><P
>Specify the IP numbers for your end of the PPP link in
the appropriate options file exactly as shown above for static IP
numbers.</P
></DIV
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="x1386.html"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="x1410.html"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>Setting Up a local Name server</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
>&nbsp;</TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>Setting up the routing</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>