Enabling L2VPN
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 core-facing interface of the PE.
To enable L2VPN:
Step
1.
Enter system view.
2.
Enable L2VPN.
Configuring an Ethernet service instance on an
interface
When the PE is connected to a CE through a Layer 2 Ethernet interface or Layer 2 aggregate
interface, you can configure an Ethernet service instance on the interface to match packets for the
AC.
To configure an Ethernet service instance:
Step
1.
Enter system view.
2.
Enter Layer 2 Ethernet
interface view or Layer 2
aggregate interface view.
3.
Create an Ethernet service
instance and enter Ethernet
service instance view.
4.
Configure a packet match
criterion for the Ethernet
service instance.
Configuring a cross-connect
Step
1.
Enter system view.
2.
Create a cross-connect
group and enter
cross-connect group view.
Command
system-view
l2vpn enable
Command
system-view
•
Enter Layer 2 Ethernet interface
view:
interface interface-type
interface-number
•
Enter Layer 2 aggregate interface
view:
interface bridge-aggregation
interface-number
service-instance instance-id
•
encapsulation s-vid vlan-id
[ only-tagged ]
•
encapsulation { default | tagged
| untagged }
Command
system-view
xconnect-group group-name
331
Remarks
N/A
By default, L2VPN is disabled.
Remarks
N/A
N/A
By default, no Ethernet service
instances exist.
By default, no packet match
criterion is configured for the
Ethernet service instance.
Remarks
N/A
By default, no cross-connect
groups exist.