beautypg.com

H3C Technologies H3C S10500 Series Switches User Manual

Page 167

background image

156

# Configure PE 2 to establish the EBGP peer relationship with CE 2 and the IBGP relationship with PE 1.

[PE2] bgp 100

[PE2-bgp] ipv4-family vpn-instance vpn1

[PE2-bgp-vpn1] peer 192.168.2.2 as-number 65002

[PE2-bgp-vpn1] import-route direct

[PE2-bgp-vpn1] quit

[PE2-bgp] peer 2.2.2.2 as-number 100

[PE2-bgp] peer 2.2.2.2 connect-interface loopback 0

[PE2-bgp] ipv4-family vpnv4

[PE2-bgp-af-vpnv4] peer 2.2.2.2 enable

[PE2-bgp-af-vpnv4] quit

[PE2-bgp] quit

Perform the display bgp peer command and the display bgp vpn-instance peer command on PEs. The
output shows that the BGP peer relationships have been formed between PEs and between PEs and CEs

and have reached the established state. Take PE 1 for example:

[PE1-bgp] display bgp peer

BGP local router ID : 2.2.2.2

Local AS number : 100

Total number of peers : 1 Peers in established state : 1

Peer V AS MsgRcvd MsgSent OutQ Up/Down State PrefRcv

3.3.3.3 4 100 3 3 0 00:00:11 Established 0

[PE1-bgp] display bgp vpn-instance vpn1 peer

BGP local router ID : 2.2.2.2

Local AS number : 100

Total number of peers : 1 Peers in established state : 1

Peer V AS MsgRcvd MsgSent OutQ Up/Down State PrefRcv

192.168.1.2 4 65001 4 5 0 00:02:13 Established 0

Ping CE 2 on CE 1 and vice versa to test connectivity.

[CE1] ping 192.168.2.2

PING 192.168.2.2: 56 data bytes, press CTRL_C to break

Reply from 192.168.2.2: bytes=56 Sequence=1 ttl=253 time=61 ms

Reply from 192.168.2.2: bytes=56 Sequence=2 ttl=253 time=54 ms

Reply from 192.168.2.2: bytes=56 Sequence=3 ttl=253 time=53 ms

Reply from 192.168.2.2: bytes=56 Sequence=4 ttl=253 time=57 ms

Reply from 192.168.2.2: bytes=56 Sequence=5 ttl=253 time=36 ms

--- 192.168.2.2 ping statistics ---

5 packet(s) transmitted

5 packet(s) received

0.00% packet loss

round-trip min/avg/max = 36/52/61 ms

[CE2] ping 192.168.1.2

PING 192.168.1.2: 56 data bytes, press CTRL_C to break

Reply from 192.168.1.2: bytes=56 Sequence=1 ttl=253 time=38 ms

Reply from 192.168.1.2: bytes=56 Sequence=2 ttl=253 time=61 ms

Reply from 192.168.1.2: bytes=56 Sequence=3 ttl=253 time=74 ms

Reply from 192.168.1.2: bytes=56 Sequence=4 ttl=253 time=36 ms

Reply from 192.168.1.2: bytes=56 Sequence=5 ttl=253 time=35 ms

--- 192.168.1.2 ping statistics ---