FedoraForum.org - Fedora Support Forums and Community
Results 1 to 6 of 6
  1. #1
    Join Date
    Jun 2010
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    dhclient cannot find interfaces

    Hello,

    I am running Fedora 13 and after my machine is booted my ethernet interface eth0 does not have an IP address. Running

    Code:
    dhclient
    at the terminal does not work, and I can see that in /var/log/messages I have the following error:

    Code:
    Sep 29 10:45:38 sichuan NET: dhclient: unhandled state: 
    Sep 29 10:45:38 sichuan dhclient[5194]: No broadcast interfaces found - exiting.
    I assume that the same command was attempted during the boot process (please correct me if I am wrong) to use DHCP to get an address for eth0, but failed for the same reason it is failing after boot when I run it manually, whatever that reason may be.

    I noted, however, that eth0 IS in broadcast mode:

    Code:
    eth0      Link encap:Ethernet  HWaddr A4:BA:DB:FA:E0:17  
              UP BROADCAST PROMISC MULTICAST  MTU:1500  Metric:1
    I also noted that running

    Code:
    dhclient eth0
    does in fact work and will run DHCP and configure eth0 with an ip address.

    It is quite mysterious to me why running 'dhclient eth0' will work, but manually running 'dhclient' does not.

    Now, you may be thinking: "Oh you can just add 'dhclient eth0' to your rc.local file". While this is true, I would much rather understand this problem and fix it at a more fundamental level than do something like that.

    Thank you in advance for your help.

    Ellitron

  2. #2
    Join Date
    Jun 2006
    Posts
    7,544
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: dhclient cannot find interfaces

    If you are using NetworkManager to manage that interface, consider disabling the network service. NetworkManager will start network when it needs it (later, after booting). That's when the IP address business happens. If you are not using NetworkManager to manage the interface, then enable the network service, disable the NetworkManager service, and preconfigure the interface in system-config-network (if not already done, probably is). Then maybe it will successfully acquire an IP address during booting.

  3. #3
    Join Date
    Jun 2010
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: dhclient cannot find interfaces

    OK so in system > administration > network, I configured eth0 to be activated when the computer starts, and now it works.

    Before doing this, I used chkconfig to see if the network service was running, and it is not running since I can see that for all runlevels it has been turned off. The curious part is that after reading the man page for chkconfig it seems that I should not see the network service in the rc[0-6].d directories, or it should be renamed, or its symbolic link pointing to some stub.... but it isn't. It's still K90network in rc[0-6].d/ and all pointing to ../init.d/network. So I sort of wonder whether or not it's actually running.

    How can I tell for sure whether or not the network service is running (or in general, any service for that matter)?

    Thanks!

  4. #4
    Join Date
    Jun 2006
    Posts
    7,544
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: dhclient cannot find interfaces

    You can try this...
    Code:
    service --status-all

  5. #5
    Join Date
    Jun 2010
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: dhclient cannot find interfaces

    Cool. grepping for 'network' doesn't return anything so I guess I can assume that the network service is not running?

  6. #6
    stevea Guest

    Re: dhclient cannot find interfaces

    Grepping where ? There is no (necessary) process that results from the network service. It just configures devices and goes on. Same w/ iptables and some others.

    No - just look at the state of the interfaces (use 'ip addr').

    Also fwiw dhclient wants an interface with an assigned IP - even if it's o0nly a generic 189.x.y.z
    Last edited by stevea; 1st October 2010 at 12:00 AM.

Similar Threads

  1. DHClient in FC8
    By lbana in forum Servers & Networking
    Replies: 0
    Last Post: 25th December 2008, 10:25 PM
  2. Cannot find dhclient.conf
    By nspmangalore in forum Servers & Networking
    Replies: 3
    Last Post: 19th September 2008, 03:33 PM
  3. can not find network interfaces
    By Niche in forum Using Fedora
    Replies: 2
    Last Post: 31st October 2007, 05:45 AM
  4. dhclient/DNS
    By timomai in forum Servers & Networking
    Replies: 2
    Last Post: 2nd April 2007, 03:35 PM
  5. About dhclient
    By satimis in forum Using Fedora
    Replies: 0
    Last Post: 8th February 2006, 03:54 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •