# Configure GigabitEthernet 2/0/3 (the interface connected to PE 3), and enable LDP on the
interface.
[PE1] interface gigabitethernet 2/0/3
[PE1-GigabitEthernet2/0/3] ip address 30.1.1.1 24
[PE1-GigabitEthernet2/0/3] mpls enable
[PE1-GigabitEthernet2/0/3] mpls ldp enable
[PE1-GigabitEthernet2/0/3] quit
# Configure OSPF for LDP to create LSPs.
[PE1] ospf
[PE1-ospf-1] area 0
[PE1-ospf-1-area-0.0.0.0] network 20.1.1.0 0.0.0.255
[PE1-ospf-1-area-0.0.0.0] network 30.1.1.0 0.0.0.255
[PE1-ospf-1-area-0.0.0.0] network 1.1.1.9 0.0.0.0
[PE1-ospf-1-area-0.0.0.0] quit
[PE1-ospf-1] quit
# Create a VSI, specify the peer PEs, and establish static PWs to the peer PEs.
[PE1] vsi svc
[PE1-vsi-svc] pwsignaling static
[PE1-vsi-svc-static] peer 2.2.2.9 pw-id 3 in-label 100 out-label 100
[PE1-vsi-svc-static-2.2.2.9-3] quit
[PE1-vsi-svc-static] peer 3.3.3.9 pw-id 3 in-label 200 out-label 200
[PE1-vsi-svc-static-3.3.3.9-3] quit
[PE1-vsi-svc-static] quit
[PE1-vsi-svc] quit
# Bind the VSI to GigabitEthernet 2/0/1 (the interface connected to CE 1). This interface does
not need an IP address.
[PE1] interface gigabitethernet 2/0/1
[PE1-GigabitEthernet2/0/1] xconnect vsi svc
[PE1-GigabitEthernet2/0/1] quit
2.
Configure PE 2:
# Configure an LSR ID.
<PE2> system-view
[PE2] interface loopback 0
[PE2-LoopBack0] ip address 2.2.2.9 32
[PE2-LoopBack0] quit
[PE2] mpls lsr-id 2.2.2.9
# Enable L2VPN.
[PE2] l2vpn enable
# Enable global LDP.
[PE2] mpls ldp
[PE2-ldp] quit
# Configure GigabitEthernet 2/0/2 (the interface connected to PE 1), and enable LDP on the
interface.
[PE2] interface gigabitethernet 2/0/2
[PE2-GigabitEthernet2/0/2] ip address 20.1.1.2 24
[PE2-GigabitEthernet2/0/2] mpls enable
[PE2-GigabitEthernet2/0/2] mpls ldp enable
[PE2-GigabitEthernet2/0/2] quit
471
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