HP 10500 SERIES Configuration Manual page 167

Hide thumbs Also See for 10500 SERIES:
Table of Contents

Advertisement

[CE1-bgp] peer 192.168.1.1 as-number 100
[CE1-bgp] quit
# Configure PE 1 to establish the EBGP peer relationship with CE 1, and the IBGP peer relationship
with PE 2.
[PE1] bgp 100
[PE1-bgp] ipv4-family vpn-instance vpn1
[PE1-bgp-vpn1] peer 192.168.1.2 as-number 65001
[PE1-bgp-vpn1] import-route direct
[PE1-bgp-vpn1] quit
[PE1-bgp] peer 3.3.3.3 as-number 100
[PE1-bgp] peer 3.3.3.3 connect-interface loopback 0
[PE1-bgp] ipv4-family vpnv4
[PE1-bgp-af-vpnv4] peer 3.3.3.3 enable
[PE1-bgp-af-vpnv4] quit
[PE1-bgp] quit
# Configure CE 2.
[CE2] bgp 65002
[CE2-bgp] peer 192.168.2.1 as-number 100
[CE2-bgp] quit
# 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
# Execute 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 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
Peer
V
AS
3.3.3.3
4
100
[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
Peer
V AS
192.168.1.2 4 65001
# Ping CE 2 on CE 1 and vice versa to test connectivity.
Peers in established state : 1
MsgRcvd
MsgSent
OutQ
3
3
Peers in established state : 1
MsgRcvd
MsgSent
4
5
159
Up/Down
State
0
00:00:11
Established
OutQ
Up/Down
State
0
00:02:13 Established
PrefRcv
0
PrefRcv
0

Advertisement

Table of Contents
loading

Table of Contents