[LARTC] How to manage routing with two NIC on the same network

Linux Advanced Routing and Traffic Control

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

 



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@xxxxxxx)
AETA.COM
361, Avenue du Général De Gaulle
92140 CLAMART
FRANCE
Tél:01.41.36.12.93
------------------------------------------------
 


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