[PE3] l2vpn enable
# Configure VSI aaa that uses LDP as the PW signaling protocol, and establish PWs to PE 1
and PE 2.
[PE3] vsi aaa
[PE3-vsi-aaa] pwsignaling ldp
[PE3-vsi-aaa-ldp] peer 1.1.1.9 pw-id 500
[PE3-vsi-aaa-ldp-1.1.1.9-500] quit
[PE3-vsi-aaa-ldp] peer 2.2.2.9 pw-id 500
[PE3-vsi-aaa-ldp-2.2.2.9-500] quit
[PE3-vsi-aaa-ldp] quit
[PE3-vsi-aaa] quit
# Create Ethernet service instance 10 on GigabitEthernet 1/0/1 to match packets with an outer
VLAN ID of 100, and bind the Ethernet service instance to VSI aaa.
[PE3] interface gigabitethernet 1/0/1
[PE3-GigabitEthernet1/0/1] service-instance 10
[PE3-GigabitEthernet1/0/1-srv10] encapsulation s-vid 100
[PE3-GigabitEthernet1/0/1-srv10] xconnect vsi aaa
Verifying the configuration
# Verify that two LDP PWs in up state have been established on PE 1.
[PE1] display l2vpn pw verbose
VSI Name: aaa
Peer: 2.2.2.9
Signaling Protocol
Link ID
In Label
MTU
PW Attributes
VCCV CC
VCCV BFD
Tunnel Group ID
Tunnel NHLFE IDs
Peer: 3.3.3.9
Signaling Protocol
Link ID
In Label
MTU
PW Attributes
VCCV CC
VCCV BFD
Tunnel Group ID
Tunnel NHLFE IDs
BGP PW configuration example
Network requirements
Configure a VSI on each PE, and establish BGP PWs between the PEs to interconnect CEs.
PW ID: 500
: LDP
: 8
PW State : Up
: 1279
Out Label: 1279
: 1500
: Main
: -
: -
: 0x260000000
: 1028
PW ID: 500
: LDP
: 9
PW State : Up
: 1278
Out Label: 1277
: 1500
: Main
: -
: -
: 0x360000001
: 1029
394