Multicast and Routing Guide K/KA/KB.15.15

HP Switch(config)# router bgp 10
HP Switch(bgp)# bgp router-id 1.1.1.1
HP Switch(bgp)# neighbor 200.1.2.2 remote-as 20
HP Switch(bgp)# network 9.1.1.0/255.255.255.0/8
HP Switch(bgp)# exit
# Configure Switch B.
HP Switch(config)# bgp 20
HP Switch(bgp)# bgp router-id 2.2.2.2
HP Switch(bgp)# neighbor 200.1.2.1 remote-as 10
HP Switch(bgp)# neighbor 200.1.3.2 remote-as 30
HP Switch(bgp)# exit
# Configure Switch C.
HP Switch(config)# bgp 30
HP Switch(bgp)# bgp router-id 3.3.3.3
HP Switch(bgp)# neighbor 200.1.3.1 remote-as 20
HP Switch(bgp)# exit
# Display the BGP routing table on Switch B.
HP Switch(config)# show ip bgp 9.1.1.0
Local AS : 20 Local Router-id : 2.2.2.2
BGP Table Version : 3
Network : 9.1.1.0/24 Nexthop : 200.1.2.1
Peer : 200.1.2.1 Origin : igp
Metric : 0 Local Pref :
Weight : 0 Calc. Local Pref : 100
Valid : Yes Type : external
Stale : No
Best : Yes (Only Route Available)
AS-Path : 100
Communities :
Switch B advertised routes to Switch C in AS 30.
# Display the routing table on Switch C.
HP Switch(config)# show ip bgp
Local AS : 30
Local Router-id : 3.3.3.3
BGP Table Version : 1
Status codes: * - valid, > - best, i - internal, e - external, s - stale
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Nexthop Metric LocalPref Weight AsPath
-------------------------------------------------------
*>i 9.1.1.0/24 200.1.3.1 0 100 10i
Switch C learned route 9.1.1.0/24 from Switch B.
BGP configuration examples 321