R2511-HP MSR Router Series MPLS Configuration Guide(V5)

432
# Configure the PE-agg.
[PEagg] interface pos 5/1
[PEagg-Pos5/1] mpls
[PEagg-Pos5/1] mpls ldp
[PEagg-Pos5/1] quit
# Configure PE 2.
[PE2] mpls lsr-id 4.4.4.9
[PE2] mpls
[PE2-mpls] lsp-trigger all
[PE2-mpls] quit
[PE2] mpls ldp
[PE2-mpls-ldp] quit
[PE2] interface pos 5/0
[PE2-Pos5/0] mpls
[PE2-Pos5/0] mpls ldp
[PE2-Pos5/0] quit
c. On PE-agg and PE 2, create VPN instance VPN1 and bind the VPN instance with the interface
for connecting the corresponding CE:
# Configure PE-agg.
[PEagg] ip vpn-instance VPN1
[PEagg-vpn-instance-VPN1] route-distinguisher 200:1
[PEagg-vpn-instance-VPN1] vpn-target 111:1 both
[PEagg-vpn-instance-VPN1] quit
[PEagg] interface ve-l3vpn-access 1
[PEagg-VE-L3VPN-Access1] ip binding vpn-instance VPN1
[PEagg-VE-L3VPN-Access1] ip address 100.1.1.2 24
# Configure PE 2.
[PE2] ip vpn-instance VPN1
[PE2-vpn-instance-VPN1] route-distinguisher 200:1
[PE2-vpn-instance-VPN1] vpn-target 111: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 100.2.1.1 24
[PE2-Ethernet1/1] quit
d. Establish an EBGP peer relationship between CE 1 and PE-agg, and between CE 2 and PE 2
to redistribute VPN routes:
# Configure CE 1, and specify its BGP peer as PE-agg.
<CE1> system-view
[CE1] bgp 65010
[CE1-bgp] peer 100.1.1.2 as-number 100
[CE1-bgp] import-route direct
[CE1-bgp] quit
# Configure PE-agg, and specify its BGP peer as CE 1.
[PEagg] bgp 100
[PEagg-bgp] ipv4-family vpn-instance VPN1
[PEagg-bgp-VPN1] peer 100.1.1.1 as-number 65010