“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 is configurable to run in either internal (iBGP) or external (eBGP) mode.
(switch(config)#) Create a static route towards a blackhole interface:
ip route IP-ADDR/SUBNET blackhole
(switch(config)#) Configure a BGP instance:
router bgp AS-NUM [vrf VRF]
(switch(config-router)#) Create network statements for each subnet to advertise:
network IP-ADDR/SUBNET
(switch(config-router)#) Configure a neighbor relationship with another BGP speaker:
neighbor IP-ADDR remote-as AS-NUM
(switch(config-router)#) Configure an MD5 encrypted password to secure the neighbor relationship:
neighbor IP-ADDR password <cipher|plain>text PSWD
(switch(config-router)#) Configure soft reconfiguration:
neighbor IP-ADDR soft-reconfiguration inbound
(switch#) Show commands to validate functionality:
show bgp all [summary|neighbors]