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.
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:
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.