Click to See Complete Forum and Search --> : linux box cant ping router


johnharry
02-17-2003, 10:29 AM
Dear All,

I am setting up my internal LAN at home and have one W2K box, one Linux Mandrake 8.1 box and one etec 4 port ADSL router. The W2K box has statis IP address 10.10.10.1 and the linux box has a static address od 10.10.10.2. Both the W2K box and the linux box have a netmask of 255.255.0.0


The router has an IP address of 10.0.0.2. The netmask for the router is 255.0.0.0.

The W2K and Linux box both have the default gateway set to 10.0.0.2 and I have networked them both.

From the W2K box I can ping the router and ping the linux box and can get on to the internet.

However from the Linux box I can ping the W2K box but not the router and can't get on to the internet from it.

Has anybody got any idea whats going on?

thanks for reading,

John

threadhead
02-17-2003, 12:23 PM
there could be a firewall running on your linux box.

well atleast one possibilty. ;)

*bump*

SnarfBlatt
02-17-2003, 12:27 PM
Check your routing table

threadhead
02-17-2003, 12:34 PM
Originally posted by SnarfBlatt
Check your routing table

you have to add a default route to your gateway.

i guess thats done like that:

route add default <ip>


but i am not really sure

ps: if that doesnt work, try to swap the arguments of my code

techwise
02-18-2003, 09:30 PM
John

Why are the two pc's on a different network than the router?

Unless you have some unique reason then you would have much less complication by having the LAN side of the router all on the same network. Otherwise, you create a need to bridge from one network to the other.

Here is what my lan looks like and I have Win and Linux machines all working fine.

Router WAN = "assigned by isp"
Router LAN = 192.168.0.1 (the default gateway for all devices that wish to route to the internet)

Mandrake box 1 = 192.168.0.2 with a gateway of the router LAN 192.168.0.1 and the isp's DNS servers manually entered in.

Windows Box 1= 192.168.0.16 and otherwise same as above.

All on subnet mask of 255.255.255.0

If you are using the router as a DHCP server for your LAN, I advise against it. In my experience that feature of the ususal home broadband routers is often buggy

MIke

karthik
02-19-2003, 06:15 PM
I have a similar problem. In my case the problem is that I can't ping anything from my linux box.

I can ping localhost and the card itself but i can't ping the router's internal interface or the Win2K box. I have checked the routing table and all the stuff. Everything looks fine.

The error message that i get is :

[the router's internal ip == 192.168.254.1]
# ping 192.168.254.1
PING 192.168.254.1 (192.168.254.1) from 192.168.254.30 : 56(84) bytes of data.

192.168.254.1: Destination Host Unreachable ..

the error message was somethig like that.

Please help me thru with this. :confused: