DGS-6604
based-on client-id
CLI Reference Guide
59
based-on client-id
This command is used to specify the client identifier as a rule for IP address
assignment from the DHCP address pool. Use the no form to remove the rule
from DHCP address pool.
based-on client -id {hex|string}
CLIENT-ID
no based-on client -id {hex|string}
CLIENT-ID
Default
None
Command Mode
DHCP pool configuration
Usage Guideline
All rules take effect on the corresponding DHCP address pool and will have a
logical AND operation conditions combined with other rules set by other based-
on commands.
If a DHCP client sends the no DHCP Client Identifier option, the service
continues to operate as it bases it on the hardware type and a client hardware
address. If a DHCP client sends a DHCP Client Identifier option, the DHCP
server validates the value to ensure the client identifier optional field matches the
configured Client Identifier. If the values match, the DHCP server provides
service to the client. If the values do not match, the DHCP server does not
respond to the client's request.
Multiple based-on client-id commands create a list of client-ids for the DHCP
address pool. When any request has a match in the list, the server will provide an
IP address to the server based on DHCP Client Identifier option, but not the
received client Hardware address.
Examples
The following sets a rule used for the IP address assignment based
0x0152415320 for a Microsoft "Remote Access Server" (RAS).
Syntax Description
CLIENT-ID
A sequence of bytes or a string defined on the client that is an unique
identification of client.
HEXADECIMAL: The maximum length is 128 bytes.
STRING: The maximum length is up to 64 bytes.
switch(config)#ip dhcp pool pool1
switch(config-dhcp)#based-on client-id hex 0x0152415320