Difference between revisions of "Dhcp"

From Bashlinux
Jump to: navigation, search
Line 18: Line 18:
   
 
'''RFC 2131'''
 
'''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.
 
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.
{note}
 

Revision as of 01:24, 4 February 2010

DHCP

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.