LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Network Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/network-newbie-627368/)

phaedo5 03-11-2008 06:47 PM

Network Newbie
 
I'm fairly new to linux but I'm trying to get a CentOS machine running. I have it installed, but I can't connect to the internet. No network.

I have a cable modem running through a linksys router. I've tried setting the Linux box up as a DHCP client - it fails. It doesn't find anything. I've tried setting it up with a static ip like 192.168.1.101 (255.255.255.0) and then setting the gateway to the router 192.168.1.1.

I'm really lost. I don't know where to begin on how to troubleshoot this. Here is some extra info. If anyone can point me in the right direction, thank you.

ifconfig shows:
inet addr: 192.168.1.101
Bcast: 192.168.1.255

netstat -nr shows:
Destination Gateway GenMask
192.168.1.0 0.0.0.0 255.255.255.0
169.254.0.0 0.0.0.0 255.255.0.0
0.0.0.0 192.168.1.1 0.0.0.0

Ping of router returns: Destination Host Unreachable

pentode 03-11-2008 06:55 PM

This is a wired Ethernet connection between the computer and the router?? I'd go back to using DHCP client on the computer unless you need a fixed IP address.

lsmod and lspci (as root) will help you determine the NIC card being detected and the module that is being loaded.

First step is to figure out what's going on with the Ethernet NIC.

If this is a wireless connection, it's normal to have initial problems, but a wired connection generally goes pretty smoothly.

davimint 03-11-2008 07:52 PM

Is that the complete "netstat -nr" info ?
I'm still learning but I don't see entry for "lo" the loopback interface which is normally 127.0.0.1. You may check the /etc/hosts file or simply run the scrip that configures the network again. Sorry, I can't remember how that is done in CentOS.

EDIT: Sorry, read your post again.
I never seen a install setup up with
that loopback after reading your post correctly.
I would still look at /etc/hosts and make sure
that it picked up the info correctly.


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