bgp neighbor-config

BGP enabled devices connected through an established TCP connection are referred to as BGP peers or neighbors. To establish a TCP connection, BGP routers exchange open messages containing the following information: AS number, BGP version running, BGP router ID, and timer values (keepalive and holdtime). Once these values are accepted by both devices, the connection is established and the routers become neighbors. With the TCP connection established the BGP neighbors begin sharing routing information and updates. A failure in the establishment of the TCP connection indicates that the routers are not neighbors and cannot exchange routing information.

Use the (profile/device-config) instance to configure BGP neighbors.

To navigate to the BGP neighbor configuration instance, use the following commands:
<DEVICE>(config)#profile <PROFILE-NAME>
<DEVICE>(config-profile <PROFILE-NAME>)#router bgp
<DEVICE>(config-profile <PROFILE-NAME>-router-bgp)#?
<DEVICE>(config-profile <PROFILE-NAME>-router-bgp)#bgp neighbor ?
  A.B.C.D  IP address of the bgp neighbor

<DEVICE>(config-profile <PROFILE-NAME>-router-bgp)#
<DEVICE>(config-profile <PROFILE-NAME>-router-bgp)#bgp neighbor <IP>
<DEVICE>(config-profile <PROFILE-NAME>-router--bgp-neighbor-<IP>)#?
Router BGP Neighbor Mode commands:
  activate                   Enable the Address Family for this Neighbor
                             (EXPERIMENTAL)
  advertisement-interval     Minimum interval between BGP routing updates
  allowas-in                 Accept as-path with my AS present in it
                             (EXPERIMENTAL)
  attribute-unchanged        BGP attribute is propagated unchanged to this
                             neighbor (EXPERIMENTAL)
  capability                 Advertise capability to the peer
  default-originate          Originate default route to this neighbor
  description                Neighbor specific description
  disable-connected-check    One-hop away EBGP peer using loopback address
                             (EXPERIMENTAL)
  dont-capability-negotiate  Do not perform capability negotiation
                             (EXPERIMENTAL)
  ebgp-multihop              Allow EBGP neighbors not on directly connected
                             networks
  enforce-multihop           Enforce EBGP neighbors perform multihop
                             (EXPERIMENTAL)
  local-as                   Specify a local-as number (EXPERIMENTAL)
  maximum-prefix             Maximum number of prefix accept from this peer
  next-hop-self              Disable the next hop calculation for this
                             neighbor
  no                         Negate a command or set its defaults
  override-capability        Override capability negotiation result
  passive                    Don't send open messages to this neighbor
  password                   Set a password
  peer-group                 Set peer-group for this neighbor (EXPERIMENTAL)
  port                       Neighbor's BGP port (EXPERIMENTAL)
  remote-as                  Specify a BGP neighbor
  remove-private-as          Remove private AS number from outbound updates
                             (EXPERIMENTAL)
  route-server-client        Configure a neighbor as Route Server client
                             (EXPERIMENTAL)
  send-community             Send Community attribute to this neighbor
  shutdown                   Administratively shut down this neighbor
  soft-reconfiguration       Per neighbor soft reconfiguration
  strict-capability-match    Strict capability negotiation match
                             (EXPERIMENTAL)
  timers                     BGP per neighbor timers
  unsuppress-map             Route-map to selectively unsuppress suppressed
                             routes
  update-source              Source of routing updates
  use                        Set setting to use
  weight                     Set default weight for routes from this neighbor

  clrscr                     Clears the display screen
  commit                     Commit all changes made in this session
  do                         Run commands from Exec mode
  end                        End current mode and change to EXEC mode
  exit                       End current mode and down to previous mode
  help                       Description of the interactive help system
  revert                     Revert changes
  service                    Service Commands
  show                       Show running system information
  write                      Write running configuration to memory or terminal

