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;allow [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 Define BGP Global Properties. For a list of group-specific statements, see Define Group Properties. For a list of peer-specific statements, see Define 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
- Enable BGP
- Modify the Hold-Time Value
- Configure Graceful Restart
- Advertise an Explicit Null Label
- Configure Authentication
- Apply IPSec Security Association
- Open a Peer Connection Passively
- Configure the Local IP Address
- Configure the Multiple Exit Discriminator Metric
- Control the Aggregator Path Attribute
- Choose the Protocol Used to Determine the Next Hop
- Configure an EBGP Multihop Session
- Configure the BGP Local Preference
- Control Route Preference
- Configure Routing Table Path Selection
- Configure BGP to Select Multiple BGP Paths
- Configure a Local AS
- Remove Private AS Numbers from AS Paths
- Configure Route Reflection
- Enable Route Flap Damping
- Enable Multiprotocol BGP
- Enable Route Target Filtering
- Configure BGP Routing Policy
- Configure EBGP Peering Using IPv6 Link-local Address
- Configure IPv6 BGP Routes over IPv4 Transport
- Configure BGP to Log System Log Messages
- Describe BGP Router Configuration
- Block Non-Peer TCP Connection Attempts
- Apply BGP Export Policy to VRF Routes
- Enable Next-Hop Reachability Information
- Trace BGP Protocol Traffic