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

Client not getting DHCP in VRF

dodgerfan78
Level 1
Level 1

What's wrong with this config? It works when I don't put the vlan/server in a VRF. 3850 is the DHCP server:

vrf definition VCC
rd 100:1
!
address-family ipv4
exit-address-family

ip dhcp excluded-address 10.1.11.2 10.1.11.99
ip dhcp pool vlan11
vrf VCC
network 10.1.11.0 255.255.255.0
dns-server 8.8.8.8
default-router 10.1.11.1

interface Vlan11
vrf forwarding VCC
ip address 10.1.11.1 255.255.255.0
no autostate

Logs:

*Feb 13 04:02:32.759: Option 82 not present
*Feb 13 04:02:32.759: DHCPD: tableid for 10.1.11.1 on Vlan11 is 5
*Feb 13 04:02:32.759: DHCPD: client's VPN is VCC.
*Feb 13 04:02:32.759: DHCPD: No option 125
*Feb 13 04:02:32.760: DHCPD: DHCPREQUEST received from client 0120.4747.d9be.b9.
*Feb 13 04:02:32.760: DHCPD: DHCPREQUEST received on interface Vlan11.
*Feb 13 04:02:32.760: DHCPD: Finding a relay for client 0120.4747.d9be.b9 on interface Vlan11.
*Feb 13 04:02:32.760: DHCPD: Option 125 not present in the msg.
*Feb 13 04:02:32.761: DHCPD: cannot find a relay

3 Replies 3

Hi,
By default, the DHCP server on a Cisco switch does not process requests from VRF interfaces unless explicitly configured. Add the following global command:
#ip dhcp use vrf VCC

also need enable helper address
interface Vlan11
vrf forwarding VCC
ip helper-address 10.1.11.1

Thanks!

ip dhcp excluded-address 10.1.11.2 10.1.11.99
ip dhcp pool vlan11
vrf VCC <<- remove this only' this ise for othet cases
network 10.1.11.0 255.255.255.0
dns-server 8.8.8.8
default-router 10.1.11.1

Hello
if the dhcp client is to to be in vlan 11 then your dhcp scope CFG is correct plus no need for any relay either as the dhcp sever is directly connected 

Just make sure you've create the vlan at L2
conf t
vlan 11
exit
int x/x/
description vlan 11 host
switchport access vlan 11
switchport mode access



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