<DEVICE>(config-profile <PROFILE-NAME>-router--bgp-neighbor-<IP>)#
The following table summarizes BGP deny/permit route map rules configuration mode commands:
Table 1. BGP-Neighbor Config Mode Commands
Command Description
activate (bgp-neighbor-config) Enables an address family for this neighbor (EXPERIMENTAL)
advertisement-interval (bgp-neighbor-config) Configures the minimum interval between two consecutive BGP router updates
allowas-in (bgp-neightbor-config) Enables re-advertisement of all prefixes containing duplicate ASNs (EXPERIMENTAL)
attribute-unchanged (bgp-neighbor-config) Enables the propagation of BGP attribute values unchanged to this neighbor BGP device (EXPERIMENTAL)
capability (bgp-neighbor-config) Enables the advertisement of capability (dynamic and ORF) to BGP peers
default-originate (bgp-neighbor-config) Enables the sending of the default route to BGP neighbors. It also allows the configuration of the default route.
description (bgp-neighbor-config) Configures a description for a BGP neighbor device
disable-connected-check (bgp-neighbor-config) Enables one-hop away EBGP peer using loop back address (EXPERIMENTAL)
dont-capability-negotiate (bgp-neighbor-config) Disables capability negotiation with BGP neighbors (EXPERIMENTAL)
ebgp-multihop (bgp-neighbor-config) Enables eBGP Multihop on this BGP neighbor, and configures the maximum number of hops that can be between eBGP neighbors not directly connected to each other.
enforce-multihop (bgp-neighbor-config) Forces EBGP neighbors to perform multi-hop checks (EXPERIMENTAL)
local-as (bgp-neighbor-config) Configures this neighbor‘s local AS number. Also enables the prepending of this AS number in route updates. (EXPERIMENTAL)
maximum-prefix (bgp-neighbor-config) Configures the maximum number of prefixes that can be received from a BGP neighbor
next-hop-self (bgp-neighbor-config) Enables next-hop calculation for this neighbor
override-capability (bgp-neighbor-config) Enables the overriding of capability negotiation results
passive (bgp-neighbor-config) Enables this BGP neighbor device (or devices using this profile) as passive
password (bgp-neighbor-config) Sets a password for this BGP neighbor device (or devices using this profile)
peer-group (bgp-neighbor-config) Sets the peer group for this BGP neighbor device (or devices using this profile) (EXPERIMENTAL)
port (bgp-neighbor-config) Configures a non-standard BGP port for this BGP neighbor (EXPERIMENTAL)
remote-as (bgp-neighbor-config) Configures the ASN for this neighbor BGP device (or devices using this profile)
remove-private-as (bgp-neighbor-config) Removes the private ASN from outbound updates (EXPERIMENTAL)
route-server-client (bgp-neighbor-config) Enables this BGP neighbor device (or devices using this profile) to act as a route server client (EXPERIMENTAL)
send-community (bgp-neighbor-config) Enables sending of the community attribute to the BGP neighbor
shutdown (bgp-neighbor-config) Shuts down this BGP neighbor device (or devices using this profile)
soft-reconfiguration (bgp-neighbor-config) Enables storing of updates for inbound soft reconfiguration
strict-capability-match (bgp-neighbor-config) Enables a strict capability match before allowing a neighbor BGP peer to open a connection (EXPERIMENTAL)
timers (bgp-neighbor-config) Configures this BGP neighbor‘s keepalive and holdtime durations
unsuppress-map (bgp-neighbor-config) Uses a route-map that selectively un suppresses routes that have been suppressed using the aggregate-address command
update-source (bgp-neighbor-config) Allows BGP sessions to use any operational interface to establish the TCP connection with this neighbor
use (bgp-neighbor-config) Configures filters for this neighbor. These filters are BGP IP ACL, IP prefix list, AS path list, and route map. Based on the filters used, updates received from this neighbor are filtered.
weight (bgp-neighbor-config) Configures a weight for all routes learned from this BGP neighbor
no (bgp-neighbor-config) Removes this BGP neighbor‘s settings, or reverts them back to default