The display mac-address vxlan { static | dynamic } command displays VXLAN MAC address static or dynamic entries.
| Parameter | Description | Value |
|---|---|---|
| static | Indicates static entries, which are not aged. After static entries are configured and saved, the entries will not be lost after the system resets or the LPU is hot swapped. | - |
| dynamic | Indicates dynamic MAC address entries, which are learned based on source MAC addresses. Dynamic MAC address entries can be aged based on a specified aging time. Such entries will be lost after the system is reset or the LPU is hot swapped. | - |
| vni vni-id | Specifies a VNI. | The specified VNI must already exist. |
| peer ip-address | Specifies the IP address of the peer VTEP. | - |
Application Scenarios
The MAC address table is a port-based Layer-2 forwarding table that stores MAC address information learned from other devices. The information includes the MAC address, VNI of the port, and IP address of the peer VTEP. When forwarding a packet, the device searches the MAC address table based on the destination MAC address in the packet to identify the outbound interface, reducing broadcast packets.
Precautions
# Display information about static MAC address entries.
[sysname] display mac-address vxlan static ----------------------------------------------------------------------- MAC Address VNI ID Learn From Left Time(s) Type ----------------------------------------------------------------------- 0001-0001-0001 4096 192.168.1.2 - static ----------------------------------------------------------------------- Total Static Mac displayed = 1
Item |
Description |
|---|---|
MAC Address |
MAC address. |
VNI ID |
VNI to which the outbound interface belongs. |
Left Time(s) |
Remaining aging time, in seconds. If the value is -, the entry is static and does not have the aging time. |
Type |
Type of the MAC address.
|