cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
4939
Views
0
Helpful
5
Replies

Static DHCP in VRF Issue

RAINER KRALY
Level 1
Level 1

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

5 Replies 5

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.


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul

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

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

HQuest
Level 1
Level 1

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...

Peter Noble
Level 1
Level 1

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

https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/ipaddr/command/ipaddr-cr-book/ipaddr-a1.html#wp3544602625

 

Review Cisco Networking products for a $25 gift card