LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (http://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Cannot Connect to Internet; CentOS (http://www.linuxquestions.org/questions/linux-networking-3/cannot-connect-to-internet%3B-centos-576408/)

lucknowm62 08-11-2007 05:00 PM

Cannot Connect to Internet; CentOS
 
Recently installed CentOS. Cannot connect to Internet.

Cannot even ping 192.168.1.1, which is IP address of the Router.

( I have another Windows machine connected to the same router, and can ping 192.168.1.1 )


Other Relevant Information
==========================

$ cat /etc/resolv.conf
nameserver 167.206.245.12
nameserver 167.206.245.11
nameserver 167.206.245.76

$ cat /etc/hostname
linux1.home.com

$ cat /etc/hosts
127.0.0.1 linux1 localhost.localdomain localhost
192.168.1.100 linux1

Pls. help.

Lenard 08-11-2007 07:02 PM

Do you have your network interface configured?? Which network interface(s) do you have?? use the output from the typed commands to find out;

/sbin/lspci -v
/sbin/ifconfig

echo '16i[q]sa[ln0=aln100%Pln100/snlbx]sbA0D4D465452snlbxq' | dc
This will help you for 99.9% of your problems ...

http://wiki.centos.org/Manuals

lucknowm62 08-19-2007 04:40 PM

Quote:

Originally Posted by Lenard (Post 2855857)
Do you have your network interface configured?? Which network interface(s) do you have?? use the output from the typed commands to find out;

/sbin/lspci -v
/sbin/ifconfig

echo '16i[q]sa[ln0=aln100%Pln100/snlbx]sbA0D4D465452snlbxq' | dc
This will help you for 99.9% of your problems ...

http://wiki.centos.org/Manuals

Here is my

$ /sbin/lspci -v

02:0b.0 Ethernet controller: Linksys NC100 Nework .......
Subsystem: Linksys: Unknown device 0574
Flags ....
I/O..
Memory....

$ /sbin/ifconfig

eth0: Link encap:
inet addr: 192.168.1.00 Bcase: 192.168.1.255


# echo '16i****' | DC
dc: stack register 'B' (0102) is empty
dc: stack empty
dc: stack empty

jdavis2 08-20-2007 11:24 PM

I was looking at your the information in your hosts file. It says that your IP address is 192.168.1.100. However, where you ran the ifconfig command it says that it is 192.168.1.00 .

If the latter is true you will never connect.

tajamari 08-21-2007 12:45 AM

Quote:

Originally Posted by lucknowm62 (Post 2855783)
Recently installed CentOS. Cannot connect to Internet.

Cannot even ping 192.168.1.1, which is IP address of the Router.

( I have another Windows machine connected to the same router, and can ping 192.168.1.1 )


Other Relevant Information
==========================

$ cat /etc/resolv.conf
nameserver 167.206.245.12
nameserver 167.206.245.11
nameserver 167.206.245.76

$ cat /etc/hostname
linux1.home.com

$ cat /etc/hosts
127.0.0.1 linux1 localhost.localdomain localhost
192.168.1.100 linux1

Pls. help.

whats the result whn you issue "mii-tool" command?

lucknowm62 08-22-2007 05:31 PM

Quote:

Originally Posted by tajamari (Post 2865422)
whats the result whn you issue "mii-tool" command?

eth0: no link
eth1: no link

lucknowm62 08-22-2007 05:32 PM

Quote:

Originally Posted by jdavis2 (Post 2865359)
I was looking at your the information in your hosts file. It says that your IP address is 192.168.1.100. However, where you ran the ifconfig command it says that it is 192.168.1.00 .

If the latter is true you will never connect.

Sorry - the output of /sbin/ifconfig is 192.168.1.100

tajamari 08-23-2007 12:25 AM

Quote:

Originally Posted by lucknowm62 (Post 2867358)
eth0: no link
eth1: no link

Definitely you could not connect, check your physical cables :). It would look like this if you have a link.

eth0: negotiated 100baseTx-FD, link ok

soroccoheaven 08-26-2007 01:27 PM

Quote:

Originally Posted by lucknowm62 (Post 2855783)
Recently installed CentOS. Cannot connect to Internet.

Cannot even ping 192.168.1.1, which is IP address of the Router.

( I have another Windows machine connected to the same router, and can ping 192.168.1.1 )


Other Relevant Information
==========================

$ cat /etc/resolv.conf
nameserver 167.206.245.12
nameserver 167.206.245.11
nameserver 167.206.245.76

$ cat /etc/hostname
linux1.home.com

$ cat /etc/hosts
127.0.0.1 linux1 localhost.localdomain localhost
192.168.1.100 linux1

Pls. help.

pls post your,
ifconfig -a & /etc/resolve.conf


All times are GMT -5. The time now is 04:27 AM.