Cisco – DHCP on CISCO 3850

ciscocisco-catalystdhcpswitch

I would like to configure the DHCP server on CISCO 3850, and reserve around 100 static IP for servers
After doing research found that I need to create individual pool for each static maping like below( for 100 static entry 3*100 line of CLI), or is there any better option please suggest?

ip dhcp pool static
   host 192.168.1.74 255.255.255.0
   hardware-address 0011.f526.516b

Best Answer

Firstly create DHCP pool for specific subnet in Cisco 3850 layer3 switch as below

Switch (config)# ip DHCP pool "name of scope"

Switch(config)# network 192.168.1.0 255.255.255.0

Switch(config)#ip default -gateway 192.168.1.1

Switch(config)#dns server 8.8.8.8

As per your requirement to allocate 100 static ip address from this pool . 100 ip address need to exclude from DHCP pool .And further allocate ip address statically to host .

Switch(config)# ip DHCP excluded address 192.168.1.0 0.0.0.127

Related Topic