Cisco – How to remove excluded-address ranges from a Cisco router config

ciscoconfigurationrouter

We have a Cisco router with a DHCP address pool.

#show config
<snip>
ip cef
no ip dhcp use vrf connected
ip dhcp excluded-address 192.168.1.1 192.168.1.99
ip dhcp excluded-address 192.168.1.151 192.168.1.254
!
ip dhcp pool bigpool
   network 192.168.1.0 255.255.255.0
   dns-server 210.22.70.3 210.22.84.3
   default-router 192.168.1.1
   option 150 ip 192.168.1.1
!
</snip>

How can I remove or modify the excluded address. I tried:

#config
Configuring from terminal, memory, or network [terminal]?
Enter configuration commands, one per line.  End with CNTL/Z.
(config)#no ip dhcp excluded-address 192.168.1.151 192.168.1.254
% Range [192.168.1.151, 192.168.1.254] is not in the database.

Best Answer

You have used the correct command, but you are showing your saved (bootup) config, not your running configuration. So until you copy run start to commit the running configuration to memory (so it is the one used at boot), show config won't be current to the configuration the router is actively using.

If you use show run , it will show your current configuration, and you should see that dhcp exclusion is no longer there.