166 lines
3.0 KiB
HTML
166 lines
3.0 KiB
HTML
<HTML
|
|
><HEAD
|
|
><TITLE
|
|
>Setting up the routing</TITLE
|
|
><META
|
|
NAME="GENERATOR"
|
|
CONTENT="Modular DocBook HTML Stylesheet Version 1.52"><LINK
|
|
REL="HOME"
|
|
TITLE="Linux PPP HOWTO"
|
|
HREF="index.html"><LINK
|
|
REL="UP"
|
|
TITLE="Linking two networks using PPP"
|
|
HREF="wan.html"><LINK
|
|
REL="PREVIOUS"
|
|
TITLE="Linking two networks using PPP"
|
|
HREF="wan.html"><LINK
|
|
REL="NEXT"
|
|
TITLE="Network security"
|
|
HREF="x1418.html"></HEAD
|
|
><BODY
|
|
CLASS="SECT1"
|
|
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="wan.html"
|
|
>Prev</A
|
|
></TD
|
|
><TD
|
|
WIDTH="80%"
|
|
ALIGN="center"
|
|
VALIGN="bottom"
|
|
>Chapter 24. Linking two networks using PPP</TD
|
|
><TD
|
|
WIDTH="10%"
|
|
ALIGN="right"
|
|
VALIGN="bottom"
|
|
><A
|
|
HREF="x1418.html"
|
|
>Next</A
|
|
></TD
|
|
></TR
|
|
></TABLE
|
|
><HR
|
|
ALIGN="LEFT"
|
|
WIDTH="100%"></DIV
|
|
><DIV
|
|
CLASS="SECT1"
|
|
><H1
|
|
CLASS="SECT1"
|
|
><A
|
|
NAME="AEN1410"
|
|
>24.2. Setting up the routing</A
|
|
></H1
|
|
><P
|
|
>You must arrange that packets on your local LAN are routed across the
|
|
interface that the PPP link establishes. This is a two stage process.</P
|
|
><P
|
|
>First of all, you need to establish a route from the machine running the
|
|
PPP link to the network(s) at the far end of the link. If the link is to
|
|
the Internet, this can be handled by a default route established by pppd
|
|
itself at your end of the connection using the 'defaultroute' option to pppd.</P
|
|
><P
|
|
>If however, the link is only linking two LANs, then a specific network
|
|
route must be added for each network that is accessible across the link.
|
|
This is done using a 'route' command for each network in the
|
|
/etc/ppp/ip-up script (see "After the link comes up"...) for instructions
|
|
on doing this.</P
|
|
><P
|
|
>The second thing you need to do is to tell the other computers on your
|
|
LAN that your Linux computer is actually the 'gateway' for the network(s)
|
|
at the far end of the ppp link.</P
|
|
><P
|
|
>Of course, the network administrator at the other end of the link has to
|
|
do all this too! However, as s/he will be routing packets to your specific
|
|
networks, a <I
|
|
CLASS="EMPHASIS"
|
|
>specific network route</I
|
|
> will be required, not a default
|
|
route (unless the LANs at the far and of the link are linking into you
|
|
to access the Internet across your connection).</P
|
|
></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="wan.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="x1418.html"
|
|
>Next</A
|
|
></TD
|
|
></TR
|
|
><TR
|
|
><TD
|
|
WIDTH="33%"
|
|
ALIGN="left"
|
|
VALIGN="top"
|
|
>Linking two networks using PPP</TD
|
|
><TD
|
|
WIDTH="34%"
|
|
ALIGN="center"
|
|
VALIGN="top"
|
|
><A
|
|
HREF="wan.html"
|
|
>Up</A
|
|
></TD
|
|
><TD
|
|
WIDTH="33%"
|
|
ALIGN="right"
|
|
VALIGN="top"
|
|
>Network security</TD
|
|
></TR
|
|
></TABLE
|
|
></DIV
|
|
></BODY
|
|
></HTML
|
|
> |