display local-ce mac

Function

The display local-ce mac command displays MAC addresses and VLAN IDs of Ethernet interfaces on the local CE.

Format

display local-ce mac [ interface-type interface-number | interface-name ]

Parameters

Parameter Description Value
interface-type

Specifies the interface type.

-

interface-number

Specifies the interface number.

-

Views

All views

Default Level

1: Monitoring level

Task Name and Operations

Task Name Operations
l2vpn read

Usage Guidelines

Usage Scenario

If the Ethernet AC interface on the PE is configured with heterogeneous IP interworking, you need to run the local-ce mac or local-ce ip command on this AC interface to specify the MAC address or IP address for the Ethernet AC interface on the local CE, so as to ensure communication between CEs.

To view MAC addresses and VLAN IDs of Ethernet interfaces on the local CE, run the display local-ce mac command.

Configuration Impact

If a large number of Ethernet interfaces exist on the local CE, you are advised to specify the interface type and interface number to view MAC addresses and VLAN IDs by using this command. Otherwise, excess output information may cause the following problems:

  • The displayed information is repeatedly refreshed and the required information cannot be obtained.
  • The system does not respond because of prolonged information traversing and searching.

Precautions

If no interface is specified, the display local-ce mac command will display MAC addresses and VLAN IDs of all interfaces.

Example

The actual command output varies according to the device. The command output here is only an example.

# Display MAC addresses and VLAN IDs of Ethernet interfaces on the local CE.
<HUAWEI> display local-ce mac
INTERFACE                       MAC ADDRESS    EXPIRE TYPE VLAN PVC      IP ADDRESS
-----------------------------------------------------------------------------
GigabitEthernet0/1/1.1          00e0-fc20-b3a6        S(A)
-----------------------------------------------------------------------------
Total:1       Dynamic:0       Static:1       Broadcast:0
Table 1 Description of the display local-ce mac command output
Item Description
INTERFACE

Name of the Ethernet interface with the encapsulation type as L2VPN interworking.

MAC ADDRESS

MAC address of the local CE.

EXPIRE

Aging time, in minutes.

TYPE

Mode for learning MAC addresses:

  • S: static.
  • D: dynamic.
  • B: broadcast.
VLAN

ID of the VLAN to which the MAC address belongs.

PVC

VPI and VCI corresponding to the interface.

IP ADDRESS

Dynamically learned IP address of the local CE.

Total

Total number of MAC address entries matching the specified criteria.

Dynamic

Number of dynamically learned MAC addresses.

Static

Number of statically configured MAC addresses.

Broadcast

Number of learned broadcast MAC addresses.

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