338
[PE2] interface gigabitethernet1/0/1
[PE2-GigabitEthernet1/0/1] service-instance 10
[PE2-GigabitEthernet1/0/1-srv10] encapsulation s-vid 10
[PE2-GigabitEthernet1/0/1-srv10] quit
[PE2-GigabitEthernet1/0/1] quit
# Create a cross-connect group named
ccc
, create a remote CCC connection that has
incoming label 202, outgoing label 102, and next hop 10.2.2.2, and bind Ethernet service
instance 10 on GigabitEthernet 1/0/1 to the CCC connection.
[PE2] xconnect-group ccc
[PE2-xcg-ccc] connection ccc
[PE2-xcg-ccc-ccc] ccc in-label 202 out-label 102 nexthop 10.2.2.2
[PE2-xcg-ccc-ccc] ac interface GigabitEthernet 1/0/1 service-instance 10
[PE2-xcg-ccc-ccc] quit
[PE2-xcg-ccc] quit
5.
Configure CE 2.
<CE2> system-view
[CE2] interface gigabitethernet 1/0/1
[CE2-GigabitEthernet1/0/1] port link-type trunk
[CE2-GigabitEthernet1/0/1] port trunk permit vlan 10
[CE2-GigabitEthernet1/0/1] quit
Verifying the configuration
# Display L2VPN PW information on PE 1. The output shows that a remote CCC connection
(identified by PW ID/Rmt Site "-" and Proto Static) has been established.
[PE1] display l2vpn pw
Flags: M - main, B - backup, H - hub link, S - spoke link, N - no split horizon
Total number of PWs: 1, 1 up, 0 blocked, 0 down, 0 defect
Xconnect-group Name: ccc
Peer PW ID/Rmt Site In/Out Label Proto Flag Link ID State
10.1.1.2 - 101/201 Static M 0 Up
# Display L2VPN PW information on PE 2. The output shows that a remote CCC connection has
been established.
[PE2] display l2vpn pw
Flags: M - main, B - backup, H - hub link, S - spoke link, N - no split horizon
Total number of PWs: 1, 1 up, 0 blocked, 0 down, 0 defect
Xconnect-group Name: ccc
Peer PW ID/Rmt Site In/Out Label Proto Flag Link ID State
10.2.2.2 - 202/102 Static M 0 Up
# Verify that CE 1 and CE 2 can ping each other. (Details not shown.)
Configuring LDP PW redundancy
Network requirements
Create two LDP PWs to implement PW redundancy between CE 1 and CE 2. The primary PW goes
through PE 1—PE 2. The backup PW goes through PE 1—PE 3. When the primary PW fails, CE 1
and CE 2 communicate through the backup PW.