R3303-HP 6600/HSR6600 Routers MPLS Command Reference Guide
217
Default command level
2: System level
Parameters
vpn-name: Specifies a name for the L2VPN, a case-insensitive string of 1 to 31 characters that cannot
contain hyphens (-). The name uniquely identifies an L2VPN on a PE.
encapsulation: Specifies the VC type.
atm-aal5: Uses ATM AAL5 transparent transport encapsulation.
ethernet: Uses Ethernet encapsulation.
fr: Uses FR encapsulation.
hdlc: Uses HDLC encapsulation.
ppp: Uses PPP encapsulation.
vlan: Uses VLAN encapsulation.
control-word: Enables the control word function.
no-control-word: Disables the control word function.
Usage guidelines
The VC type specified by this command must match that of the AC link.
Only L2VPNs that use VC types of PPP, HDLC, FR DLCI, FR port mode, and ATM AAL5 transparent
transport support the control word function.
Examples
# Create a Kompella MPLS L2VPN with the VPN name of vpn1 and the VC type of PPP, and enter MPLS
L2VPN view.
<Sysname> system-view
[Sysname] mpls l2vpn vpn1 encapsulation ppp
[Sysname-mpls-l2vpn-vpn1]
# Create a Kompella MPLS L2VPN with the VPN name of vpn2 and VC type of Ethernet, and enter MPLS
L2VPN view.
<Sysname> system-view
[Sysname] mpls l2vpn vpn1 encapsulation ppp
[Sysname-mpls-l2vpn-vpn1] mpls l2vpn vpn2 encapsulation ethernet
[Sysname-mpls-l2vpn-vpn2]
mpls static-l2vc (for primary-backup SVCs)
Use mpls static-l2vc to create a primary static VC and a backup static VC on a Layer 3 interface, and
enter static-L2VC view.
Use undo mpls static-l2vc to delete the static VCs on the interface.
Syntax
mpls static-l2vc destination vcid [ { control-word | ethernet | no-control-word | vlan } | [ tunnel-policy
tunnel-policy-name ] [ backup-peer ip-address vcid [ backup-tunnel-policy tunnel-policy-name | revertive
[ wtr-time wtr-time ] ] * ] ] *
undo mpls static-l2vc










