problem - multiple links to a network

Linux Advanced Routing and Traffic Control

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

 



Hi,

I have a Linux machine with kernel 2.6 and 3 network cards. I would
like to ask what rules should I have in the routing table so that:

192.168.254.0/25 is routed through eth1
192.168.254.128/25 is routed through eth2

eth0 is my internal interface and eth1/eth2 are the external
interfaces.

* What is particulary specific for this case is that ipaddr_eth1 is in
the same network as ipaddr_eth2 and that ipaddr_gateway_eth1 is the
same as ipaddr_gateway_eth2.

Here is what I have done so far:

r2 root # ip rule ls
0:      from all lookup local 
32764:  from 192.168.254.0/25 lookup 230
32765:  from 192.168.254.128/25 lookup 231
32766:  from all lookup main 
32767:  from all lookup default 

r2 root # ip route ls
A.B.C.0/24 dev eth2  proto kernel  scope link  src A.B.C.X
A.B.C.0/24 dev eth1  proto kernel  scope link  src A.B.C.Y
192.168.254.0/24 dev eth0  proto kernel  scope link  src 192.168.254.1 
default via A.B.C.D dev eth1 

r2 root # ip route ls table 230
A.B.C.0/24 dev eth1  scope link  src A.B.C.X
A.B.C.0/24 dev eth0  scope link  src 192.168.254.1 
default via A.B.C.D dev eth1 

r2 root # ip route ls table 231
A.B.C.0/24 dev eth2  scope link  src A.B.C.Y
A.B.C.0/24 dev eth0  scope link  src 192.168.254.1 
default via A.B.C.D dev eth2 

As a result the network segment 192.168.254.128/25 does not have
access to Internet. Any ideas why? Is it a problem that eth1 is in the
same network as eth2? 

Thanks in advance,
-- 
Kamen TOMOV
_______________________________________________
LARTC mailing list / LARTC@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

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