Neighbor configuration
For each neighbor a device is going to peer with, there must be a neighbor configuration that specifies an IP address (which must be the primary IP address of interface connection to get established) and an AS number of the neighbor. For each neighbor, you can specify a set of attributes. However, in cases where a set of neighbors share the same set of attributes, it is advisable to create a peer-group.
Commands entered in BGP global configuration mode apply to the IPv4 unicast address family. Where relevant, this chapter discusses and provides IPv4-unicast-specific examples. You must first configure IPv4 unicast routing for any IPv4 routing protocol to be active.
The following neighbor configuration options are allowed under BGP global configuration mode:
device(config-bgp-router)# neighbor 10.1.1.1 ?
activate Allow exchange of route in the current family mode
advertisement-interval Minimum interval between sending BGP routing updates
allowas-in Accept as-path with my AS present in it
as-override Override matching AS-number while sending update
capability Advertise capability to the peer
default-originate Originate default route to peer
description Neighbor by description
distribute-list Apply Address Filters to neighbor
ebgp-btsh Enable EBGP TTL Security Hack Protection
ebgp-multihop Allow EBGP neighbors not on directly connected
networks
enforce-first-as Enforce the first AS for EBGP routes
filter-list Establish BGP filters
local-as Assign local-as number to neighbor
maxas-limit Impose limit on number of ASes in AS-PATH attribute
maximum-prefix Maximum number of prefix accept from this peer
next-hop-self Disable the next hop calculation for this neighbor
password Enable TCP-MD5 password protection
peer-group Assign peer-group to neighbor
prefix-list Prefix List for filtering routes
remote-as Specify a BGP neighbor
remove-private-as Remove private AS number from outbound updates
route-map Apply route map to neighbor
route-reflector-client Configure a neighbor as Route Reflector client
send-community Send community attribute to this neighbor
shutdown Administratively shut down this neighbor
soft-reconfiguration Per neighbor soft reconfiguration
timers BGP per neighbor timers
unsuppress-map Route-map to selectively unsuppress suppressed routes
update-source Source of routing updates
weight Set default weight for routes from this neighbor