Click to See Complete Forum and Search --> : Network Probs with Slackware 8


imhotepmp
09-06-2001, 07:35 AM
Im having problems connecting to the internet.
Brief description of my setup:
I have a router conn to a WAN connection with all other comps conn to router
I setup the linux box with the ip addy 192.168.0.100 and added a default route to the address of the router(192.168.0.1) with a netmask of 255.255.255.255
route add -net 192.168.0.1 gw 192.168.0.1 netmask 255.255.255.255

I can ping all comps on the lan, however i can not access anything outside of lan?

Ive had this problem before, however after adding the route as above, it was solved.

Can anyone help me here?

thx
Imhotep MP

element-x
09-06-2001, 07:53 AM
Are you able ping ip's of yahoo.com and such? but not able to ping them by name?
(if so add the appropriate nameservers to /etc/resolv.conf)

I hope this helps yah out a bit.

imhotepmp
09-06-2001, 05:19 PM
Originally posted by JAdrock:
<STRONG>Are you able ping ip's of yahoo.com and such? but not able to ping them by name?
(if so add the appropriate nameservers to /etc/resolv.conf)

I hope this helps yah out a bit.</STRONG>

I cant ping anything outside of my lan?

Anyone got any suggestions?

Imhotep MP

bdg1983
09-06-2001, 07:33 PM
That should be a netmask of 255.255.255.0 and not 255.255.255.255.

As already suggested by JAdrock, do you have the dns servers in /etc/resolv.conf?

bdl
09-06-2001, 07:51 PM
The problem I see is in your 'route' command. You're actually adding the default route of '192.168.0.1', which will only allow you to access that single machine. If you want to be able to see outside the LAN, that has to be '0.0.0.0' or 'default' (same thing), which basically means every address possible. The command would more appropriately be:

route add default gw 192.168.0.1

-or-

route add 0.0.0.0 gw 192.168.0.1


Of course this also assumes your resolv.conf has at least one nameserver, and that the 192.168.0.1 box is actually setup to route packets to and from the 'net. Luck!

[ 06 September 2001: Message edited by: bdl ]

imhotepmp
09-06-2001, 09:16 PM
Originally posted by mdwatts the 3rd:
<STRONG>That should be a netmask of 255.255.255.0 and not 255.255.255.255.

As already suggested by JAdrock, do you have the dns servers in /etc/resolv.conf?</STRONG>

I htought the same thing, but when I did it says that the netmask doesnt match route address

Heres my route table

ernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default 192.168.0.1 255.255.255.0 UG 0 0 0 eth0
localnet * 255.255.255.0 U 0 0 0 eth0
loopback * 255.0.0.0 U 0 0 0 lo
default 192.168.0.1 0.0.0.0 UG 0 0 0 eth0
default 192.168.0.1 0.0.0.0 UG 1 0 0 eth0


if i dont have any nameservers on my network why do i need some in the resolv.conf?

I say this because Ive install other distros and doing what i said above always worked. Anything particularly different about slak as compared to RH ro LM?

thx

Imhotep mP