[LARTC] How do I collapse this configuration into 1 router.

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



--BOKacYhQ+x31HxR3
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On 14-02-2003 at 01:26:00PM -0000, Chris Paulson-Ellis wrote:
CPE> Hi,
CPE>=20
CPE> I want the collapse the following configuration into 1 router...
CPE>=20
CPE> LAN1:192.168.1.0/24 --- Router1 [SNAT onto 10.0.0.1] --- LAN3
CPE> LAN2:192.168.1.0/24 --- Router2 [SNAT onto 10.0.0.2] --- LAN3
CPE> LAN3:10.0.0.0/8 --- Router3 [SNAT onto public IP] --- Internet
CPE>=20
CPE> Routers 1 & 2 SNAT traffic from LAN1 & LAN2 respectively on to LAN3 and
CPE> Router3 then SNATs from LAN3 onto the public Internet connection.
CPE>=20
CPE> My question is how I can collapse this into a single router (Router3),
CPE> eliminating LAN3, without renumbering LAN 1 or 2 so they don't have
CPE> duplicate adresses?
CPE>=20
If they don't have duplicate addresses connect them together and leave Rout=
er3 with SNAT.

If You need to have 2 LANs:
LAN1
    \192.168.1.1(eth0)
                 Router3 ---- Internet
    /192.168.1.2(eth1)
LAN2
ip a a 192.168.1.1 dev eth0
ip a a 192.168.1.2 dev eth1

ip r a 192.168.1.x dev eth0
ip r a 192.168.1.x dev eth0
=2E..
ip r a 192.168.1.y dev eth1
ip r a 192.168.1.y dev eth1
=2E..
where: x - IPs from LAN1
       y - IPs from LAN2
Router3 leave with SNAT.

Rgds,
  Bartek.
--
GPG-Key:
   http://www.bartek.bicom.pl/public_key.txt
   pub  1024D/948DE45D 2002-12-12 Bartek Krajnik <bartek@bicom.pl>
   Primary key fingerprint: 95E9 8E2D 1801 7864 2244  6EAA 03E5 764D 948D E=
45D

--BOKacYhQ+x31HxR3
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+Tn9hA+V2TZSN5F0RAqKjAKCyE22QJ8tYZWxqOKK7wtMQs7ETVgCfb/lA
G8h1XVGwauOaDJGmyDV6WAo=
=RfpU
-----END PGP SIGNATURE-----

--BOKacYhQ+x31HxR3--



[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux