Saturday 26 April 2014

CREATE RESERVATIONS IN CISCO DHCP SERVER

How to create reservations in Cisco DHCP Server?
If you want to configure a DHCP reservation on a switch or router, gather the MAC address of the device. If you are unsure of the MAC address of the device, you can find the current IP address and issue the following commands to get the MAC address and clear the DHCP binding before you create the pool.

show ip dhcp binding | include 10.11.12.4
clear ip dhcp binding 10.11.12.4 

Next, run the following commands to setup the reservation.
core.3750(dhcp-config)# host 192.168.135.53 255.255.255.0

NOTE: This command may not be used with network, origin, vrf or relay pools.
So, this is what we set up instead.
ip dhcp pool pool135
network 192.168.135.0 255.255.255.0
default-router 192.168.135.1
domain-name sctc.local
dns-server 192.168.235.249 192.168.235.4
address 192.168.135.56 hardware-address 0000.74b8.6481
address 192.168.135.65 hardware-address 0000.74b8.6522
address 192.168.135.53 hardware-address 0000.74b8.6523

It does not look that complicated, but the three devices listed took .2, .3, and .4 when they were restarted.

No comments:

Post a Comment