display mpls l2vpn (All views)

Function

The display mpls l2vpn command displays the VPN target list of BGP VPWS.

Format

display mpls l2vpn { export-route-target-list | import-route-target-list }

Parameters

Parameter Description Value
export-route-target-list

Displays the export VPN target list.

-

import-route-target-list

Displays the import VPN target list.

-

Views

All views

Default Level

1: Monitoring level

Task Name and Operations

Task Name Operations
l2vpn read

Usage Guidelines

Usage Scenario

To check the VPN target list after configuring BGP VPWS, run the display mpls l2vpn (route-target-list) command.

If a BGP VPWS connection between two PEs is Up but the corresponding CEs cannot communicate, you can run the display mpls l2vpn { export-route-target-list | import-route-target-list } command to check whether VPN targets are configured correctly for the L2VPN instance on the local and remote PEs.

  • The export VPN targets on the local PE must match the import VPN targets on the remote PE.
  • The import VPN targets on the local PE must match the export VPN targets on the remote PE.

Prerequisites

BGP VPWS has been configured.

Example

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

# Display the import VPN target list of BGP VPWS.
<HUAWEI> display mpls l2vpn import-route-target-list
import vpn target list:
 744:7  745:7  746:7  888:8
# Display the export VPN target list of BGP VPWS.
<HUAWEI> display mpls l2vpn export-route-target-list
export vpn target list:
 755:7  888:8
Table 1 Description of the display mpls l2vpn (All views) command output
Item Description
import vpn target list

Import VPN target list.

export vpn target list

Export VPN target list.

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