LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   can ping internal but cant connect to the net (https://www.linuxquestions.org/questions/linux-newbie-8/can-ping-internal-but-cant-connect-to-the-net-204575/)

marty2004 07-13-2004 12:58 PM

can ping internal but cant connect to the net
 
Hello,

I have connected my NIC card (3com 3c509) to my cable modem (webstar 100) and I can ping to my computer but cant ping to websites, all i get are bad pings and i cant use the internet. I have used this setup on the same conputer with windows 98 and it worked fine so i know it works. I'm using Debian 3.0. The linux man pages haven't helped me much, neither have the debian ones...i've tried to google it out for a few hours without much luck.

So can anyone please help me. I'm a newbie....I apologise if this is painfully annoying.

darkRoom 07-13-2004 04:44 PM

Are you using DHCP or a static IP address ?

marty2004 07-13-2004 04:52 PM

Hello,

I'm not sure what i'm doing right now, i just got debian and installed it a few hours ago...first attempt at linux. I asume DHCP...What i'm going to do now is mess about with route.conf, resolv.conf, change the irq settings of the card and see about the Bios legacy support. It's probably my configuration which is wrong. I'll try and dump ifconfig here for people to see too. I'm going offline to mess about with it.

Thanks for replying.
speak soon.

marty2004 07-14-2004 10:16 AM

/etc/network/interfaces says......

iface eth0 inet static
address 192.168.10.50
netmask 255.255.255.0
network 192.168.10.0
broadcast 192.168.10.255


so it looks like i'm using static not DHCP ...right?

I also added the nameservers to the /etc/resolv.conf....I got them from Windows (the DNS servers under ipconfig /all)

Still not working :(

netmask 07-14-2004 10:36 AM

Erm.. let me get this..


You connected your NIC directly into your cable modem but you have a private ip address (192.168.x.x) ?


If you ARE connected directly to your cablemodem, then it's normal you can't access outside networks.

Try getting a valid address with a dhcp client. (The one I use is "dhclient")

marty2004 07-14-2004 11:55 AM

Thanks for your help.

I just realised that after doing more research on DHCP. I will try what you said. i hope dhcp-client is on the cd...else more hassle. Anyway i'll try it later tonight.

Do i get rid off all that stuff in the /etc/network/interfaces and /etc/resolv.conf ???

Thanks.

netmask 07-14-2004 11:58 AM

I've never used Debian, but I assume /etc/network/interfaces is a generated file and not really a configuration file.

As for /etc/resolv.conf , your DHCP server will most of the time assign you nameservers hence updating /etc/resolv.conf with the correct information.

marty2004 07-17-2004 01:07 PM

Its all running good now,

thanks to all that helped, turned out to be a hardware problem....(changed the irq and io setting and had to do a cold boot with the manufacturers software) <--- thats what i did in case anyone has the same problem.

Thanks again.


All times are GMT -5. The time now is 07:49 PM.