I am trying to get the DHCP server to always assign a given MAC address the same IP address. This is critical for some testing we do. I have tried the following with no luck:
ip dhcp excluded-address 192.168.97.1 192.168.97.10 ip dhcp excluded-address 192.168.97.222 ! ip dhcp pool TEST network 192.168.97.0 255.255.255.0 dns-server 10.1.42.41 10.1.42.42 default-router 192.168.97.2
I want the given MAC address to be assigned 192.168.97.201, but I always get a different address from the pool. I have tried the client-id command instead of hardware address as well with no luck.
ip dhcp pool TEST network 192.168.97.0 255.255.255.0 dns-server 10.1.42.41 10.1.42.42 default-router 192.168.97.2 address 192.168.97.201 hardware-address b86b.2348.2a83
From novice to tech pro — start learning today.