04-30-2013 02:35 AM - edited 03-07-2019 01:06 PM
Hi
I try to configure on a 1921 Router with SW Rev. c1900-universalk9-mz.SPA.151-3.T1.bin a VRF DHCP Pool with Static Reservation
This is my config
ip vrf OFFICE
rd 200:2
route-target export 200:2
route-target import 200:2
!
ip dhcp excluded-address vrf OFFICE 10.10.27.1 10.10.27.15
!
ip dhcp pool OFFICE
vrf OFFICE
network 10.10.27.0 255.255.255.192
default-router 10.10.27.1
dns-server 10.10.1.1 10.10.1.2
domain-name foo.com
!
ip dhcp pool static
host 10.10.27.5 255.255.255.192
client-identifier 01xx.xxxx.xxxx.xx
vrf OFFICE ->
% This command may not be used with host pools.
The problem is to move the Static Pool into a vrf, i tried also with origin file but not success
Made i a mistake or are there any workarounds or is it not possible
Cheers,
Rainer
04-30-2013 03:07 AM
Hello
Have you tried using the no dhcp use vrf connected command, this is a great explanation.
https://supportforums.cisco.com/message/631964#631964
res
Paul
Please don't forget to rate any posts that have been helpful.
Thanks.
02-04-2015 09:19 AM
Hello Rainer,
I don't know if you still have this problem, but we just came across it. My colleague while experimenting, he created the static pool, then tied it to the VRF and then applied the host and client-identifier commands. In this order he did not get a warning. Now when we do a show ip dhcp binding, under the bindings from VRF pool bla, we do see the static address as manual.
So in your configuration this should be like the following:
ip dhcp pool static
vrf OFFICE
host 10.10.27.5 255.255.255.192
client-identifier 01xx.xxxx.xxxx.xx
Regards,
Michael
02-04-2015 09:54 PM
Hi Michael,
I'm still working on this problem.
I tried your instruction but still have the problems.
I am using SW c1900-universalk9-mz.SPA.151-3.T1.bin which software did you use?
Regards,
Rainer
06-15-2017 11:54 AM
I know this is a really old topic, but seems there are no many suggestions around when it comes to this subject.
The static IP address reservation with VRF is a bit different from a non-VRF aware device, but it makes perfect sense after you do it once. On a non-VRF device, you can create as many pools you want, including a pool for each of your static IP address assignments - naming them as you wish so your configuration is clean and pretty.
On a VRF device, you must enter the hardware address/client info under the VRF aware pool itself. Now, the catch is: you can't exclude a range of IP addresses and assign one of the excluded IP to a host.
So using the original, 4 year old example, here is how his setup would have been done:
ip vrf OFFICE
rd 200:2
route-target export 200:2
route-target import 200:2
!
ip dhcp excluded-address vrf OFFICE 10.10.27.1 10.10.27.4
ip dhcp excluded-address vrf OFFICE 10.10.27.6 10.10.27.15
!
ip dhcp pool OFFICE
vrf OFFICE
network 10.10.27.0 255.255.255.192
default-router 10.10.27.1
dns-server 10.10.1.1 10.10.1.2
domain-name foo.com
host 10.10.27.5 client-identifier 01xx.xxxx.xxxx.xx
And there you have it. You won't have its name anywhere on the configuration, but you will achieve the final result of a static IP address assigned under a DHCP attached to a VRF interface.
May this help the next person Googling around...
02-20-2019 11:15 PM
As of IOS 12.2(46)SE and 12.2(33)SXI4 you can use the address command.
ip dhcp pool SomeVRFPool vrf SomeVRF network 10.1.1.0 255.255.255.0 domain-name somevrf.net default-router 10.1.1.1 address 10.1.1.2 client-id "Client-Hostname" ascii address 10.1.1.3 client-id cdba.dbee.f123
See 'Cisco IOS IP Addressing Services Command Reference' under 'address client-id' for more information
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