5
display l2vpn mac-address
Use
display l2vpn mac-address
to display MAC address entries for VSIs.
Syntax
display l2vpn mac-address
[
vsi
vsi-name
]
[
dynamic
]
[
count
]
Views
Any view
Predefined user roles
network-admin
network-operator
mdc-admin
mdc-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, this 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, including:
•
Dynamic remote- and local-MAC entries.
•
Remote-MAC entries advertised through BGP EVPN.
•
Manually added static remote-MAC entries.
•
Remote-MAC entries issued through OpenFlow.
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-000b Static vpn1 Tunnel10 NotAging
0000-0000-000c Dynamic vpn1 Tunnel60 Aging
0000-0000-000d Dynamic vpn1 Tunnel99 Aging
--- 3 mac address(es) found ---
# Display the total number of MAC address entries in all VSIs.
<Sysname> display l2vpn mac-address count
3 mac address(es) found
Table 4 Command output
Field
Description
State
Entry state:
•
Dynamic
—Local- or remote-MAC entry dynamically learned in the data plane.
•
Static
—Static remote-MAC entry.
•
EVPN
—Remote-MAC entry advertised through BGP EVPN.
•
OpenFlow
—Remote-MAC entry issued by a remote controller through