Difference between revisions of "Dhcp"
From Bashlinux
Line 1: | Line 1: | ||
__NOTOC__ |
__NOTOC__ |
||
= DHCP = |
= DHCP = |
||
− | == Send |
+ | == 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 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.
{note}