02-12-2025 08:33 PM - edited 02-12-2025 08:34 PM
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
02-12-2025 09:16 PM
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!
02-13-2025 03:20 AM
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
02-13-2025 04:38 AM - edited 02-13-2025 04:38 AM
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
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