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
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.
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-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 4: Command output
Field | Description |
---|---|
State | Entry state:
|
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 interface name. |
Aging | Entry aging state:
|
Related commands
reset l2vpn mac-address