LinuxQuestions.org
Visit Jeremy's Blog.
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-20-2005, 02:55 AM   #1
djlinux
LQ Newbie
 
Registered: Jun 2005
Posts: 1

Rep: Reputation: 0
Question dhclient works only manually??


Hi,

When booting Mandriva LE 2005, dhclient is unable to get an IP address for my computer. Strangely, after the computer has finished booting, I can run manually
Code:
$sudo dhclient
and it gets an IP address without problems and within 5 seconds. What should I do to get an IP address during booting?

Relevant output is posted below. There is a wlan card at ra0 and an (unconnected) Ethernet card at eth0.

Thanks for any suggestions!
dj


Relevant output of /var/log/messages:
----------------------------------------------
ifup: Determining IP information for ra0...
dhclient: sit0: unknown hardware address type 776
dhclient: sit0: unknown hardware address type 776
dhclient: DHCPDISCOVER on ra0 to 255.255.255.255 port 67 interval 6
dhclient: DHCPDISCOVER on ra0 to 255.255.255.255 port 67 interval 5
dhclient: No DHCPOFFERS received.
ifup: failed.
network: Bringing up interface ra0: failed


Output of $sudo dhclient:
-------------------------------
sit0: unknown hardware address type 776
/sbin/dhclient-script: configuration for sit0 not found
sit0: unknown hardware address type 776
Listening on LPF/sit0/
Sending on LPF/sit0/
Listening on LPF/ra0/00:38:47:07:a0:75
Sending on LPF/ra0/00:38:47:07:a0:75
Listening on LPF/eth0/00:06:e9:37:98:58
Sending on LPF/eth0/00:06:e9:37:98:58
Listening on LPF/lo/
Sending on LPF/lo/
Sending on Socket/fallback
DHCPDISCOVER on sit0 to 255.255.255.255 port 67 interval 4
DHCPDISCOVER on lo to 255.255.255.255 port 67 interval 7
DHCPREQUEST on ra0 to 255.255.255.255 port 67
DHCPACK from 10.0.0.138
bound to 10.0.0.166 -- renewal in 2911 seconds.


Contents of /etc/sysconfig/network-scripts/ifcfg-ra0:
--------------------------------------------------------------
DEVICE=ra0
BOOTPROTO=dhcp
ONBOOT=yes
METRIC=10
MII_NOT_SUPPORTED=no
USERCTL=yes
WIRELESS_MODE=Managed
WIRELESS_ESSID=Mywlan
WIRELESS_ENC_KEY=XXXXXXXXXXXXXXXXXXXXXXXXXX
DHCP_CLIENT=dhclient
NEEDHOSTNAME=no
PEERDNS=no
PEERYP=no
PEERNTPD=no
DHCP_TIMEOUT=20
 
Old 06-20-2005, 05:09 AM   #2
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
Where are you putting your call to dhclient?
You could try calling it from the file /etc/rc.d/rc.local, this works for me. No need for the sudo business, just put the command dhclient eth0 at the end of the file
 
  


Reply



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
My sound module (snd-mia) works, but without manually restarting the initscript... jacksonscottsly Linux - Hardware 0 07-31-2005 08:19 AM
dhclient laurentwahl Linux - Wireless Networking 6 05-30-2005 12:35 AM
I need dhclient but there is no one g-string 3 Linux - Networking 2 05-19-2005 03:42 PM
Samba- works if you manually enter ip Frank_Drebin Linux - Networking 11 04-26-2004 03:02 PM
dhclient and 2.4.23 townfool Linux - Networking 1 12-16-2003 04:40 PM

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

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