BGP Configuration Guidelines
To configure the Border Gateway Protocol (BGP), you can include the following statements. Three portions of the
bgpstatement—those in which you configure global BGP, group-specific, and peer-specific options—contain many of the same statements. The following simplified version of thebgpstatement omits these repeated statements to present a high-level, readable overview:protocols {bgp {numerous global BGP statementsgroupgroup-name{peer-asautonomous-system;typetype;[network/mask-length];numerous group-specific statements;neighboraddress{numerous peer-specific statements;}}}}For a list of hierarchy levels at which you can configure these statements, see the statement summary sections for these statements.
For a list of global BGP statements, see Defining BGP Global Properties. For a list of group-specific statements, see Defining Group Properties. For a list of peer-specific statements, see Defining Peer Properties.
Many of the global BGP, group-specific, and peer-specific statements are identical. For statements that you can configure at more than one level in the hierarchy, the more-specific statement overrides the less-specific statement. That is, a group-specific statement overrides a global BGP statement, and a peer-specific statement overrides a global BGP or group-specific statement.
This chapter describes the following tasks for configuring BGP:
- Minimum BGP Configuration
- Enabling BGP
- Modifying the Hold-Time Value
- Configuring MTU Discovery
- Configuring Graceful Restart
- Advertising an Explicit Null Label
- Configuring Authentication
- Applying IPSec Security Association
- Opening a Peer Connection Passively
- Configuring the Local IP Address
- Configuring the Multiple Exit Discriminator Metric
- Controlling the Aggregator Path Attribute
- Choosing the Protocol Used to Determine the Next Hop
- Configuring an EBGP Multihop Session
- Configuring the BGP Local Preference
- Controlling Route Preference
- Configuring Routing Table Path Selection
- Configuring BGP to Select Multiple BGP Paths
- Configuring a Local AS
- Removing Private AS Numbers from AS Paths
- Configuring Route Reflection
- Enabling Route Flap Damping
- Enabling Multiprotocol BGP
- Enabling Route Target Filtering
- Configuring BGP Routing Policy
- Configuring EBGP Peering Using IPv6 Link-local Address
- Configuring IPv6 BGP Routes over IPv4 Transport
- Configuring BGP to Log System Log Messages
- Describing BGP Router Configuration
- Blocking Non-Peer TCP Connection Attempts
- Applying BGP Export Policy to VRF Routes
- Enabling Next-Hop Reachability Information
- Tracing BGP Protocol Traffic