R3303-HP HSR6800 Routers MPLS Command Reference

220
If you do not specify a tunneling policy, or if you specify a nonexistent tunneling policy, the default policy
is used for the VC. The default tunneling policy selects only one tunnel in this order: LSP tunnel, GRE
tunnel, CR-LSP tunnel. For information about how to configure a tunneling policy, see MPLS Configuration
Guide.
Only L2VPNs that use encapsulation types of PPP, HDLC, FR DLCI, FR port mode and ATM AAL5
transparent transport support the control word function.
If the AC link type is Ethernet, the VC type can be Ethernet or VLAN. The device allows you to specify the
VC type only for Layer 3 Ethernet interfaces/subinterfaces and Layer 3 virtual Ethernet
interfaces/subinterfaces. When not specified, the VC type is Ethernet on Layer 3 Ethernet interfaces and
Layer 3 virtual Ethernet interfaces, and is VLAN on Layer 3 Ethernet subinterfaces and Layer 3 virtual
Ethernet subinterfaces.
Examples
# Create a static VC to the peer PE 1.1.1.1, and specify the outgoing VC label as 111, incoming VC label
as 222, and the tunneling policy as pol1.
<Sysname> system-view
[Sysname] interface gigabitethernet 2/1/1
[Sysname-GigabitEthernet2/1/1] mpls static-l2vc destination 1.1.1.1 transmit-vpn-label
111 receive-vpn-label 222 tunnel-policy pol1
mpls static-l2vc switchover
Use mpls static-l2vc switchover to switch traffic from the active VC to the standby VC manually.
Syntax
mpls static-l2vc switchover
Views
Interface view
Default command level
2: System level
Usage guidelines
This command applies only to primary and backup SVCs create by using the mpls static-l2vc command.
You can use this command to manage traffic on the network.
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 static VC and a backup static 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 gigabitethernet 2/1/1
[Sysname-GigabitEthernet2/1/1] mpls static-l2vc switchover
mtu (MPLS L2VPN view)
Use mtu to set the MTU for an MPLS L2VPN.