Franck BALAZOT
2001-Jul-04 06:27 UTC
How to manage routing with two NIC on the same network
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 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit <!doctype html public "-//w3c//dtd html 4.0 transitional//en"> <html> <tt>Hi all,</tt><tt></tt> <p><tt>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 :</tt><tt></tt> <p><tt> +--------------+ +-----------+ +----------------+</tt> <br><tt>Internet ----| Cisco router |--------| linux box |--------| firewall + NAT |------ LAN (192.168.0.0)</tt> <br><tt> +--------------+ +-----------+ +----------------+</tt> <br><tt> eth1 eth0</tt> <br><tt> 195.115.96.a 195.115.96.b 195.115.96.c 195.115.96.d</tt><tt></tt> <p><tt>the Cisco router, the linux and the firewall have public IP address on the same network.</tt><tt></tt> <p><tt>I need some help to configure the routing table of the linux box, because in this configuration</tt> <br><tt>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.</tt><tt></tt> <p><tt>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 :</tt><tt></tt> <p><tt>Destination Gateway Genmask Flags Metric Ref Use Iface</tt> <br><tt>195.115.96.d * 255.255.255.240 UGH 0 0 0 eth0</tt> <br><tt>127.0.0.0 * 255.0.0.0 U 0 0 0 lo</tt> <br><tt>default 195.115.96.a 0.0.0.0 UG 0 0 0 eth1</tt><tt></tt> <p><tt>but what I have is (and it doesn''t work) :</tt><tt></tt> <p><tt>Destination Gateway Genmask Flags Metric Ref Use Iface</tt> <br><tt>195.115.96.d * 255.255.255.240 UGH 0 0 0 eth0</tt> <br><tt>195.115.96.0 * 255.255.255.240 U 0 0 0 eth0</tt> <br><tt>195.115.96.0 * 255.255.255.240 U 0 0 0 eth1</tt> <br><tt>127.0.0.0 * 255.0.0.0 U 0 0 0 lo</tt> <br><tt>default 195.115.96.a 0.0.0.0 UG 0 0 0 eth1</tt> <br><tt></tt> <tt></tt> <p><tt>Thanks for help !</tt><tt></tt> <p><tt>------------------------------------------------</tt> <br><tt>Franck BALAZOT (fbalazot@aeta.fr)</tt> <br><tt>AETA.COM</tt> <br><tt>361, Avenue du Général De Gaulle</tt> <br><tt>92140 CLAMART</tt> <br><tt>FRANCE</tt> <br><tt>Tél:01.41.36.12.93</tt> <br><tt>------------------------------------------------</tt> <br><tt></tt> </html> --------------7F9AB320C273E0FBC80D3427--