Project

General

Profile

Actions

Bug #1057

closed

dhclient deletes ifaddr, then fails

Added by corecode over 15 years ago. Updated over 15 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:

Description

Hey,

considering this sequence:

dhclient fxp0

now we have ip address & everything is fine. dhclient keeps running

dhclient fxp0

returns error 1. in syslog, it complains about the address already
beeing taken, because of the running dhlient. However, it will set the
ip address of fxp0 to 0.0.0.0. Now I'm left with an unusable system.

killall dhclient
dhclient fxp0

now it works again.

cheers
simon

Actions #1

Updated by sepherosa over 15 years ago

Use a pid file in /var to lock out multi dhclients on the same interface?

Best Regards,
sephe

Actions #2

Updated by dillon over 15 years ago

:Hey,
:
:considering this sequence:
:
: dhclient fxp0
:
:now we have ip address & everything is fine. dhclient keeps running
:
: dhclient fxp0
:
:returns error 1. in syslog, it complains about the address already
:beeing taken, because of the running dhlient. However, it will set the
:ip address of fxp0 to 0.0.0.0. Now I'm left with an unusable system.
:
: killall dhclient
: dhclient fxp0
:
:now it works again.
:
:cheers
: simon

I think it has always done that.  If you run dhclient while one is
already running it explodes the network interface. Feel free to
fix the code :-)
-Matt
Matthew Dillon
<>
Actions #3

Updated by hasso over 15 years ago

We have a new dhclient.

Actions

Also available in: Atom PDF