LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   local network okay - no internet (https://www.linuxquestions.org/questions/linux-networking-3/local-network-okay-no-internet-51719/)

Who 03-25-2003 04:18 PM

local network okay - no internet
 
New to linux ... :Pengy:

I recently installed Slackware 8.1 dual boot with Win98. My local network connection seems to be working fine, but I can't get out past my router to the internet.

I can see my NIC initializing fine in the boot sequence, and I can reach other machines on the local network using ping, and http, and ftp. I can also see the gateway, ping it, use http to get to the admin interface. But when I try to reach any outside host with ping or http, I get an "unkown host" message, and that's it.

I thought I configured everything right... Is this something I'm missing about the router, firewall, or something? The router is Linksys BEFSRU31 on a Win2k server. The NIC is Netgear FA510 (PCMCIA) on eth0. I set my IP and subnet mask manually, and set the gateway to match the router (192.168.1.1) in netconfig.

Does anybody have an idea what I'm doing wrong?

david_ross 03-25-2003 04:34 PM

Sounds like you don't have DNS. The LQ ip is 64.179.4.146

Try:
http://64.179.4.146/

if it fails - can you ping?

Who 03-25-2003 04:56 PM

Negative. Browser says "could not connect to host," and ping says "Network is unreachable."

I hate being a dufus when people try to answer my questions, but when "Sounds like you don't have DNS," you mean I would need the Win2k server to be using DNS? Derrrr.... help?

david_ross 03-25-2003 05:23 PM

No - I just meant that the linux box sounded like it couldn't translate the names into their valid IP addresses. I hadn't seen anything that said you had set up DNS on the linux box (you might not need to if you are using DHCP).

What output does "route -n" give?
There should be a default entry "0.0.0.0" with a valid gateway for your network.

What fo you mean by a router on a win2k server? That only your win2k server is conencted to the router and that all other machines connect through the server?

D3adly 03-25-2003 09:56 PM

check "ifconfig"
1st your ip
2nd Bcast
3rd Mask

Because if you wount have right mask U willn't have outside net conection behaind router !

The same you can check "/etc/rc.d/rc.inet1" config

Who 03-26-2003 09:17 AM

Dave_ross:
Quote:

What output does "route -n" give?
There should be a default entry "0.0.0.0" with a valid gateway for your network.
Dave,
This is the output.

Code:

Destination  Gateway      Genmask      Flags Metric Ref Use Iface
192.168.1.0  0.0.0.0      255.255.255.0 U    0      0  0  eth0
127.0.0.0    0.0.0.0      255.0.0.0    U    0      0  0  lo
0.0.0.0      192.168.1.1  0.0.0.0      UG    1      0  0  eth0

Based on what you say, it looks good.

Quote:

What fo you mean by a router on a win2k server? That only your win2k server is conencted to the router and that all other machines connect through the server?
Yes, exactly, which means that Linux has to go through the windows network and server to get to the web. This matters somehow, doesn't it... :rolleyes:

Who 03-26-2003 09:28 AM

Success!
 
I'm writing this from Linux on the Konqueror browser. It works!

Problem was solved by entering the server IP address as the name server in netconfig. Not knowing the real meaning of this entry, I had just left it blank.

Thanks to Dave Ross for asking the right questions.:D

david_ross 03-26-2003 01:06 PM

Glad to hear it is working OK.

That is what I meant by DNS (Domain "Name Server"). Still not sure why the IP address didn't work though.

Never mind - If it ain't broke, don't fix it!


All times are GMT -5. The time now is 12:13 PM.