Operating System - Linux
1829606 Members
1274 Online
109992 Solutions
New Discussion

Re: linux server connectivity

 
shashang
Occasional Advisor

linux server connectivity

linux server ip is 200.1.1.26/24 is accessible in 200.1.1.x network (LAN).
it is not accessible to 200.1.117.x (wan) network which is connected to 200.1.1.x network through a router whose ip is 200.1.1.250.
Can someone help. The linux version is 7.2.
how do i find out the rip version on this linux.
5 REPLIES 5
Mark Grant
Honored Contributor

Re: linux server connectivity

Make sure there is a route to the 100.1.117.x network using 100.1.1.250 as the gateway usning the "route" command. If not, make sure you can ping 200.1.1.250 and then add the route with "route add default gw 200.1.1.250 eth0" assuming it's the first ethernet card.

In order to make this permanent, personally, I'd put it in an rc script but I imagine that this is probably a Red Hat linux and there will be some other funky place to put it.
Never preceed any demonstration with anything more predictive than "watch this"
Steven E. Protter
Exalted Contributor

Re: linux server connectivity

Its possible that these two machines are not accessible because the netmask is wrong. Check the configuration files in /etc/sysconfig/network-script.

A comparision of ifconfig eth0 output should allow you to eliminate the possibility.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
akshay_2
New Member

Re: linux server connectivity

ping to 200.1.1.250 is through as it is in the same lan. Tried adding default gw as 200.1.1.250 but still when a ping to dest.200.1.117.1 is tried it first goes to 200.1.1.26 ie eth0 of the linux server.

Also tried route add -net 200.1.117.0 netmask 255.255.255.0 eth0 but still its not through.
the ifconfig file shows 200.1.1.26 as gateway. Tried changing the same to 200.1.1.250 still no success.
Roberto Polli
Trusted Contributor

Re: linux server connectivity

akshay=shesheng is correct?

let:
server26 ->200.1.1.26/24
server117->200.1.117.x/24
router ->200.1.1.250

1) which is the 2nd IP of the router?
2) does it work with other machines?
3) did you try to clear the routing table of the server26 using
route del
then adding the new routing table?
4) if the router won't work try to enable the ip forwarding using
echo 1 > /proc/sys/net/ipv4/ip_forward

Peace, R.


akshay_2
New Member

Re: linux server connectivity

yes we (shashang and akshay) work are at same customer site ...

the ip of second router is 200.1.117.60.

yes it is accessible through all servers of network 200.1.1.x except this linux server 200.1.1.26
we also tried giving route del but could not help. can anyone suggest how do i find out the rip version that this linux machine supports ?