Re: setting dhcp client id option



On Wed, 2009-02-11 at 16:25 -0500, Dan Williams wrote:
> On Wed, 2009-02-11 at 23:07 +0200, Eldar, Dori wrote:
> > Is there a way to configure NetworkManager to send dhcp-client-id dhcp
> > option, such that it is set to the interface  mac address?
> > Using MAC address as the  dhcp client id is typical for windows
> > systems.
> > I know I can set it manually either through the nm-connection-editor
> > or using the dhclient.conf,  but am looking for a dynamic way that can
> > work on a LiveCD.

If you configure NetworkManager to use dhcpcd instead of dhclient you
can do this.
<dhcpcd-4.0.5 does send a ClientID based on MAC address by default
>=dhcpcd-4.0.5 does not and requires the clientid directive
in /etc/dhcpcd.conf. Simply add the word clientid on a line by itself :)

> 
> We could just always send the MAC address unless the user customizes it;
> I'm not sure what the side-effects of that might be.  At the moment,
> there's not a good method of doing this automatically with either
> dhclient or NetworkManager :(

The side effect is that depending on the DHCP server you may get a
different lease. With ISC dhcpd, you get a different lease without a
clientid and with a clientid of the MAC address. With dnsmasq you get
the same lease.

Another thing to remember is that BOOTP servers don't understand a
clientid.

I firmly believe that DHCP clients shout NOT send a clientid by default
so they can take over from kernel DHCP clients and they historically
never have sent one. Also also believe that sending a clientid based on
the MAC address should be an easy configureable option ;)

Thanks

Roy

Attachment: signature.asc
Description: This is a digitally signed message part



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]