R2511-HP MSR Router Series MPLS Command Reference(V5)
103
Default command level
2: System level
Usage guidelines
Before executing this command, you must enable MPLS L2VPN by using the mpls l2vpn command.
Only SVC MPLS L2VPN supports Soft GRE.
To set up a remote MPLS L2VPN connection between two PEs, you must use MPLS LDP, MPLS TE, or GRE
to set up a public tunnel that carry the VC. You can use Soft GRE to replace the complicated public tunnel
configuration.
After Soft GRE is enabled on a PE, the PE does the following:
• If no public tunnel exists, or the existing public tunnel does not meet the tunnel policy requirements,
the PE uses Soft GRE to create a public tunnel.
Soft GRE encapsulates Layer 2 data packets containing VC labels with a GRE header and IP
header. The source IP address of the IP header is the local LSR ID, and the destination IP address
is the remote PE address.
• If a public tunnel exists, the PE uses the public tunnel to encapsulate packets.
Examples
# Enable Soft GRE.
<Sysname> system-view
[Sysname] l2vpn
[Sysname-l2vpn] mpls l2vpn soft-gre
mpls l2vpn vpn-name
Use mpls l2vpn vpn-name to create a Kompella VPN and enter MPLS L2VPN view.
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 encapsulation type.
atm-aal5: Uses ATM AAL5 transparent transport encapsulation.
ethernet: Uses Ethernet encapsulation.
fr: Uses FR encapsulation.










