LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices



Reply
 
Search this Thread
Old 08-11-2007, 06:00 PM   #1
lucknowm62
LQ Newbie
 
Registered: Aug 2007
Posts: 4

Rep: Reputation: 0
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.
 
Old 08-11-2007, 08:02 PM   #2
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 56
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
 
Old 08-19-2007, 05:40 PM   #3
lucknowm62
LQ Newbie
 
Registered: Aug 2007
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Lenard View Post
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
 
Old 08-21-2007, 12:24 AM   #4
jdavis2
Member
 
Registered: Feb 2007
Distribution: Fedora, Mandrake, Knoppix, Windows XP
Posts: 37

Rep: Reputation: 15
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.
 
Old 08-21-2007, 01:45 AM   #5
tajamari
Member
 
Registered: Jul 2007
Distribution: Red Hat CentOS Ubuntu FreeBSD OpenSuSe
Posts: 252

Rep: Reputation: 30
Quote:
Originally Posted by lucknowm62 View Post
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?
 
Old 08-22-2007, 06:31 PM   #6
lucknowm62
LQ Newbie
 
Registered: Aug 2007
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by tajamari View Post
whats the result whn you issue "mii-tool" command?
eth0: no link
eth1: no link
 
Old 08-22-2007, 06:32 PM   #7
lucknowm62
LQ Newbie
 
Registered: Aug 2007
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by jdavis2 View Post
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
 
Old 08-23-2007, 01:25 AM   #8
tajamari
Member
 
Registered: Jul 2007
Distribution: Red Hat CentOS Ubuntu FreeBSD OpenSuSe
Posts: 252

Rep: Reputation: 30
Quote:
Originally Posted by lucknowm62 View Post
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
 
Old 08-26-2007, 02:27 PM   #9
soroccoheaven
Member
 
Registered: Jul 2007
Distribution: mandrake Mandriva Redhat CentOS Slackware
Posts: 221

Rep: Reputation: 30
Quote:
Originally Posted by lucknowm62 View Post
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Centos Failover Internet kool_kid Linux - Networking 0 08-08-2007 09:48 AM
how to connect to a network printer from centos? romeo_tango Linux - Desktop 5 05-10-2007 11:40 PM
Centos 4.4 - Webmin: cannot connect (even with firewall exception) gandalfrat Linux - Newbie 5 04-02-2007 05:27 PM
VNC on :0 Hangs Centos on connect mr_r Linux - Software 0 06-19-2006 08:15 AM
how to configure CentOS as internet server? czarjohnph Linux - Networking 2 01-16-2006 01:29 AM


All times are GMT -5. The time now is 10:28 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration