In this scenario, the client is connected to an access switch that is dual‑homed to a pair of Leafs in an ERB topology with Anycast Gateways acting as DHCP relays. The DHCP server resides in another data center that uses a CRB topology. The client successfully obtains an IP address when the DHCP Discovery is forwarded through Leaf 1. However, when both Leafs are active or traffic is sent through Leaf 2, the DHCP Offer from the remote site’s DHCP server is not received.
Symptoms
Topology
The DHCP client is connected to an access switch that is dual‑homed to a pair of Leaf switches in an ERB topology on VLAN 10. The DHCP server resides in another data center, where it is dual‑homed to a pair of leaf switches in a CRB topology on VLAN 20. Communication between the DHCP client and the DHCP server therefore traverses the DCI links between the two sites.
Issue Descriptor
The client successfully obtains an IP address when the DHCP Discovery is forwarded through Leaf1‑B—the DHCP Offer is received from the remote DHCP server via the DCI link, and the full transaction completes. However, when both Leafs are active, or when traffic is forced through Leaf 2 by disabling the link to Leaf 1 on the access switch, the DHCP Offer is not received.
Resolution
IPs from the Leafs on site B:
Leaf1-B
Leaf2-B
Configuration for the VRF on both Leafs:
set routing-instances TENANT_CLIENT_VRF1 description "VRF for DHCP Clients in VRF1”set routing-instances TENANT_CLIENT_VRF1 instance-type vrfset routing-instances TENANT_CLIENT_VRF1 interface irb.10set routing-instances TENANT_CLIENT_VRF1 interface lo0.2set routing-instances TENANT_CLIENT_VRF1 route-distinguisher 1.1.5.2:1100set routing-instances TENANT_CLIENT_VRF1 vrf-target target:10:65001set routing-instances TENANT_CLIENT_VRF1 vrf-table-labelset routing-instances TENANT_CLIENT_VRF1 routing-options auto-exportset routing-instances TENANT_CLIENT_VRF1 forwarding-options dhcp-relay forward-onlyrouting-instance TENANT_SERVICE_VRFset routing-instances TENANT_CLIENT_VRF1 forwarding-options dhcp-relay server-groupDHCP_SERVER_GROUP_1 10.10.20.10set routing-instances TENANT_CLIENT_VRF1 forwarding-options dhcp-relay group Relay_Group1active-server-group DHCP_SERVER_GROUP_1set routing-instances TENANT_CLIENT_VRF1 forwarding-options dhcp-relay group Relay_Group1overrides relay-source lo0.2set routing-instances TENANT_CLIENT_VRF1 forwarding-options dhcp-relay group Relay_Group1relay-option-82 server-id-overrideset routing-instances TENANT_CLIENT_VRF1 forwarding-options dhcp-relay group Relay_Group1interface irb.10
The issue was resolved after adding the required statement on the Spines of the CRB enviroment to accept the route from "lo0.2" of Leaf2-B.
set policy-options policy-statement VRF_T5 term BGP_ERB from route-filter 192.168.20.0/24 exact