DGS-6604
based-on mac-address
CLI Reference Guide
62
based-on mac-address
This command is used to specify the host MAC address as a rule for IP address
assignment from the DHCP address pool. Use the no form to remove the MAC
address rule from the DHCP address pool.
based-on mac-address
MAC-ADDRESS
[,|-]
no based-on mac-address
MAC-ADDRESS
[,|-]
Default
None
Command Mode
DHCP pool configuration
Usage Guideline
This command is used to create the address binding rule for the DHCP address
pool.
based-on mac-address
command creates the address binding rules in an
incremental way. That is, all of the mac-addresses created by the based-on mac-
address commands take effect on the corresponding DHCP address pool.
However this command will be combined using logical AND operations with the
other rules is set by all other based-on commands. For example if the first rule is
based-on mac-address
00:80:00:11:22:00- 00:80:00:11:22:FF
and there is
another
based-on c-vid
200
command, the address pool will only assign an IP
address to the client with a MAC address in range of 00:80:11:22:xx and with its
C-VID=200. Other than that, no IP address is offered from the corresponding
DHCP address pool.
Examples
The following sets a rule used for IP address assignment based on MAC address
00:80:C8:11:22:xx from the DHCP address pool1.
The following sets an additional rule used for IP address assignment based on
MAC address 00:80:C8:11:33:00 and 00:80:C8:11:33:FF from the DHCP
address pool1.
Syntax Description
MAC-ADDRESS
[,|-]
Specifies the MAC address list.
switch(config)#ip dhcp pool pool1
switch(config-dhcp)#based-on mac-address 00:80:C8:11:22:00-00:80:C8:11:22:FF
switch(config-dhcp)#based-on mac-address 00:80:C8:11:33:00,00:80:C8:11:33:FF
Summary of Contents for DGS-6600 Series
Page 1: ...0 9 3 ...