On a Cisco IOS DHCP server, it is pretty simple. In the DHCP pool configuration, use the
address command to assign an IP address to a MAC address:
address <ip-address> hardware-address <mac-address>
Preassigning IP Addresses and Associating Them to a Client:
Preassigning IP Addresses and Associating Them to a Client
Perform this task to preassign an IP address and associate it to a
client identified by a client ID or MAC address.
For port-based address assignment, you must perform the task in the
Automatically Generating a Subscriber Identifier for a DHCP Message
Received on a Port task to associate the client ID with the
subscriber ID. The subscriber ID value is based on the short name of
the port to which the directly connected device is attached.
Configure a normal DHCP pool by supplying any DHCP options and lease
time. Preassigned addresses are automatically excluded from normal
dynamic IP address assignment. Preassigned addresses cannot be used in
host pools, but there can be multiple preassigned addresses per DHCP
Only one IP address can be assigned per port.
Preassigned addresses (also called reserved addresses) cannot be
cleared by using the clear ip dhcp binding command.
- configure terminal
- ip dhcp pool name
- network network-number [mask | / prefix-length]
- address ip-address client-id string [ascii]
- address ip-address hardware-address mac-address [hardware-number]
- show ip dhcp pool [name]
- show ip dhcp binding
Based on your comments:
ip dhcp pool Test-Pool
address 192.168.17.137 hardware-address 0100.71cc.02XX