How to configure a basic DHCP pool on Cisco devices

Опубликовано: 14 Май 2026
на канале: Matthew Witherford
28
0

NOTE: I now know why the excluded addresses are configured within the global config, it's so you can ensure the addresses will not be leased when the pool is setup. I also picked up afterwards that the device had already picked up one of the excluded IP addresses, so configure the excluded addresses first and the pool afterwards.

Script below:

#Configure the excluded addresses - Configure this first
ip dhcp excluded-address 192.168.0.0 192.168.0.30

#Create and name the DHCP pool:
ip dhcp pool DATA

#Configure the network range & mask
network 192.168.0.0 /24

#Configure the default gateway
default-router 192.168.0.254

#Configure the DNS servers
dns-server 8.8.8.8 8.8.4.4

#Configure the lease time
lease 7

#Configure NTP servers using option 42
option 42 ip 192.168.0.10