Dynamic routing protocols: BGP, OSPF, RIP
U
SER
G
UIDE
206
BGP
PROTOCOL CONFIGURATION
BGP protocol includes a TCP session between two routers. Each router belongs to a specific
Autonomous System (AS). The local AS can be configured with the command:
set bgp local-as <value>
The remote router and its AS can be configured with the commands:
set bgp neighbor <ip address> remote-as <value>
In order to specify the network which will be announced to the remote router the command is:
set bgp network <value>
which can be repeated for each network to be announced with the commands:
The most commonly used commands are:
set bgp router-id
A.B.C.D
set bgp distance bgp <1-255> <1-255> <1-255>
set bgp network A.B.C.D/M
set bgp redistribute kernel
set bgp redistribute static
set bgp redistribute connected
set bgp redistribute rip
set bgp redistribute ospf
set bgp neighbor peer remote-as <value>
set bgp neighbor peer ebgp-multihop
set bgp neighbor peer description...
set bgp neighbor peer version 4
set bgp neighbor peer next-hop-self
set bgp neighbor peer update-source <ifname|address>
set bgp neighbor peer default-originate
set bgp neighbor peer port <value>
set bgp neighbor peer send-community
set bgp neighbor peer weight <value>
set bgp neighbor peer distribute-list name [in|out]
set bgp neighbor peer prefix-list name [in|out]
set bgp neighbor peer filter-list name [in|out]
set bgp neighbor peer route-map name [in|out]
set bgp neighbor peer strict-capability-match
set bgp neighbor peer dont-capability-negotiate
set bgp neighbor peer override-capability
set bgp ip prefix-list <name> seq <NUM> (deny|permit) (A.B.C.D/M|any)
set bgp ip prefix-list <name> description <string>
Different route-maps can be defined to filter the routes that will be announced or the ones that are
received. The most common, set by the
set bgp route-map
are
: