R3102-R3103-HP 6600/HSR6600 Routers MPLS Command Reference Guide
213
Use undo mpls static-l2vc to delete the static VC.
Syntax
mpls static-l2vc destination destination-router-id transmit-vpn-label transmit-label-value
receive-vpn-label receive-label-value [ { control-word | ethernet | no-control-word | vlan } |
tunnel-policy tunnel-policy-name ] *
undo mpls static-l2vc
Views
Interface view
Default command level
2: System level
Parameters
destination dest-router-id: Specifies the IP address of the peer PE.
transmit-vpn-label transmit-label-value: Specifies the outgoing VC label in the range of 16 to 1023.
receive-vpn-label receive-label-value: Specifies the incoming VC label in the range of 16 to 1023.
control-word: Enables the control word function.
ethernet: Specifies the PW encapsulation type as Ethernet.
no-control-word: Disables the control word function.
vlan: Specifies the VC type as VLAN.
tunnel-policy tunnel-policy-name: Specifies a tunneling policy for the VC, a string of 1 to 19 characters.
Usage guidelines
You must configure the command on both PEs. The destination address is the IP address of the peer PE.
The outgoing label and incoming label are, respectively, the incoming label and outgoing label of the
peer.
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










