cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
451
Views
1
Helpful
7
Replies

DHCP pool gives commit error

Hej
NCS540 version 7.11.2

I am trying to configure a DHCP pool but get the below error regardless of what address subnet I configure. Can anyone spot the error?
+++++++++++++++++++++++++++++
CONFIG
pool vrf default ipv4 IPV4_DHCP
network 172.16.255.0/24
address-range 172.16.255.100 172.16.255.200
!
end
+++++++++++++++++++++++++++++
ERROR
pool vrf default ipv4 IPV4_DHCP
address-range 172.16.255.100 172.16.255.200
!!% Warning: Configured address range overlaps with existing range for same VRF: 'ip-daps' detected the 'warning' condition 'Warning: Configured address range overlaps with existing range for same VRF'
!
end

7 Replies 7

Max Jobs
Level 1
Level 1

Hej buddy,
The error message means that there is already a DHCP pool configured with an overlapping IP range in the same VRF (Virtual Routing and Forwarding instance).

Here is some ideas to fix it:

Check current dhcp pools and configs:
Code: show running-config | include dhcp
how running-config | section dhcp

Edit or remove current pools:
Code: no pool vrf default ipv4 <existing_pool_name>

Or adjust your new pool to use a non-overlapping range.

 

I dont have exact answer but why you use network and address range ?

you can use network and exclude some IP from network 
MHM

Isn't it normal to use address range to specify which addresses I want to assign? Feels like it would be less work than using exclude

On another note, using exclude actually does allow config to commit but address-rangege doesn't

DOESN'T WORK
pool vrf default ipv4 IPV4_DHCP
network 10.66.66.0/24
address-range 10.66.66.100 10.66.66.200
!
end

RP/0/RP0/CPU0:sw02-tgl-cph(config)#commit
Thu Jun 13 08:50:52.758 UTC

% Failed to commit one or more configuration items during a pseudo-atomic operation. All changes made have been reverted. Please issue 'show configuration failed [inheritance]' from this session to view the errors
RP/0/RP0/CPU0:sw02-tgl-cph(config)#show configuration failed inheritance
Thu Jun 13 08:50:58.398 UTC
!! SEMANTIC ERRORS: This configuration was rejected by
!! the system due to semantic errors. The individual
!! errors with each failed configuration command can be
!! found below.


pool vrf default ipv4 IPV4_DHCP
address-range 10.66.66.100 10.66.66.200
!!% Warning: Configured address range overlaps with existing range for same VRF: 'ip-daps' detected the 'warning' condition 'Warning: Configured address range overlaps with existing range for same VRF'
!
end

 

WORKS
pool vrf default ipv4 IPV4_DHCP
network 10.66.66.0/24
exclude 10.66.66.0 10.66.66.99
exclude 10.66.66.201 10.66.66.255
!
end

I know with address-range the config will be simple and easy 
but this workaround not solution 
I check IOS XR and I dont find example of use both network and address range under same pool. 
I will take look again if I found something I will share here 

thanks 

MHM

I would assume using both network and address-range would be mandatory since you can not assign subnet during address-range, so network would be what prefix the device receivess

Hello,

post the output of:

show run | section dhcp

The thing is that I do not have DHCP configured on the device, so no idea why I am getting the error

RP/0/RP0/CPU0:sw02-tgl-cph#show running-config formal | i dhcp
Thu Jun 13 08:42:23.658 UTC
RP/0/RP0/CPU0:sw02-tgl-cph#

RP/0/RP0/CPU0:sw02-tgl-cph(config)#do show running-config | i pool
Thu Jun 13 08:43:54.583 UTC
RP/0/RP0/CPU0:sw02-tgl-cph(config)#

Review Cisco Networking for a $25 gift card