Setup Guide

Example-Conguring BGP routing between peers
The following example show how BGP is congured between two peers.
Figure 23. BGP topology with two AS
To support your own IP addresses, interfaces, names, and so on, you can copy and paste from these examples to your CLI. Be sure that you
make the necessary changes.
Example-Conguring BGP routing between peers
Example of enabling BGP in Router A
Following is an example to enable BGP conguration in the router A.
RouterA# configure terminal
RouterA(conf)# router bgp 40000
RouterA(conf-router_bgp)# bgp router-id 10.1.1.99
RouterA(conf-router_bgp)# timers bgp 80 130
RouterA(conf-router_bgp)# neighbor 192.168.1.1 remote-as 45000
RouterA(conf-router_bgp)# exit
RouterA(conf)#
The neighbors congured under CONFIGURATION-ROUTER-BGP mode and are dened using the neighbor remote-as command
exchange only IPv4 unicast address prexes.
Example of enabling BGP in Router B
Following is an example to enable BGP conguration in the router B.
RouterB# configure terminal
RouterB(conf)# router bgp 45000
RouterB(conf-router_bgp)# bgp router-id 172.17.1.99
RouterB(conf-router_bgp)# timers bgp 70 120
RouterB(conf-router_bgp)# neighbor 192.168.1.2 remote-as 40000
RouterB(conf-router_bgp)# exit
RouterB(conf)#
The show ip bgp summary displays BGP conguration. Following is the sample output for show ip bgp summary command for
router A.
RouterA#show ip bgp summary
BGP router identifier 10.1.1.99, local 40000
BGP local RIB : Routes to be Added 0, Replaced 0, Withdrawn 0
1 neighbor(s) using 40960 bytes of memory
Neighbor AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/Pfx
192.168.1.1 45000 10 20 0 0 0 00:06:11 0
Border Gateway Protocol (BGP)
209