LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-25-2008, 03:52 AM   #1
someguyonacomputer
LQ Newbie
 
Registered: Apr 2008
Posts: 9

Rep: Reputation: 0
Activating Network Failed->no link present


Can not get network to obtain an ip address through DHCP.

When i try activating my network card I get the error message determining ip information for eth0... failed; no link present. Check cable.

I have searched this error message in Google but i could not find anything that would help me.

Has anyone come across this before?

I am really new to Linux and i am sure its a silly mistake i have made.

Any help would be much appreciated.
 
Old 04-25-2008, 04:00 AM   #2
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,591

Rep: Reputation: 79
Did you check the cable? Is it the right cable (crossed? straight?)
Is there a dhcp server running on the other end?
If you are 100% sure the cable works, try on the command line 'dhclient eth0' and post the output.
 
Old 04-25-2008, 04:21 AM   #3
someguyonacomputer
LQ Newbie
 
Registered: Apr 2008
Posts: 9

Original Poster
Rep: Reputation: 0
Forgive my ignorance I am very new to Linux (today)

By command line is that the same as the “terminal”. Because I ran dhclient eth0 and it returned nothing.

I assume the cable works fine as my windows laptop was able to obtain an IP address from the router via the same cable.
 
Old 04-25-2008, 04:53 AM   #4
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,591

Rep: Reputation: 79
Normally, dhclient will either hang a little while trying then print an error or succeed and return immediately.
You say it returned nothing... Do you mean it hanged (you couldn't type anything on the terminal)? Or did it return silently?
 
Old 04-25-2008, 04:59 AM   #5
someguyonacomputer
LQ Newbie
 
Registered: Apr 2008
Posts: 9

Original Poster
Rep: Reputation: 0
it returned immediately i could re run the dhclient eth0 command a second time
 
Old 04-25-2008, 05:01 AM   #6
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,591

Rep: Reputation: 79
Then what does 'ifconfig eth0' print?
 
Old 04-25-2008, 05:21 AM   #7
someguyonacomputer
LQ Newbie
 
Registered: Apr 2008
Posts: 9

Original Poster
Rep: Reputation: 0
eth0 Link encap:Ethernet HWaddr 00:80:C87:3E:EE
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:9 Base address:0xe000 
 
Old 04-25-2008, 06:47 AM   #8
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,591

Rep: Reputation: 79
Can you try with dhcpd please?
dhcpd eth0
 
Old 04-25-2008, 07:25 AM   #9
someguyonacomputer
LQ Newbie
 
Registered: Apr 2008
Posts: 9

Original Poster
Rep: Reputation: 0
get an error message saying command not found
 
Old 04-25-2008, 07:52 AM   #10
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,591

Rep: Reputation: 79
which distro is it?
 
Old 04-25-2008, 08:33 AM   #11
someguyonacomputer
LQ Newbie
 
Registered: Apr 2008
Posts: 9

Original Poster
Rep: Reputation: 0
this distro is Fedora 7
 
Old 04-25-2008, 08:39 AM   #12
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,591

Rep: Reputation: 79
try: yum install dhcpd
 
Old 04-26-2008, 10:06 PM   #13
someguyonacomputer
LQ Newbie
 
Registered: Apr 2008
Posts: 9

Original Poster
Rep: Reputation: 0
It seems to be looking at a web site to get the files to install. However since i can not establish a network connection i can not download the files.

Below is the output from the command you told me to run. I also tried yum install dhcp.

[root@localhost ~]# yum install dhcpd
Loading "installonlyn" plugin
Setting up Install Process
Parsing package install arguments
Could not retrieve mirrorlist http://mirrors.fedoraproject.org/mir...ra-7&arch=i386 error was
[Errno 4] IOError: <urlopen error (-3, 'Temporary failure in name resolution')>
Error: Cannot open/read repomd.xml file for repository: fedora


[root@localhost ~]# yum install dhcp
Loading "installonlyn" plugin
Setting up Install Process
Parsing package install arguments
Could not retrieve mirrorlist http://mirrors.fedoraproject.org/mir...ra-7&arch=i386 error was
[Errno 4] IOError: <urlopen error (-3, 'Temporary failure in name resolution')>
Error: Cannot open/read repomd.xml file for repository: fedora
[root@localhost ~]#
 
Old 04-27-2008, 07:02 AM   #14
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,591

Rep: Reputation: 79
Can you setup a fixed ip the time you install the dhcp client?
 
Old 04-27-2008, 10:37 AM   #15
someguyonacomputer
LQ Newbie
 
Registered: Apr 2008
Posts: 9

Original Poster
Rep: Reputation: 0
I can not set up a static IP address. It seems there maybe an underlying issue with the network card.

If i set up a static ip address the device can be activated successfully however i can not see my router.

I tried disabling the firewall but when I re open the firewall application it is enabled again.

I will look on the net on how to turn the firewall off could you provide some tips and starting points to diagnose why I can not see the router.

At the point in time I believe the IP address, gateway and subnet are correct.
 
  


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
activating Wireless link at boot onyangoliech Linux - Laptop and Netbook 2 02-04-2007 09:02 PM
Fedora Core 2 - eth0 'no link present' Coolnat2004 Linux - Networking 2 01-28-2006 04:19 AM
pilot-link dlpsh activating floppy drive codeviking Linux - Software 1 06-07-2004 07:59 AM
link not present Quixotic Linux - Networking 19 01-27-2003 04:33 PM
eth1... failed; no link present. Check Link? illegalien Linux - Networking 3 11-03-2002 10:46 PM


All times are GMT -5. The time now is 03:23 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration