R3303-HP 6600/HSR6600 Routers MPLS Command Reference Guide

216
After you execute this command, if the VC has an available primary or backup VC, the device switches
traffic from the VC to the primary or backup VC. Otherwise, the device does not switch traffic.
Examples
# Assume that a primary VC and a backup VC are created on interface GigabitEthernet 2/1/1. Switch
traffic from the currently active VC to the standby VC on the interface.
<Sysname> system-view
[Sysname] interface gigabitethernet2/1/1
[Sysname-GigabitEthernet2/1/1] mpls l2vc switchover
mpls l2vpn
Use mpls l2vpn to enable MPLS L2VPN.
Use undo mpls l2vpn to disable MPLS L2VPN and delete all L2VPN configurations.
Syntax
mpls l2vpn
undo mpls l2vpn
Default
MPLS L2VPN is disabled.
Views
L2VPN view
Default command level
2: System level
Usage guidelines
You must use the mpls l2vpn command to enable MPLS L2VPN before configuring other MPLS L2VPN
commands except the mpls l2vpn reserve vlan command.
Examples
# Enable MPLS L2VPN.
<Sysname> system-view
[Sysname] l2vpn
[Sysname-l2vpn] mpls l2vpn
mpls l2vpn vpn-name
Use mpls l2vpn vpn-name to create a Kompella VPN and enter MPLS L2VPN view.
Use undo mpls l2vpn vpn-name to delete a VPN.
Syntax
mpls l2vpn vpn-name [ encapsulation { atm-aal5 | ethernet | fr | hdlc | ppp | vlan } [ control-word |
no-control-word ] ]
undo mpls l2vpn vpn-name
Views
System view, MPLS L2VPN view