Re: [CentOS] Static routing on CentOS

2014-02-26 Thread Ljubomir Ljubojevic
On 02/26/2014 07:28 AM, Jatin Davey wrote: Hi All I have two hosts. Host A and Host B Host A routing table [root@localhost ~]# route -n Kernel IP routing table Destination Gateway Genmask Flags Metric RefUse Iface 172.29.110.0

Re: [CentOS] Static routing on CentOS

2014-02-26 Thread sjt5atra
On Feb 26, 2014, at 1:28 AM, Jatin Davey jasho...@cisco.com wrote: Hi All I have two hosts. Host A and Host B Host A routing table [root@localhost ~]# route -n Kernel IP routing table Destination Gateway Genmask Flags Metric RefUse

Re: [CentOS] Static routing on CentOS

2014-02-26 Thread Cretu Adrian
Hi, You can not have a gateway that is on another ip subnet than your physical interfaces from that server, so a route should have a gateway that is on the same ip subnet as your interfaces. In your case you should add another subnet on both servers something like: HOST A: 172.29.120.2 HOST B:

Re: [CentOS] Static routing on CentOS

2014-02-26 Thread Steve Clark
Actually you can by adding a route via the interface ip r a 20.20.20.0/24 dev eth0 On 02/26/2014 09:09 AM, Cretu Adrian wrote: Hi, You can not have a gateway that is on another ip subnet than your physical interfaces from that server, so a route should have a gateway that is on the same ip

Re: [CentOS] Static routing on CentOS

2014-02-26 Thread Steven Tardy
Something on that subnet will need to know how to accept and forward the packet to the correct destination: the router/gw will still have to have a route added. On Feb 26, 2014, at 9:24 AM, Steve Clark scl...@netwolves.com wrote: Actually you can by adding a route via the interface ip r a

Re: [CentOS] Static routing on CentOS

2014-02-26 Thread Steve Clark
On 02/26/2014 09:28 AM, Steven Tardy wrote: Something on that subnet will need to know how to accept and forward the packet to the correct destination: the router/gw will still have to have a route added. On Feb 26, 2014, at 9:24 AM, Steve Clark scl...@netwolves.com wrote: Actually you

[CentOS] Static routing on CentOS

2014-02-25 Thread Jatin Davey
Hi All I have two hosts. Host A and Host B Host A routing table [root@localhost ~]# route -n Kernel IP routing table Destination Gateway Genmask Flags Metric RefUse Iface 172.29.110.0172.29.109.1255.255.255.0 UG0 00 eth0