Difference between revisions of "Dhcp"

From Bashlinux
Jump to: navigation, search
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
 
= DHCP =
 
= DHCP =
== Send client-ID to DHCP Server ==
+
== 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.
 
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:
 
* If the client ID is type MAC addres, the place a 1 before the MAC addres likes:

Revision as of 08:04, 9 November 2012

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.