< Home

mpls l2vpn

Function

The mpls l2vpn command enables MPLS L2VPN and displays the MPLS L2VPN view.

The undo mpls l2vpn command disables MPLS L2VPN and deletes all the L2VPN configurations.

By default, the MPLS L2VPN function is disabled.

Format

mpls l2vpn

undo mpls l2vpn

Parameters

None

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

To configure MPLS L2VPN functions or perform configurations in the MPLS L2VPN view on the MPLS L2VPN network, run the mpls l2vpn command to enable MPLS L2VPN and enter the MPLS L2VPN view.

Prerequisites

Basic MPLS functions have been configured. For details, see the mpls lsr-id and mpls commands.

Precautions

When the command is configured, a P device does not need to be enabled with the MPLS L2VPN function.

After the mpls l2vpn command is executed:

  • If MPLS L2VPN is disabled on the device, MPLS L2VPN is enabled and the MPLS L2VPN view is displayed.
  • If MPLS L2VPN is enabled on the device, the MPLS L2VPN view is displayed.

After the undo mpls l2vpn command is run in the system view, L2VPN services may be interrupted, and all L2VPN configurations are cleared. If you want to restore the L2VPN configurations, re-run all the deleted commands.

Example

# Enable MPLS L2VPN.

<HUAWEI> system-view
[HUAWEI] mpls lsr-id 10.1.1.1
[HUAWEI] mpls
[HUAWEI-mpls] quit
[HUAWEI] mpls l2vpn
[HUAWEI-l2vpn]
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >