Click to See Complete Forum and Search --> : Can't get to the Internet.


gibberish3ll3
07-25-2002, 02:47 PM
Hi,

I'm having a network problem with my Debian Linux box. I have 2 other Unix (RH Linux and FreeBSD) boxes in my local network. I can ping each other among the three. But when I try to browse the internet from Debian, I get "hostname not found" error and I can't ping yahoo.com with DNS name or ip address (I have no problems doing this with RedHat Linux and FreeBSD). Wierd thing (to me) is that right after rebooting Debian, I can connect to the Internet but the connection dies at some point and I can't get to the Internet anymore. They are using cable connection with DHCP. There may be some configuration files that I need to modify but I don't know which at this point. I'm hoping that some one points me to those files or gives me some ideas what's going on with this Debian box.

Thanks in advance,
gibberish3ll3

Hayl
07-25-2002, 03:13 PM
Have you checked you DNS settings for the box that can't get to the net yet?

Radar
07-25-2002, 03:20 PM
Make sure the correct dns servers are in /etc/resolv.conf

jumpedintothefire
07-25-2002, 10:16 PM
>>>I can't ping yahoo.com with DNS name or ip address

Sounds like the gateway is not set.....
What is the output of route -n ?

gibberish3ll3
07-26-2002, 12:26 AM
hi all,

yes, it was a gateway problem. What happened was that every time I rebooted Debian for whatever the reasons, it assigned a random ip address (I know it's because of DHCP). I'm running a web server on this box and set ip forwarding to this box. So every time the router assinged a random ip address, I was assigning a specific ip address by doing;

# ifconfig eth0 inet 192.168.1.102

this caused to drop my gateway information from

Destination Gateway GenMask ...
192.168.1.0 0.0.0.0 255.255.255.255 ...
0.0.0.0 192.168.1.1 0.0.0.0 ...

to

Destination Gateway GenMask ...
192.168.1.0 0.0.0.0 255.255.255.255 ...

that is why I couldn't get to out of my network.

Thanks all for your inputs. Since I know what's causing the problem, I think I can figure out a way.
gibberish3ll3

RedHat123
11-07-2002, 11:22 PM
gibberish3ll3 -

Im having very similar problems.

I set my loopback address to a string other than localhost.localdomain and i lost all internet connectivity

my setup sounds exactly like yours, DHCP and webserver with IP fowarding to the linux box.

when i modified my hosts file and changed my loopback address is when i lost connectivity to the internet. I have samba set up correctly (with a firewall) and i can see my internal network just fine, but i cant see outside my workgroup to the internet.

RedHat123
11-08-2002, 12:44 AM
wel well, looks like my gateway wasnt configured. now the penguin is surfin again