cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
4862
Views
5
Helpful
2
Replies

Cisco - DHCP pool

kral10
Level 1
Level 1

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

2 Replies 2

Seb Rupik
VIP Alumni
VIP Alumni

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.

Jerome BERTHIER
Level 1
Level 1

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