From mboxrd@z Thu Jan 1 00:00:00 1970 From: Abraham van der Merwe Date: Sat, 30 Nov 2002 11:53:57 +0000 Subject: Re: [LARTC] Linking two networks MIME-Version: 1 Content-Type: multipart/mixed; boundary="VS++wcV0S1rZb1Fb" Message-Id: List-Id: References: In-Reply-To: To: lartc@vger.kernel.org --VS++wcV0S1rZb1Fb Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Roch?! > I just had a data line installed between my home and the office. I've > managed to connect the two sides successfully with ppp and the gateways > on both sides can see each other. I want the hosts behind the > gateways to see each other as well and although this is discussed in > some howtos I couldn't get this right and need some help with the > routing. >=20 > Here's my setup: >=20 > At home I have a 192.168.2.0 network and at the office I have a > 192.168.1.0 network. >=20 > The gateway at home is 192.168.2.10 and at the office it is > 192.168.1.10. >=20 > My routing table at home looks like this: >=20 > Destination Gateway Genmask Flags Metric Ref Use Iface > 192.168.1.10 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0 > 192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 > 192.168.1.0 192.168.1.10 255.255.255.0 UG 0 0 0 ppp0 > 0.0.0.0 0.0.0.0 0.0.0.0 U 0 0 0 ppp0 You don't need to add a route to get to 192.168.1.0/24 since you your default gw will route packets to that network anyway. You are also use 192.168.1.10 as a gateway to get onto the 1/24 network which won't work (you can't use a machine on the network which you want to reach as a gateway). You want to be using 192.168.2.10 as a gateway to get onto the 1/24 network. Also, you can use unnumbered ppp. Just do this: 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. On your office side, you'll have pppd ... 192.168.1.10:192.168.2.10 and on your home side, you'll have pppd ... defaultroute : 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 Regards Abraham QOTD: "I used to jog, but the ice kept bouncing out of my glass." ___________________________________________________ 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 --VS++wcV0S1rZb1Fb 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 iD8DBQE96KbV0jJV70h31dERAvt0AJ9dDPSPbYVe8AOZ3e/D3uGZ6NPOJQCdHklh WivWx24MJLXUFVbM7jRgxhI= =h80b -----END PGP SIGNATURE----- --VS++wcV0S1rZb1Fb-- _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/