1666
C
97: MPLS L2VPN C
HAPTER
Description
Example
mpls static-l2vc destination
Syntax
View
Parameter
C
ONFIGURATION
OMMANDS
ppp: Uses PPP encapsulation.
vlan: Uses VLAN encapsulation.
control-word: Enables the control word option.
no-control-word: Disables the control word option.
Use the
command to create a Kompella VPN and enter MPLS L2VPN
mpls l2vpn
view.
Use the
undo mpls l2vpn
The encapsulation type specified here must match that of the CE interface.
Currently, only L2VPNs using ATM, PPP, FR, or HDLC encapsulation support the
control word option.
# Create Kompella VPN named vpn1 and enter MPLS L2VPN view.
<Sysname> system-view
[Sysname] mpls l2vpn vpn1 encapsulation ppp
[Sysname-mpls-l2vpn-vpn1]
# Create Kompella VPN named vpn2 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 destination destination-router-id transmit-vpn-label
transmit-label-value receive-vpn-label receive-label-value [ tunnel-policy
tunnel-policy-name ] [ control-word | no-control-word ]
undo mpls static-l2vc
Interface view
dest-router-id: Destination router ID.
transmit-label-value: Outgoing label for the VPN, namely the outgoing label for
the static level 2 VC. The value ranges from 16 to 1023.
receive-label-value: Incoming label for the VPN, namely the incoming label for the
static level 2 VC. The value ranges from 16 to 1023.
tunnel-policy-name: Tunneling policy for the VC, a string of 1 to 19 characters.
control-word: Enables the control word option.
command to delete a VPN.