HP MSR2000/3000/4000 Router Series MPLS Configuration Guide

167
[PE2-ldp] quit
[PE2] interface pos 5/0
[PE2-POS5/0] mpls enable
[PE2-POS5/0] mpls ldp enable
[PE2-POS5/0] quit
After the configurations, each PE and the ASBR PE in the same AS can establish an LDP neighbor
relationship. Execute the display mpls ldp peer command on the devices. The output shows that the
LDP session status is Operational.
3. Configure VPN instances on 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 ethernet 1/1
[CE1-Ethernet1/1] ip address 10.1.1.1 24
[CE1-Ethernet1/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 ethernet 1/1
[PE1-Ethernet1/1] ip binding vpn-instance vpn1
[PE1-Ethernet1/1] ip address 10.1.1.2 24
[PE1-Ethernet1/1] quit
# Configure CE 2.
<CE2> system-view
[CE2] interface ethernet 1/1
[CE2-Ethernet1/1] ip address 10.2.1.1 24
[CE2-Ethernet1/1] quit
# Configure PE 2.
[PE2] ip vpn-instance vpn1
[PE2-vpn-instance-vpn1] route-distinguisher 200:2
[PE2-vpn-instance-vpn1] vpn-target 100:1 both
[PE2-vpn-instance-vpn1] quit
[PE2] interface ethernet 1/1
[PE2-Ethernet1/1] ip binding vpn-instance vpn1
[PE2-Ethernet1/1] ip address 10.2.1.2 24
[PE2-Ethernet1/1] quit
# Configure ASBR PE 1, creating a VPN instance and binding the instance to the interface
connected with ASBR PE 2. (ASBR PE 1 considers ASBR PE 2 its CE.)
[ASBR-PE1] ip vpn-instance vpn1
[ASBR-PE1-vpn-vpn1] route-distinguisher 100:1
[ASBR-PE1-vpn-vpn1] vpn-target 100:1 both
[ASBR-PE1-vpn-vpn1] quit
[ASBR-PE1] interface pos 5/1
[ASBR-PE1-POS5/1] ip binding vpn-instance vpn1