Difference between revisions of "Dhcp"

From Bashlinux
Jump to: navigation, search
(Redirected page to DHCP)
 
Line 1: Line 1:
  +
#REDIRECT [[DHCP]]
__NOTOC__
 
= 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:
 
 
<pre><nowiki>
 
send dhcp-client-identifier 1:xx:xx:xx:xx:xx:xx;
 
</nowiki></pre>
 
 
 
* But if you want an ASCII string just do:
 
 
<pre><nowiki>
 
send dhcp-client-identifier "\0MYCLIENT-xxxxxxxx";
 
</nowiki></pre>
 
 
 
'''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.
 

Latest revision as of 21:43, 11 June 2015

Redirect to: