Re: help with route on centos

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



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@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@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@xxxxxxxxxx
> http://lists.centos.org/mailman/listinfo/centos

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux