“The primary function of a Border Gateway Protocol (BGP) speaking system is to exchange network reachability information with
other BGP systems. This network reachability information includes information on the list of Autonomous Systems (ASes) that
reachability information traverses. This information is sufficient for constructing a graph of AS connectivity for this
reachability, from which routing loops may be pruned and, at the AS level, some policy decisions may be enforced.” – RFC 4271A
BGP can be configured to run in either internal (iBGP) or external (eBGP) mode.
Enable BGP.
switch(config)# protocol bgp
Configure a BGP instance
switch(config)# router bgp 100
Apply IP address to the VLAN interface on router 1
switch (config interface vlan 10)# ip address 10.10.10.1 /24
Apply IP address to the VLAN interface on router 2
switch (config interface vlan 10)# ip address 10.10.10.2 /24
On BGP router 1
switch(config router bgp 100)# neighbor 10.10.10.2 remote-as 100
On BGP router 2
switch(config router bgp 100)# neighbor 10.10.10.1 remote-as 100
show ip bgp summary