login
Header Space

 
 

dhclient does not restart after reboot

October 25, 2006 - 10:34am
Submitted by iamatt on October 25, 2006 - 10:34am.
OpenBSD

Hello,

I have a nagging problem that has plauged my openbsd systems for YEARS.

Picture this, openbsd firewall three interfaces. xl0 is the outside interface which is connected to an business class road runner cable modem connection.

I can do dhclient xl0 at the console and grab an lease just fine from the cable modem. NOW, if I reboot the machine it will not get an lease. I have to manually do it from the console. The firewall/router machine is 3.9 at the moment but I have had this problem ever since 2.7. It isn't THAT big of a deal since the machine rarely needs rebooting but it sure can be annoying when there is a power outtage for instance.

# more /etc/hostname.xl0 <---outside interface connected to cable modem
dhcp

# more /etc/hostname.xl1
inet 192.168.1.1 255.255.255.0 192.168.1.255 description "Inside Interface"

# more /etc/hostname.xl2
inet 192.168.3.1 255.255.255.0 192.168.3.255 description "DMZ Interface"

/etc/dhclient.conf file exists and all values are commented out so we are using defaults!

When the daemon is running it gladly accepts a lease from the modem,

Oct 24 13:42:41 imelda dhclient[25525]: DHCPACK from 10.58.224.1
Oct 24 21:37:15 imelda dhclient[25525]: DHCPREQUEST on xl0 to 10.58.224.1 port 67

Only after manually pkill the dhclient then restarting it!

I am also running dhcpd on the firewall server. The dhcpd daemon is offering leases to two other interfaces and not to the outside interface (xl0) obviously.

Does anyone have any ideas?

Thanks.

Matt

dhcp client

October 26, 2006 - 4:04pm

From: http://openbsd.com/faq/faq6.html#DHCP

echo dhcp > /etc/hostname.xl0

That is set already. It migh

October 27, 2006 - 1:41am

That is set already. It might be arp or watchdog error. I will try a new NIC. For the time being i wrote a script to kill the old dhlcient daemon afer a restart and then restart the dhclient and i get a lease.

Not sure but my whole initial post doesn't show up. It got cut off ..

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
speck-geostationary