cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
356
Views
2
Helpful
12
Replies

DHCP Pool for VRF not commiting

Hej
I am trying to configure DHCP pool for a vrf but I get the below error. I am not sure why I am getting the error

ASR9903 - 7.11.1

Error

Spoiler
% 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:pe2.koeb3.dk(config)#show configuration failed inheritance 
Tue Jun 25 14:26:45.903 CEST
!! 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 vrf-inet ipv4 GRP1
 network 250.250.0.0/16 default-router 250.250.0.1
!!% Error: VRF Name in request does not match values of the configured pool: 'ip-daps' detected the 'warning' condition 'Error: VRF Name in request does not match values of the configured pool'
!
end

Existing VRF config

Spoiler
vrf vrf-inet
 address-family ipv4 unicast
  import route-target
   8989:2
  !
  export route-target
   8989:2
  !
 !
 address-family ipv6 unicast
  import route-target
   8989:2
  !
  export route-target
   8989:2
  !
 !
!

Config that I am trying to push

Spoiler
pool vrf vrf-inet ipv4 GRP1
 network 250.250.0.0/16 default-router 250.250.0.1
 exclude 250.250.0.1 250.250.0.10
!

Regards

 

 

12 Replies 12

these VRF without RD 

you need to add RD to VRF to activate it 

MHM

I have added RD, and even added an interface to the VRF, but still getting same error

vrf vrf-inet
rd 10.0.9.2:2

interface Loopback101
description ### BNG GRP1 ###
vrf vrf-inet
ipv4 address 250.250.0.1 255.255.255.255
!

I try to push this
pool vrf vrf-inet ipv4 GRP1
network 250.250.0.0/16 default-router 250.250.0.1
exclude 250.250.0.1 250.250.0.10
!


Error, the same

RP/0/RP0/CPU0:pe2.koeb3.dk(config)#commit
Tue Jun 25 14:50:25.589 CEST

% 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:pe2.koeb3.dk(config)#show configuration failed inheritance
Tue Jun 25 14:50:30.781 CEST
!! 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 vrf-inet ipv4 GRP1
network 250.250.0.0/16 default-router 250.250.0.1
!!% Error: VRF Name in request does not match values of the configured pool: 'ip-daps' detected the 'warning' condition 'Error: VRF Name in request does not match values of the configured pool'
!
end

OK, 
in IOS XE I usually add VRF under the pool so the config will be 

pool vrf vrf-inet ipv4 GRP1

vrf vrf-inet
network 250.250.0.0/16 default-router 250.250.0.1
exclude 250.250.0.1 250.250.0.10

it can same thing with IOS XR (sorry I dont in lab any platform run IOS XR to test it)

MHM

No problem :). That option doesn't seem to be available on XR.

RP/0/RP0/CPU0:pe2.koeb3.dk(config)#pool vrf vrf-inet ipv4 GRP1
RP/0/RP0/CPU0:pe2.koeb3.dk(config-pool-ipv4)#?
address-range Specify address range for allocation
apply-group Apply configuration from a group
apply-group-append Append apply-group configuration from a group
apply-group-remove Remove a group from apply-group configuration
clear Clear the uncommitted configuration
commit Commit the configuration changes via pseudo-atomic operation
describe Describe a command without taking real actions
do Run an exec command
end Exit from configure mode
exclude Exclude addresses
exclude-group Exclude apply-group configuration from a group
exclude-item Negate a command or set its defaults
exit Exit from this submode
network Specify network for allocation
no Negate a command or set its defaults
pwd Commands used to reach current submode
root Exit to the global configuration mode
show Show contents of configuration
utilization-mark Specify utilization mark
validate Validate configuration changes without attempting to commit

I check it seem that the Pool is different than DHCP server config in IOS XR 
I found this cisco community it can help you

Goodluck friend 
MHM

ios xr.png

That is for default table, if I have pools for default table with basically same config, but just says vrf default, and they commit no problem. The problem is if I try to configure a pool for the vrf unfortunately.

I think I found issue here 

I Was right we need to specify vrf but ios xe we can not specify it under pool so you need to specify it under dhcp ipv4 

Check if there is vrf command under dhcp ipv4 

MHM

It is weird, if I change subnet values from 250.250 to 10.250 the commit goes through

It work with add vrf or without it ?

 router accpet any IP except if it multicast'  so I dont know why it reject 250.250.x.x but it private IP you can use any IP you want other than 250.

MHM

Commits
pool vrf vrf-inet ipv4 GRP1
network 10.250.0.0/16 default-router 10.250.0.1
exclude 10.250.0.1 10.250.0.10
!

Commits
pool vrf vrf-inet ipv4 GRP2
network 100.250.0.0/16 default-router 100.250.0.1
exclude 100.250.0.1 100.250.0.10
!

Commits
pool vrf vrf-inet ipv4 GRP3
network 200.250.0.0/16 default-router 200.250.0.1
exclude 200.250.0.1 200.250.0.10
!
end

Doesn't commit
pool vrf vrf-inet ipv4 GRP1
network 250.250.0.0/16 default-router 250.250.0.1
exclude 250.250.0.1 250.250.0.10
!

It is something to do with that specific subnet I guess. It is inside the 240.0.0.0/4 subnet

240.0.0.0/4240.0.0.0 –
255.255.255.254
268,435,455n/aReserved for future use, as specified by RFC 6890.

Sorry but are yoh add vrf under dhcp ipv4 as I mentioned before?

All these prefix under same vrf?

Is there any interface in this subnet?

Thanks 

MHM

No we are not adding vrf to the dhcp setting only to the pool. In big picture this is for BNG setup so defining vrf under DHCP is not needed in XR. 

We are in early testings now and I was just testing with the prefixes. We will probably use multiple prefixes in the same vrf in the end.

Review Cisco Networking for a $25 gift card