[CentOS] help with route on centos

Jerry Geis geisj at pagestation.com
Fri Jul 6 16:02:09 UTC 2007


I have 2 machines running centos. each machine has 2 network cards.
Box 1:
eth1: T1 connection 74.X.X.X
eth0: office connection 192.X.X.X

Box 2:
eth1: Cable modem 24.X.X.X
eth0: office connection 192.X.X.X

How do I issue a route command on each box so it will use
eth0 as the shortest route between the two boxes???

Thanks,

Jerry


--------------------
On Box1 the route is:
[root at mndemo ~]# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use 
Iface
74.X.X.X    0.0.0.0         255.255.255.240 U     0      0        0 eth1
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0
169.254.0.0     0.0.0.0         255.255.0.0     U     0      0        0 eth1
0.0.0.0         74.X.X.X     0.0.0.0         UG    0      0        0 eth1



One Box 2 the route is:
[root at unifiedpaging ~]# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use 
Iface
24.X.X.X   0.0.0.0         255.255.255.248 U     0      0        0 eth1
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0
169.254.0.0     0.0.0.0         255.255.0.0     U     0      0        0 eth1
0.0.0.0         24.X.X.X   0.0.0.0         UG    0      0        0 eth1




More information about the CentOS mailing list