dhcp relay request-from-tunnel discard
Use dhcp relay request-from-tunnel discard to configure the DHCP relay agent to discard the DHCP requests that are delivered from VXLAN tunnels.
Use undo dhcp relay request-from-tunnel discard to restore the default.
Syntax
dhcp relay request-from-tunnel discard
undo dhcp relay request-from-tunnel discard
Default
The DHCP relay agent can forward the DHCP requests that are delivered from VXLAN tunnels.
Views
VXLAN VSI interface view
Predefined user roles
network-admin
mdc-admin
Usage guidelines
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.
Examples
# Configure the DHCP relay agent to discard the DHCP requests that are delivered from VXLAN tunnels.
<Sysname> system-view [Sysname] interface vsi-interface 1 [Sysname-Vsi-interface1] dhcp relay request-from-tunnel discard