Discarding DHCP requests that are delivered from VXLAN tunnels
About discarding DHCP requests that are delivered from VXLAN tunnels
In a VXLAN network, the DHCP relay agent feature can be configured on the VSI interface of a VTEP.
When the DHCP relay agent receives a DHCP request from an AC mapped to the VSI interface, the relay agent forwards this request to the DHCP servers and broadcasts this request to other VTEPs. If those VTEPs also function as the DHCP relay agents, each will forward the DHCP request to the DHCP servers they are connecting to. To prevent a DHCP server from receiving the same DHCP request from different VTEPs, you can configure this command on the VSI interface of the VTEPs that are not directly connecting to DHCP clients.
Procedure
Enter system view.
system-view
Enter interface view.
interface vsi-interface vsi-number
Configure the DHCP relay agent to discard the DHCP requests that are delivered from VXLAN tunnels.
dhcp relay request-from-tunnel discard
By default, the DHCP relay agent can forward the DHCP requests that are delivered from VXLAN tunnels.
If you configure this command on a device that acts as both the distributed and centralized VXLAN IP gateways, make sure the gateways do not use the same VSI interface to provide the gateway services.