There are instances and this is fairly common to medical environments/facilities where you can’t dynamically assign an IP address to a device out of security or other reasons. Most of these devices you have to ask the vendor to hard-code the IP before shipping to the customer.
So if you have cisco routers onsite and they also function as the DHCP server, it is essential that they can reserve and designate these IPs to particular devices via their mac-address.
In this simple how-to, I will show you how to hard-code IPs to network devices using their mac-address. Make sure you exclude the IPs that you are reserving by doing the exclude command, set-up your dhcp configs then set your static pool. Don’t forget to label them for future troubleshooting.
Scenario, I got three devices, a printer, a pc and a medical device maybe a catscan that needs to send info via the network.
ip dhcp excluded-address 192.168.1.202 192.168.1.203
ip dhcp excluded-address 192.168.1.50
ip dhcp excluded-address 192.168.1.254
ip dhcp pool sdm-pool
network 192.168.1.0 255.255.255.0
ip dhcp pool static1
host 192.168.1.50 255.255.255.0
ip dhcp pool static2
host 192.168.1.202 255.255.255.0
ip dhcp pool static3
host 192.168.1.203 255.255.255.0