361
Enabling L2VPN
Perform this task to enable L2VPN on the PE.
Before you enable L2VPN, perform the following tasks:
• Configure an LSR ID for the PE with the mpls lsr-id command.
• Enable MPLS with the mpls enable command on the backbone interface of the PE.
For more information about these commands, see MPLS Command Reference.
To enable L2VPN:
1. Enter system view.
system-view
N/A
2. Enable L2VPN.
By default, L2VPN is disabled.
Configuring an AC
An AC is an Ethernet service instance on a Layer 2 Ethernet interface or Layer 2 aggregate interface.
The AC forwards packets that are received on the interface and meet the match criteria of the
Ethernet service instance to the bound VSI.
On a PE, configure an Ethernet service instance on the Layer 2 Ethernet interface or Layer 2
aggregate interface that connects to a CE to match packets for the AC.
To configure an Ethernet service instance:
1. Enter system view.
system-view
N/A
2.
interface view
aggregate interface view.
•
Enter Layer 2 Ethernet interface
view:
interface interface-type
interface-number
• Enter Layer 2 aggregate interface
view:
interface bridge-aggregation
interface-number
N/A
3. Create an Ethernet service
instance and enter Ethernet
service instance view.
service-instance
instance-id
service instance is created.
4. Configure a packet match
criterion
service instance.
• Match all incoming packets:
encapsulation default
• Match incoming
VLAN ID or no VLAN ID:
encapsulation { tagged |
untagged }
•
Match incoming packets with a
specific outer VLAN ID:
encapsulation s-vid vlan-id
[
]
By default, no packet match
criterion is configured for the
Ethernet service instance.