08-07-2018 04:55 AM
Hi, I have created DHCP pool, but with wrong name. How I can delete this pool? Or how remove network from this pool, so I can add it to new created pool?
Thank You
Miroslav
08-07-2018 05:30 AM
Hi there,
Assume you have the following pool configured:
! ip dhcp pool BAD_POOL network 10.10.0.0 255.255.255.0 !
You would use the no command to negate the configuration items. To delete the entire pool:
!
no ip dhcp pool BAD_POOL
!
...or to remove the network from the pool:
! ip dhcp pool BAD_POOL no network 10.10.0.0 255.255.255.0 !
cheers
Seb.
08-07-2018 05:34 AM
Hi
I guess you can not rename a pool. You have to suppress it then create it again.
You should prepare all commands in plain text file to copy and paste it quickly or load it using tftp for example (copy tftp://server/path/to/file run).
Here a quick example :
! suppress the wrong pool
no ip dhcp pool <wrong_pool_name>
! create the correct pool entirely
ip dhcp pool <correct_pool_name>
network x.y.0.0 255.255.0.0
default-router x.y.255.254
domain-name yourdomain.tld
dns-server a.b.c.b
Regards
Jérôme
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide