< Home

display mac-address vxlan { static | dynamic }

Function

The display mac-address vxlan { static | dynamic } command displays VXLAN MAC address static or dynamic entries.

Format

display mac-address vxlan { static | dynamic } [ vni vni-id ] [ peer ip-address ]

Parameters

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. -

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

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.

MAC address entries are classified as follows:
  • Static MAC address entries: manually configured and not aged.
  • Dynamic MAC address entries: configured and learned based on source MAC addresses. Dynamic MAC address entries can be aged based on a specified aging time.

Precautions

If the device has many MAC address entries, you can run this command by specifying a VNI to filter information. If no VNI is specified, the following problems may occur due to excessive output information:
  • The displayed information is continuously refreshed, and locating wanted information is difficult.
  • The system fails to respond to other requests because it is busy searching information.

Example

# 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
Table 1 Description of the display mac-address vxlan command output

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.
  • static: static MAC address entries. Static entries are manually configured and will not be aged. Such entries are not lost after the system is reset or the LPU is hot swapped.

  • dynamic: dynamic MAC address entries, which are configured and 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.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >