Dhcp

From Bashlinux
Revision as of 08:04, 9 November 2012 by Manpaz (talk)
Jump to: navigation, search

DHCP

How to send client-ID to DHCP Server

The Client ID could be type MAC address or ASCII, to setup a custom Client-ID to be sent to DHCP Server, create or edit the `/etc/dhclient.conf` file and add the client ID as follows.

  • If the client ID is type MAC addres, the place a 1 before the MAC addres likes:
 send dhcp-client-identifier 1:xx:xx:xx:xx:xx:xx;
 


  • But if you want an ASCII string just do:
 send dhcp-client-identifier "\0MYCLIENT-xxxxxxxx";
 


RFC 2131

The convention is 0 for ASCII and 1 for MAC address, but some times it doesn't work, so you might want to try without the leading zero if the example above doesn't work.