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 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 >

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: 172.

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

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 wrote: > > Actually you can by adding a route via the interface > ip r a 20.20.20.0/24

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 wrote: >> >> Actually you can by ad