200
Configuring VLAN encapsulation
When you configure Martini MPLS L2VPN for a service instance, you can specify the encapsulation type
for the PE-CE interface. When you configure MPLS L2VPN other than the Martini mode, you can only use
the default encapsulation type on the PE-CE interface.
By default, a VLAN interface uses VLAN encapsulation (the VLAN interface and the CE must reside in the
same VLAN). For configuration information about VLAN interface, see
Layer 2—LAN Switching
Configuration Guide
.
Configuring a remote CCC connection
To configure a remote CCC connection, perform the following configuration on the PE and P devices:
•
On a PE, you do not need to create static LSPs (with the
static-lsp
command) for a remote CCC
connection. Instead, you only need to configure the incoming and outgoing labels by using the
ccc
interface in-label out-label
command on each PE of the remote CCC connection.
•
On each P device between the PEs, you must use the
static-lsp
command to create two static LSPs
in opposite directions to dedicatedly transmit data of the CCC connection.
Follow these guidelines to configure a remote CCC connection:
•
The label range for CCC is 16 to 1023, which is the label range for static LSPs.
•
In CCC mode, if the PE-CE interface of a PE is a VLAN interface, all packets sent from the PE to the
CE carry a VLAN tag. You must configure the PE-CE interface of the CE to permit the packets that
carry that VLAN tag.
To configure a PE:
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Create a remote
CCC connection.
ccc
ccc-connection-name
interface
interface-type interface-number
in-label
in-label-value
out-label
out-label-value
nexthop
ip-address
The
interface
interface-type
interface-number
option specifies a
PE-CE interface of the PE. By specifying
the interface, you bind the AC link of
the interface to the remote CCC
connection to be created.
To configure a P device:
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Configure a transit static LSP.
static-lsp
transit
lsp-name
incoming-interface
interface-type interface-number
in-label
in-label
nexthop
next-hop-addr
out-label
out-label
For more information
about this command,
see
MPLS Command
Reference
.
Configuring SVC MPLS L2VPN
SVC MPLS L2VPN does not use any signaling protocol to transfer L2VPN information. It uses tunnels to
transport data between PEs.