[PE2] interface loopback 0
[PE2-LoopBack0] ip address 192.3.3.3 32
[PE2-LoopBack0] quit
[PE2] mpls lsr-id 192.3.3.3
# Enable L2VPN.
[PE2] l2vpn enable
# Configure GigabitEthernet 2/0/2 (the interface connected to the P device), and enable MPLS
on the interface.
[PE2] interface gigabitethernet 2/0/2
[PE2-GigabitEthernet2/0/2] ip address 10.2.2.1 24
[PE2-GigabitEthernet2/0/2] mpls enable
[PE2-GigabitEthernet2/0/2] quit
# Configure OSPF.
[PE2] ospf
[PE2-ospf-1] area 0
[PE2-ospf-1-area-0.0.0.0] network 10.2.2.0 0.0.0.255
[PE2-ospf-1-area-0.0.0.0] network 192.3.3.3 0.0.0.0
[PE2-ospf-1-area-0.0.0.0] quit
[PE2-ospf-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 GigabitEthernet 2/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 2/0/1
[PE2-xcg-ccc-ccc] quit
[PE2-xcg-ccc] quit
5.
Configure CE 2.
<CE2> system-view
[CE2] interface gigabitethernet 2/0/1
[CE2-GigabitEthernet2/0/1] ip address 100.1.1.2 24
[CE2-GigabitEthernet2/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
10.1.1.2
# 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
PW ID/Rmt Site
In/Out Label
-
101/201
Proto
Static
443
Flag
Link ID
State
M
0
Up
Need help?
Do you have a question about the HPE FlexNetwork MSR Router Series and is the answer not in the manual?
Questions and answers