Jerry Geis wrote:> 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???
>
It seems it already is when using the 192.168 addresses, so I assume you
want to route the 74.x.x.x and 24.x.x.x over this path too:
mndemo# route add -net 24.x.x.x/netmask gw 192.168.1.x dev eth0
unifiedpaging# route add -net 74.x.x.x/netmask gw 192.168.1.x dev eth0
Kind regards,
Jeroen van Meeuwen
-kanarip
> 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
>
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos