H3C Technologies H3C S10500 Series Switches User Manual
Page 291

280
Issue the display bgp vpnv4 vpn-instance peer command on the PEs. The output shows that BGP peer
relationships have been established between the PEs and CEs, and have reached the Established state.
Take the BGP peer relationship between PE 1 and CE 1 as an example:
[PE1] display bgp vpnv4 vpn-instance vpn1 peer
BGP local router ID : 1.1.1.9
Local AS number : 100
Total number of peers : 1 Peers in established state : 1
Peer AS MsgRcvd MsgSent OutQ PrefRcv Up/Down State
10.1.1.1 100 26 21 0 2 00:11:08 Established
5.
Configure an MP-iBGP peer relationship between PEs
# On PE 1, configure PE 2 as the MP-iBGP peer, and configure a routing policy for the routes received
from PE 2, changing the next hop address of the routes as the loopback interface address of PE 2.
[PE1] route-policy pe-ibgp permit node 0
[PE1-route-policy] apply ip-address next-hop 3.3.3.9
[PE1-route-policy] quit
[PE1] bgp 100
[PE1-bgp] peer 3.3.3.9 as-number 100
[PE1-bgp] peer 3.3.3.9 connect-interface loopback 0
[PE1-bgp] ipv4-family vpnv4
[PE1-bgp-af-vpnv4] peer 3.3.3.9 route-policy pe-ibgp import
[PE1-bgp-af-vpnv4] peer 3.3.3.9 enable
[PE1-bgp-af-vpnv4] quit
[PE1-bgp] quit
# On PE 2, configure PE 1 as the MP-iBGP peer, and configure a routing policy for the routes received
from PE 1, changing the next hop address of the routes as the loopback interface address of PE 1.
[PE2] route-policy pe-ibgp permit node 0
[PE2-route-policy] apply ip-address next-hop 1.1.1.9
[PE2-route-policy] quit
[PE2] bgp 100
[PE2-bgp] peer 1.1.1.9 as-number 100
[PE2-bgp] peer 1.1.1.9 connect-interface loopback 0
[PE2-bgp] ipv4-family vpnv4
[PE2-bgp-af-vpnv4] peer 1.1.1.9 route-policy pe-ibgp import
[PE2-bgp-af-vpnv4] peer 1.1.1.9 enable
[PE2-bgp-af-vpnv4] quit
[PE2-bgp] quit
Issue the display bgp peer command or the display bgp vpnv4 all peer command on the PEs. The output
shows that a BGP peer relationship has been established between the PEs, and has reached the
Established state. Take PE 1 as an example:
[PE1] display bgp peer
BGP local router ID : 1.1.1.9
Local AS number : 100
Total number of peers : 1 Peers in established state : 1