R3303-HP HSR6800 Routers MPLS Configuration Guide
430
[ASBR-PE2-POS5/1/1] mpls
[ASBR-PE2-POS5/1/1] mpls ldp
[ASBR-PE2-POS5/1/1] quit
# Configure basic MPLS on PE 2 and enable MPLS LDP for both PE 2 and the interface connected
to ASBR-PE 2.
<PE2> system-view
[PE2] mpls lsr-id 4.4.4.9
[PE2] mpls
[PE2-mpls] quit
[PE2] mpls ldp
[PE2-mpls-ldp] quit
[PE2] interface pos 5/1/1
[PE2-POS5/1/1] mpls
[PE2-POS5/1/1] mpls ldp
[PE2-POS5/1/1] quit
After the configurations, each PE and the ASBR PE in the same AS can establish the LDP neighbor
relationship. Execute the display mpls ldp session command on the routers. The output shows that
the session status is Operational.
3. Configure a VPN instance on the PEs:
For the same VPN, the route targets for the VPN instance on the PE must match those for the VPN
instance on the ASBR-PE in the same AS. This is not required for PEs in different ASs.
# Configure CE 1.
<CE1> system-view
[CE1] interface gigabitethernet 2/1/1
[CE1-GigabitEthernet2/1/1] ipv6 address 2001:1::1 96
[CE1-GigabitEthernet2/1/1] quit
# Configure PE 1.
[PE1] ip vpn-instance vpn1
[PE1-vpn-instance-vpn1] route-distinguisher 100:1
[PE1-vpn-instance-vpn1] vpn-target 100:1 both
[PE1-vpn-instance-vpn1] quit
[PE1] interface gigabitethernet 2/1/1
[PE1-GigabitEthernet2/1/1] ip binding vpn-instance vpn1
[PE1-GigabitEthernet2/1/1] ipv6 address 2001:1::2 96
[PE1-GigabitEthernet2/1/1] quit
# Configure CE 2.
<CE2> system-view
[CE2] interface gigabitethernet 2/1/1
[CE2-GigabitEthernet2/1/1] ipv6 address 2001:2::1 96
[CE2-GigabitEthernet2/1/1] quit
# Configure PE 2.
[PE2] ip vpn-instance vpn1
[PE2-vpn-instance-vpn1] route-distinguisher 200:1
[PE2-vpn-instance-vpn1] vpn-target 100:1 both
[PE2-vpn-instance-vpn1] quit
[PE2] interface gigabitethernet 2/1/1
[PE2-GigabitEthernet2/1/1] ip binding vpn-instance vpn1