cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
11171
Views
0
Helpful
6
Replies

DHCP server per VRF Cisco switch

yappsyduck
Level 1
Level 1

Hi,

I have DCHP server configured on Cisco 6506-E switch with supervision module VS-SUP2T-10G. It will only provide DHCP to the clients in the specified VRF. I had do some research at the forum and found that below config need to add as part of work around for this. But unluckily the highlight command was not allow to configure in the switch.The running IOS version is s2t54-adventerprisek9_npe-mz.SPA.150-1.SY2.bin. Is it the IOS not support DHCP per VRF?Anyone was facing this issue before? thanks.

 

vrf example
rd 100:0
!
ip dhcp use vrf connected
!
ip dhcp pool pool1
network 192.168.1.0 255.255.255.0
default-router 192.168.2.5
dns-server 4.2.2.2
vrf example

 

thanks

Cguy

6 Replies 6

Reza Sharifi
Hall of Fame
Hall of Fame

Hi,

ip dhcp use vrf connected is not supported on IOS versions for the 6500 or 6800 series.

HTH

Hi Reza

Thanks on  your  prompt  reply. Since it is not support, do you have any idea to achieve the DHCP per VRF in Cisco 6500 or 6800 series?

thanks

Cguy

Hi Cguy,

You are trying to use "DHCP pool" per vrf is that right?

If yes, I am not sure if there is way to do this on the 6500.

One way to do this is not to use the switch as DHCP server and use an external device (server) as a DHCP server and just add helper address  to the vlan to point to the external server.

(ip helper address <server ip>)

and also add the SVI for that vlan to a vrf.

HTH

Hi Reza

Yes, I am trying to use DHCP pool per vrf  in switch. Thanks on your suggestion.

BR

Cguy

Can you show us the multiple DHCP pool/network statements for each of the VLAN's?

Remember each vrf needs its own DHCP pool definition and parameters.  Only those with matching information are going to get DHCP leases.

hi pwwiddicombe,

The dhcp pool and vlan interface configuration as below. But the vrf clients not able to get DHCP lease.

vrf test1
rd 100:0
!
ip dhcp pool test1
network 192.168.1.0 255.255.255.0
default-router 192.168.1.1
dns-server 4.2.2.2
!
interface vlan 100
ip address 192.168.1.1 255.255.255.0
ip vrf forwarding test1