2 NICs 2 networks 2 gateways
We have a redhat machine sat on two networks, each network having its own gateway. We want the machine to be able to see both networks and connect to machines through the gateways. We do not want the machine to allow talk between the two networks however.
I set up the two gateways in /etc/sysconfig/network-scripts/ifcfg-eth0 and ifcfg-eth1, and commented out the default gateway in /etc/sysconfig/network.
# netstat -rn
Kernel IP routing table
Destination____Gateway________Genmask Flags MSS Window irtt Iface
10.172.168.0___0.0.0.0_________255.255.254.0___U 0 0 0 eth1
132.185.176.0__0.0.0.0_________255.255.252.0___U 0 0 0 eth0
127.0.0.0______0.0.0.0_________255.0.0.0_______U 0 0 0 lo
0.0.0.0________10.172.168.254___0.0.0.0________UG 0 0 0 eth1
0.0.0.0________132.185.179.249__0.0.0.0________UG 0 0 0 eth0
0.0.0.0________10.172.168.254___0.0.0.0________UG 0 0 0 eth1
0.0.0.0________132.185.179.249__0.0.0.0________UG 0 0 0 eth0
This allows me to ping IPs on the 10.172.xxx.xxx network, includign those that can only be reached through the gateway 10.172.168.254. However, despite being able to ping the gateway 132.185.179.249 I cannot ping anything through it.
Does anyone know what is going on? This is very confusing and any help would be greatly appreciated!
Many thanks,
Chris
|