23
vxlan ip-forwarding
Use
vxlan ip-forwarding
to enable Layer 3 forwarding for all VXLANs.
Use
undo vxlan ip-forwarding
to enable Layer 2 forwarding for all VXLANs.
Syntax
vxlan ip-forwarding
undo vxlan ip-forwarding
Default
Layer 3 forwarding is enabled for all VXLANs.
Views.
System view
Predefined user roles
network-admin
Usage guidelines
If the device is a VTEP, enable Layer 2 forwarding for VXLANs. If the device is a VXLAN IP gateway,
enable Layer 3 forwarding for VXLANs.
In Layer 3 forwarding mode, the VTEP uses the ARP table (IPv4 network) or ND table (IPv6 network)
to forward traffic for VXLANs. In Layer 2 forwarding mode, the VTEP uses the MAC address table to
forward traffic for VXLANs.
You must delete all VSIs, VSI interfaces, and VXLAN tunnel interfaces before you can change the
forwarding mode.
Examples
# Enable Layer 3 forwarding for all VXLANs.
<Sysname>system-view
[Sysname] vxlan ip-forwarding
vxlan local-mac report
Use
vxlan local-mac report
to enable local-MAC logging.
Use
undo vxlan local-mac report
to disable local-MAC logging.
Syntax
vxlan local-mac report
undo vxlan local-mac report
Default
Local-MAC logging is disabled.
Views
System view
Predefined user roles
network-admin