5
Syntax
display l2vpn mac-address
[
vsi
vsi-name
] [
dynamic
] [
count
]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
vsi
vsi-name
: Specifies a VSI name, a case-sensitive string of 1 to 31 characters. If you do not
specify a VSI, the command displays MAC address entries for all VSIs.
dynamic
: Specifies dynamic MAC address entries learned in the data plane. If you do not specify
this keyword, the command displays all MAC address entries. The MAC address entries include
dynamic remote- and local-MAC entries, remote-MAC entries issued through OpenFlow, and
manually added static remote-MAC entries. VXLAN does not support static local-MAC entries.
count
: Displays the number of MAC address entries. If you do not specify this keyword, the
command displays detailed information about MAC address entries.
Examples
# Display MAC address entries for all VSIs.
<Sysname> display l2vpn mac-address
MAC Address State VSI Name Link ID/Name Aging
0000-0000-000a Dynamic vpn1 1 Aging
0000-0000-000b Static vpn1 Tunnel10 NotAging
0000-0000-000c Dynamic vpn1 Tunnel60 Aging
0000-0000-000d Dynamic vpn1 Tunnel99 Aging
--- 4 mac address(es) found ---
# Display the total number of MAC address entries in all VSIs.
<Sysname> display l2vpn mac-address count
4 mac address(es) found
Table 3 Command output
Field Description
State
Entry state.
For Release 2416:
•
dynamic
—Local- or remote-MAC entry dynamically learned in the data
plane.
•
static
—Manually added remote-MAC entry.
For Release 2418P01 and later versions:
•
Dynamic
—Local- or remote-MAC entry dynamically learned in the data
plane.
•
Static
—Manually added remote-MAC entry.
•
OpenFlow
—Remote-MAC entry issued by a remote controller through
OpenFlow.
Link ID/Name
For a local MAC address, this field displays the AC's link ID on the VSI.
For a remote MAC address, this field displays the tunnel name.