R3303-HP HSR6800 Routers MPLS Command Reference

217
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
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]