
201
SVC supports these tunnel types: LDP LSP and CR-LSP. By default, LDP LSP tunnels are used.
After you configure SVC on a Layer 3 interface (Layer 3 Ethernet interface or VLAN interface), packets
arriving at this interface are forwarded over the VC. If the Layer 3 interface is a VLAN interface, all
packets carrying the tag of the VLAN are forwarded over the VC, no matter which Layer 2 Ethernet ports
that the packets arrive at. The device chooses a VC for a received packet according to only the VLAN tag
carried in the packet. It cannot differentiate the users and services on different Layer 2 Ethernet ports.
Configure SVC on a VLAN interface when all users connected to the VLAN interface have their packets
forwarded over the same VC.
To configure a static VC on a Layer 3 interface of a PE:
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Enter the view of the
interface connecting the
CE.
interface
interface-type interface-number
N/A
3.
Create a static VC
connection.
mpls static-l2vc destination
destination-router-id
transmit-vpn-label
transmit-label-value
receive-vpn-label
receive-label-value
[
ethernet
|
vlan
} |
tunnel-policy
tunnel-policy-name
] *
The label range for SVC is 16 to
1023, which is the label range
for static LSPs.
The
transmit-vpn-label
and
receive-vpn-label
configured on
the local PE must be the same as
the
receive-vpn-label
and
transmit-vpn-label
configured
on the peer PE.
Configuring Martini MPLS L2VPN
To configure Martini MPLS L2VPN, complete the following tasks:
1.
Configure the remote peer.
In Martini MPLS L2VPN implementation, VC labels must be exchanged between PEs. Because two
PEs may not be connected to each other directly, you must establish a remote session between the
two PEs, so that VC FECs and VC labels can be transferred through the session.
2.
Create a Martini VC, in one of the following ways:
{
Configure a Martini VC on a Layer 3 interface.
In this way, packets arriving at this interface are forwarded over the created VC. If the Layer 3
interface is a VLAN interface, all packets carrying the tag of the VLAN are forwarded over the
VC, no matter which Layer 2 Ethernet ports that the packets arrive at. The device chooses a VC
for a received packet according to only the VLAN tag carried in the packet. It cannot
differentiate the users and services on different Layer 2 Ethernet ports. Create a VC on a VLAN
interface when all users connected to the VLAN interface have their packets forwarded over
the same VC.
{
Configure a Martini VC for a service instance.
After you configure a Martini VC for a service instance applied on a Layer 2 Ethernet interface
or Layer 2 aggregate interface, the interface uses the service instance to match incoming
packets. Packets matching the service instance are forwarded over the VC. A service instance
can match all packets received on the interface, packets carrying the specified VLAN tags, all
tagged packets, or packets with no VLAN tags. Configure Martini VCs in this way when the