Networking Forums

Networking Forums > Computer Networking > Linux Networking > DHCP fails if using "enter" script

Reply
Thread Tools Display Modes

DHCP fails if using "enter" script

 
 
Tom
Guest
Posts: n/a

 
      02-12-2007, 10:22 PM

Hi all!

I'm getting a strange error with ISC dhcp client version 3
(dhclient, also version 2) on debian sarge or ubuntu 6.06. If I create
any simple script on dir /etc/dhclient3/dhclient-enter-hooks.d/, dhcp
client becomes unable to receive lease from server, with below
messages:

---------------------------
root@mobile:~# dhclient eth1
Internet Systems Consortium DHCP Client V3.0.4
Copyright 2004-2006 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/

Listening on LPF/eth1/00:83:08:02:10:7e
Sending on LPF/eth1/00:83:08:02:10:7e
Sending on Socket/fallback
receive_packet failed on eth1: Network is down
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 3
send_packet: Network is down
.....
.....
.....
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 14
send_packet: Network is down
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
---------------------------

If I create a dummy one line script as below, all works fine:
----
#!/bin/bash
----

Also, with debug script (that dhcp client installation puts on the
same dir)
works with no error.

Does anyone know what is working? Or have a pointer for the
solution?
I'll apreciate any help.

PS: yes, I tested a lot of times and ways and I'm sure the ethernet
cable
is correctly attached to the nic; the nic driver is rightly installed;
the dhcp
server is _really_ working fine; kernel has support for dhcp; etc... I
really
identified what makes he difference: there is or not a script in the
dir.

Thank you!



Tom Lobato

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to remove "Enter MS network password" window at start Vlad Windows Networking 1 07-29-2004 10:30 PM
"pon" fails and gives "ttyS overrun" in syslog Al Hayes Linux Networking 7 07-07-2004 11:22 PM
deleting "Enter Network Password" screen Jack Bonaccolta Windows Networking 0 04-07-2004 08:02 PM
dhcp-client ignores "supersede" and "prepend" options Peter Klein Linux Networking 0 01-28-2004 12:21 AM
"enter network password" dialog box Do Windows Networking 2 09-30-2003 11:40 AM



1 2 3 4 5 6 7 8 9 10 11