cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2238
Views
0
Helpful
3
Replies

IOS DHCP server for MAC reservation with vrf

prabhu050446
Level 1
Level 1

Hello Guys,

 

I am trying to migrate DHCP from windows server to IOS device. We have a VLAN with vrf and the requirement is to do MAC address reservation with IP source binding on access layer switch. I am using below config but it does not work, I see DHCP binding for client pools but with infinite lease as shown below

 

PARTIAL OUTPUT of show ip dhcp binding 

 

10.108.47.5 40d8.xxxx.xxxx Infinite Manual Selecting Unknown.

10.108.47.10 01xx,xxxx,xxxx,xx Infinite Manual Selecting Unknown

 

 

Configuration:

 

ip dhcp pool POOL
vrf POB
network 10.10.47.0 255.255.255.128
dns-server 10.x.x.180 10.x.x.184 10.x.x.175 10.x.x.177
default-router 10.10.47.1
domain-name domain.com
lease 0 0 20
exit


ip dhcp pool client1
host 10.10.47.10 255.255.255.128
client-name client1
hardware-address 01xx.xxxx.xxxx.xx
lease 0 0 20
default-router 10.10.47.1

 

ip dhcp pool client2
host 10.10.47.5 255.255.255.128
client-name client2
hardware-address 40xx.xxxx.xxxx
lease 0 0 20
default-router 10.10.47.1


I am not able to use vrf POB under client pools. I tried above with client-identifier and hardware-address commands.

 

Below is the IP source binding configuration on access switch:


ip source binding 40xx.xxxx.xxxx vlan 2004 10.10.47.5 int fa0/2
ip source binding 01xx.xxxx.xxxx.xx vlan 2004 10.10.47.10 int fa0/3

 

interface FastEthernet0/4
ip verify source
switchport port-security
ip dhcp client lease 0 0 20

 

interface FastEthernet0/2
ip verify source
switchport port-security
ip dhcp client lease 0 0 20

 

Can you please let me know if I am missing something. I searched online dhcp implementation with VRF and MAC reservation but did not help.

 

Thank you in advance.

3 Replies 3

gs.skills
Level 1
Level 1

Hello,

from what i read, DHCP clients require to use client-identifier in your manual bindings:

 

client-identifier 01XX.XXXX.XXXX.XX

 

where XX.XXXX.XXXX.XX is your MAC address, 01 is for ethernet media

 

hardware-address is for BOOTP requests

 

regards,

Guillaume

Hi, 

This 01 Indicates the protocol of the hardware platform. If no type is specified, the default protocol is Ethernet.

 

 

Regards,

Deepak Kumar

Regards,
Deepak Kumar,
Don't forget to vote and accept the solution if this comment will help you!

Thank you guys for taking time in replying. I already did that and it failed.

 

I contacted TAC and they confirmed that Denali is the only version that support DHCP vrf host static mappings.

 

Thank you

Review Cisco Networking products for a $25 gift card