From mboxrd@z Thu Jan 1 00:00:00 1970 From: Franck BALAZOT Date: Wed, 04 Jul 2001 06:27:51 +0000 Subject: [LARTC] How to manage routing with two NIC on the same network MIME-Version: 1 Content-Type: multipart/mixed; boundary="------------7F9AB320C273E0FBC80D3427" Message-Id: List-Id: To: lartc@vger.kernel.org --------------7F9AB320C273E0FBC80D3427 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi all, Here is my problem. I need to use a linux box to manage the internet bandwidth. The problem is that I need to use two public IP address on the 2 network interface of my linux router : +--------------+ +-----------+ +----------------+ Internet ----| Cisco router |--------| linux box |--------| firewall + NAT |------ LAN (192.168.0.0) +--------------+ +-----------+ +----------------+ eth1 eth0 195.115.96.a 195.115.96.b 195.115.96.c 195.115.96.d the Cisco router, the linux and the firewall have public IP address on the same network. I need some help to configure the routing table of the linux box, because in this configuration the packet at destination of 195.115.96.0 are routed on eth0 and also on eth1 and I can't delete these routes with the route utility. What I want is to route all the packet at destination of 195.115.96.d by eth0 and create a default route by eth1 : Destination Gateway Genmask Flags Metric Ref Use Iface 195.115.96.d * 255.255.255.240 UGH 0 0 0 eth0 127.0.0.0 * 255.0.0.0 U 0 0 0 lo default 195.115.96.a 0.0.0.0 UG 0 0 0 eth1 but what I have is (and it doesn't work) : Destination Gateway Genmask Flags Metric Ref Use Iface 195.115.96.d * 255.255.255.240 UGH 0 0 0 eth0 195.115.96.0 * 255.255.255.240 U 0 0 0 eth0 195.115.96.0 * 255.255.255.240 U 0 0 0 eth1 127.0.0.0 * 255.0.0.0 U 0 0 0 lo default 195.115.96.a 0.0.0.0 UG 0 0 0 eth1 Thanks for help ! ------------------------------------------------ Franck BALAZOT (fbalazot@aeta.fr) AETA.COM 361, Avenue du G=E9n=E9ral De Gaulle 92140 CLAMART FRANCE T=E9l:01.41.36.12.93 ------------------------------------------------ --------------7F9AB320C273E0FBC80D3427 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit Hi all,

Here is my problem. I need to use a linux box to manage the internet bandwidth. The problem is that I need to use two public IP address on the 2 network interface of my linux router :

             +--------------+        +-----------+        +----------------+
Internet ----| Cisco router |--------| linux box |--------| firewall + NAT |------ LAN (192.168.0.0)
             +--------------+        +-----------+        +----------------+
                                    eth1       eth0
               195.115.96.a    195.115.96.b  195.115.96.c    195.115.96.d

the Cisco router, the linux and the firewall have public IP address on the same network.

I need some help to configure the routing table of the linux box, because in this configuration
the packet at destination of 195.115.96.0 are routed on eth0 and also on eth1 and I can't delete these routes with the route utility.

What I want is to route all the packet at destination of 195.115.96.d by eth0 and create a default route by eth1 :

Destination     Gateway         Genmask        Flags Metric Ref    Use Iface
195.115.96.d       *          255.255.255.240    UGH   0      0     0  eth0
127.0.0.0          *          255.0.0.0          U     0      0     0  lo
default       195.115.96.a    0.0.0.0            UG    0      0     0  eth1

but what I have is (and it doesn't work) :

Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
195.115.96.d       *          255.255.255.240    UGH   0      0     0  eth0
195.115.96.0       *          255.255.255.240    U     0      0     0  eth0
195.115.96.0       *          255.255.255.240    U     0      0     0  eth1
127.0.0.0          *          255.0.0.0          U     0      0     0  lo
default       195.115.96.a    0.0.0.0            UG    0      0     0  eth1
 

Thanks for help !

------------------------------------------------
Franck BALAZOT (fbalazot@aeta.fr)
AETA.COM
361, Avenue du Général De Gaulle
92140 CLAMART
FRANCE
Tél:01.41.36.12.93
------------------------------------------------
  --------------7F9AB320C273E0FBC80D3427-- _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/