From mboxrd@z Thu Jan 1 00:00:00 1970 From: Abraham van der Merwe Date: Sat, 30 Nov 2002 12:37:09 +0000 Subject: Re: [LARTC] Linking two networks MIME-Version: 1 Content-Type: multipart/mixed; boundary="pWyiEgJYm5f9v55/" Message-Id: List-Id: References: In-Reply-To: To: lartc@vger.kernel.org --pWyiEgJYm5f9v55/ Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Roch?! > > On your home gateway's eth0 assign 192.168.2.10 and on your office's > > side, assign 192.168.1.10 to eth1. Then use unnumbered ppp on both > > sides and make sure that ip forwarding is enabled on the office gw. >=20 > I don't quite follow how to set up unnumbered ppp. Should I just omit > the local_ip:remote_ip in my ppp options file at home? That is correct. See, ppp is a point-to-point protocol, so traffic can only go in two directions anyway, so you can tell ppp not to use any kind of layer 3 routing and just send packets to the other side automatically. In Linux you do that by just specifying local_ip:remote_ip on the server side and : on the client side. > > Of course, you probably have /etc/ppp/* with the pon/poff scripts in > > which case you need to add above to your /etc/ppp/peers/* scripts >=20 > At the moment I have no scripts in place - I'm doing it manually to see > what works and what I should eventually put in the scripts. I only have > /etc/ppp/options on both sides. Ok, so this (otoh so don't blame me if it doesn't work *g*) in your inittab should do the job: ------------< snip <------< snip <------< snip <------------ # At office S0:23:respawn:/usr/sbin/pppd /dev/ttyS0 115200 modem noauth crtscts persist= \ 192.168.1.10:192.168.2.10 nodetach >>/var/log/leased.log # At home S0:23:respawn:/usr/sbin/pppd /dev/ttyS0 115200 noauth lock debug crtscts defaultroute persist nodetach >>/var/log/leased.log ------------< snip <------< snip <------< snip <------------ --=20 Regards Abraham A morsel of genuine history is a thing so rare as to be always valuable. -- Thomas Jefferson ___________________________________________________ Abraham vd Merwe [ZR1BBQ] - Frogfoot Networks P.O. Box 3472, Matieland, Stellenbosch, 7602 Cell: +27 82 565 4451 Http: http://www.frogfoot.net Email: abz@frogfoot.net --pWyiEgJYm5f9v55/ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.5 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE96LD10jJV70h31dERAktlAJ0Rjhw8ptNJwCDqiFwH5OwrDHjzqQCeIZ2F RPRCWFp3F1QLdP5JJcakTV0= =94/q -----END PGP SIGNATURE----- --pWyiEgJYm5f9v55/-- _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/