Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

192.168.0.x is reachable, 192.168.1.x is not 1

Status
Not open for further replies.

dalchri

Programmer
Apr 19, 2002
608
US
I've got two LANS connected via VPN over two netopia routers. The IP addresses on our home company are 192.168.0.x. The IP addresses on the remote location are 192.168.1.x.

The linux server has IP 192.168.0.25. It can ping 192.168.0.x fine. My windows box, 192.168.0.125, can ping 192.168.1.x fine. The linux box says that 192.168.1.x is unreachable.

What did I setup wrong on the linux box? Is this something to do with the IPtables or such?

Thanks for suggestions!
 
What is the default gateway on the linux box?
 
Default gateway is 192.168.0.254, that is the netopia router on the linux server's LAN. The IP address of the netopia router on the remote LAN is 192.168.1.1.
 
check "route -n"
if you don't see a network route to reach 192.168.1.x on your linux box then you need to add it.

example to add:
route add -net 192.168.1.0 netmask 255.255.255.0 dev eth0

Otherwise, your traffic to the "other network(s)" has no route to leave your linux box. By default, most linux only create the routing necessary to reach the hosts in the same network. Thus, your box is probably only showing a route to 192.168.0.0/24

"Surfinbox Shares" - A fundraising program that builds revenue from dialup Internet users.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top