LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   networking - can't ping outside the local network (https://www.linuxquestions.org/questions/linux-networking-3/networking-cant-ping-outside-the-local-network-167368/)

w0lf42 04-07-2004 01:13 PM

networking - can't ping outside the local network
 
I recently installed Slackware Linux and I am having problems getting my network settings set correctly.

I attempted to use netconfig.

I can ping other boxes on the network, but I am unable to ping sites outside of the network (e.g. google.com).

I can ping my Slackware box from other Windows boxes on the network and I can ping sites outside the network from the Windows boxes.

I have a cable modem which connects to my router which connects to my switch (which then connects to all of my boxes).

Any Suggestions?

bnice 04-07-2004 01:21 PM

1) Make sure the gateway line near the end of `/etc/rc.d/rc.inet1.conf` has the IP of your gateway(router)

2) make sure that `/etc/resolv.conf` has a nameserver entry that points to either your router or your ISP's nameserver.

sporkit 04-07-2004 05:31 PM

most likely a dns problem. try setting the primary name server to the ip of your router. i think there is a command like netconfig on redhat or something.

i had a similar problem and this fixed it.

w0lf42 04-10-2004 12:50 AM

THANKS!

I am replying from my Slackware Linux machine.

I am really new to Linux, yet very excited. I have to say that the community surrounding Linux makes me really happy and causes me much enthusiasm (sp)!

I resolved the issue by editing '/etc/resolv.conf' with pico. I added the following two lines:
Code:

nameserver 127.0.0.1
nameserver 192.168.0.1

Thanks Again.


All times are GMT -5. The time now is 11:18 AM.