LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 06-30-2006, 06:51 AM   #1
gtjr92
Member
 
Registered: Apr 2006
Posts: 40

Rep: Reputation: 15
Network Card Not getting IP (newbie)


I set up DSL linux on an OLD laptop. Upon Boot my Network Card is recognized as Eth0 (something like that) it says it is getting DHCP. Once i get to the GUI my card has no IP address. I tried assigning a static IP via net card config, i was able to do that, except i get no connectivity. I tried to ping 127.0.0.1 to see if maybe this was a hardware issue, but i get the error stating i can't ping unless i am root.
I didn't login so i thought maybe i was already in as root evidently not.
Also When I plug my lan line in to the Card then I check my switch theat the line is plugged into I do not get a link light. I am pretty sure that even if my NIC card configuration is wrong I should still be able to at least get the Link lights to light up. I tried plugging the cable to another pc and the link light was fine on my switch.
Being a novice with Linux I am unsure what to try next.
Thanks

Last edited by gtjr92; 06-30-2006 at 06:53 AM.
 
Old 06-30-2006, 09:14 AM   #2
cdhgee
Member
 
Registered: Oct 2003
Location: St Paul, MN
Distribution: Fedora 8, Fedora 9
Posts: 513

Rep: Reputation: 30
The first thing to solve is why you aren't getting the link light on the NIC - this is independent of the OS and if it isn't lighting up, then there are a few options:
  • faulty cable
  • faulty NIC
  • router not turned on
  • crossover cable instead of standard cable or vice-versa

When you've identified the problem and got a link light, then we can look at the other problems you mentioned but there's no point trying to fix any of the other problems until you've got working hardware.
 
Old 06-30-2006, 09:23 AM   #3
gtjr92
Member
 
Registered: Apr 2006
Posts: 40

Original Poster
Rep: Reputation: 15
Re

It's not "faulty cable,router not turned, or crossover cable instead of standard cable or vice-versa"
As i stated in my post i tried plugging the cable to another pc and it is fine.
I am thinking it's faulty nic, but I am not sure the best way to go about diagnosing this.
Like i said i tried to ping 127.0.0.1 but got the acess denied problem.
Any ideas how to diagnose the nic?
Thanks
 
Old 06-30-2006, 09:24 AM   #4
cdhgee
Member
 
Registered: Oct 2003
Location: St Paul, MN
Distribution: Fedora 8, Fedora 9
Posts: 513

Rep: Reputation: 30
Has the NIC ever worked?

Can you try the NIC in another machine?

Do you have another NIC you can try in this machine?

Oh and you'll need root access at some point, so you might as well fix that now too.

Try

Code:
su
which should prompt you for the root password. You are now root, so try pinging again.
 
Old 06-30-2006, 09:29 AM   #5
gtjr92
Member
 
Registered: Apr 2006
Posts: 40

Original Poster
Rep: Reputation: 15
yes the nic has worked but it has been a LONG time since i have used this pc. I can't try the nic in another pc or try another nic because this is an OLD laptop. I'll have to try to login as root when i get home.
 
Old 06-30-2006, 01:27 PM   #6
Marc
LQ Newbie
 
Registered: Dec 2001
Distribution: SuSE 10.1
Posts: 19

Rep: Reputation: 0
Using a PCMCIA NIC on the old laptop might not be a bad idea. It does sound like a NIC hardware failure.
 
Old 07-01-2006, 12:29 PM   #7
hard_wired_00
LQ Newbie
 
Registered: Jun 2006
Posts: 7

Rep: Reputation: 0
hmm.. might be a NIC problem of course, the connector contacts might be dirty or oxidated, so it might be minor hardware fault..(hopefully). if it worked before then it might not fail completely so might be a minor thing, check for connection contacts(both LAN and PCMCIA).
Also, you should try to connect that machine & NIC to another network. It might be a cable problem (crossover instead of straight tru) even if it works on another computer... the other computer might have a newer NIC and new generation NICs have the ability to detect and negotiate the medium, so regardless of cable type the new card still works.. but the old laptop nic doesn't know about that. Also, try to connect the laptop in a P2P net with another computer and see if u get a link... if none of them works (and one more thing that cames into my mind, u said it is a PCMCIA card, is it turned on? is pcmcia working proberly? if it is and the system recognizez the card correctly...) then it might be a hardware failure..
 
Old 07-01-2006, 01:32 PM   #8
Ian_Hawdon
Member
 
Registered: Feb 2003
Location: Newcastle Upon Tyne
Distribution: Arch
Posts: 326

Rep: Reputation: 34
to get root access go to shell and type

Code:
# sudo su
sudo has been set up to not ask for a password for commands
 
  


Reply

Tags
dhcp, ip, link, network



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
newbie, can only detect 1 network card at the time sirpelidor Linux - Networking 2 06-01-2005 12:04 PM
help!! newbie can't get network card to work loof Slackware 10 03-24-2005 07:56 AM
Newbie - Installing Network Card, Debian eliteskills Linux - Hardware 3 07-29-2004 03:14 AM
newbie help with dc rom and network card novusprime Linux - Hardware 2 03-04-2004 01:48 PM
Newbie needs help with network card setup Manny88 Linux - Hardware 1 09-18-2003 09:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:15 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
Open Source Consulting | Domain Registration