
446
[P-xcg-vpn1] quit
4.
Configure PE 2:
# Configure an LSR ID.
<PE2> system-view
[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 MPLS TE to establish an MPLS TE tunnel between P and PE 2. For more
information, see "
# Create a cross-connect group named
vpn1
, create a cross-connect named
svc
in the group,
and bind GigabitEthernet 2/0/1 to the cross-connect.
[PE2] xconnect-group vpn1
[PE2-xcg-vpn1] connection svc
[PE2-xcg-vpn1-svc] ac interface gigabitethernet 2/0/1
# Create a static PW for the cross-connect to bind the AC to the PW.
[PE2-xcg-vpn1-svc] peer 192.4.4.4 pw-id 1000 in-label 200 out-label 100
[PE2-xcg-vpn1-svc-192.4.4.4-1000] quit
[PE2-xcg-vpn1-svc] quit
[PE2-xcg-vpn1] 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 P. The output shows that two PWs have been created to form a
multi-segment PW.
[P] display l2vpn pw
Flags: M - main, B - backup, H - hub link, S - spoke link, N - no split horizon
Total number of PWs: 2, 2 up, 0 blocked, 0 down, 0 defect
Xconnect-group Name: vpn1
Peer PW ID In/Out Label Proto Flag Link ID State
192.2.2.2 1000 1279/1150 LDP M 0 Up
192.3.3.3 1000 100/200 Static M 1 Up
# Display L2VPN PW information on PE 1. The output shows that a PW has been created.
[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: vpn1
Peer PW ID In/Out Label Proto Flag Link ID State
192.4.4.4 1000 1150/1279 LDP M 1 Up
# Display L2VPN PW information on PE 2. The output shows that a PW has been created.
Summary of Contents for HPE FlexNetwork MSR Router Series
Page 10: ...viii Index 540 ...