BGP Configuration
Border Gateway Protocol (BGP) is applicable to complicated large-scale networks and used to transmit routing information between ASs.
-
BGP Overview
-
The Border Gateway Protocol (BGP) advertises and maintains a large number of routes between autonomous systems (ASs).
-
Configuration Precautions for BGP
-
-
Configuring Basic BGP Functions
-
Before building a BGP network, you must configure basic BGP functions.
-
Configuring BGP Route Attributes
-
Configuring route attributes can change route selection results.
-
Using a Routing Policy to Filter the BGP Routes to Be Advertised
-
BGP is used to transmit routing information. BGP advertises only the wanted routes which match a routing policy and modifies route attributes to direct network traffic properly.
-
Using a Routing Policy to Filter the BGP Routes to Be Received
-
BGP is used to transmit routing information. BGP accepts only the wanted routes which can be filtered or applied routing policy flexibly, and modifies route attributes to direct network traffic properly.
-
Using XPL to Filter the BGP Routes to Be Advertised
-
A BGP device can use a route-filter to filter the routes to be advertised and modify route attributes to control the network traffic forwarding path.
-
Using XPL to Filter the BGP Routes to Be Received
-
A BGP device can use a route-filter to filter the routes to be received and modify route attributes to control the network traffic forwarding path.
-
Configuring BGP Route Summarization
-
Configuring BGP route summarization on a device can reduce the sizes of routing tables on the peers of the device.
-
Configuring BGP to Generate a Summary Default Route
-
You can configure BGP to generate a summary default route and then determine whether to advertise the default route to a peer by using a route policy.
-
Configuring a BGP Peer Group
-
Configuring BGP peer groups simplifies the BGP network configuration and improves the route advertisement efficiency.
-
Configuring a BGP Route Reflector
-
By configuring a BGP route reflector (RR), you can avoid fully meshed connections between multiple IBGP peers.
-
Configuring a BGP Confederation
-
On a large BGP network, configuring a BGP confederation reduces the number of IBGP connections and simplifies routing policy management, which increases the route advertisement efficiency.
-
Configuring BGP Community Attributes
-
Community attributes simplify routing policy management.
-
Configuring the BGP Large-Community Attribute
-
The Large-Community attribute can be used to flexibly apply route-policies.
-
Configuring Prefix-based BGP ORF
-
Prefix-based BGP ORF enables a device to send its peer the local prefix-based import policy so that the peer can use the policy to filter routes before sending them to the local device.
-
Adjusting the BGP Network Convergence Speed
-
You can adjust the BGP network convergence speed by adjusting BGP peer connection parameters to adapt to changes on large-scale networks.
-
Configuring a Dynamic BGP Peer Group
-
Configuring dynamic BGP peer groups reduces network maintenance workload.
-
Configuring a BGP Device to Send a Default Route to Its Peer
-
After a BGP device is configured to send a default route to its peer, the BGP device sends a default route with the local address as the next hop address to the specified peer, regardless of whether there are default routes in the local routing table, which reduces the number of routes on the network.
-
Configuring a Device to Advertise BGP Supernet Unicast Routes to BGP Peers
-
This section describes how to configure a Border Gateway Protocol (BGP) device to advertise BGP supernet unicast routes to BGP peers.
-
Configuring BGP Load Balancing
-
BGP load balancing improves network resource usage and reduces network congestion.
-
Configuring BGP LSP Load Balancing
-
Configuring BGP LSP load balancing improves network resource utilization and reduces network congestion.
-
Configuring a BGP SR LSP
-
Deploying a complete BGP SR LSP on devices in the same AS helps implement end-to-end service interworking.
-
Configuring Path MTU Auto Discovery
-
Path MTU auto discovery allows BGP to discover the smallest MTU value on a path so that BGP messages are transmitted based on the path MTU. This function improves transmission efficiency and BGP performance.
-
Configuring BGP Route Recursion to the Default Route
-
When the next hop of a BGP route is not directly reachable, you can configure BGP route recursion to the default route.
-
Configuring BGP Next Hop Recursion Based on a Route-Policy
-
Configuring BGP next hop recursion based on a route-policy prevents traffic loss if routes changes.
-
Configuring AIGP value on a Route-Policy
-
BGP prefers the route with the smallest AIGP value during BGP route selection.
-
Configuring the POPGO Function
-
After the POPGO function is configured on the egress of a BGP LSP, the egress forwards each data packet received from the LSP through the outbound interface found in the ILM based on the label information carried in the packet.
-
Configuring conversion from BGP IPv4 Unicast Routes to Labeled Routes
-
Configuring conversion from BGP IPv4 unicast routes to labeled routes can ensure that traffic is forwarded along a specified LSP.
-
Configuring BFD for BGP
-
BFD for BGP speeds up fault detection and therefore increases the route convergence speed.
-
Configuring BGP Peer Tracking
-
BGP peer tracking provides fast link or peer fault detection for BGP to speed up network convergence.
-
Configuring BGP Auto FRR
-
BGP Auto FRR, a protection measure against link faults, applies to the network topology with both primary and backup links. It can be configured for services that are quite sensitive to the packet loss and delay.
-
Configuring the BGP Next Hop Recursion Change Delayed Response
-
Configuring the BGP next hop recursion change delayed response can minimize traffic loss during route changes.
-
Setting a Specified Peer or Each Peer in a Peer Group as an Independent Update Peer-Group
-
Setting a specified peer or each peer in a peer group as an independent update peer-group prevents routes learned from the peer from being sent back to the peer.
-
Configuring a Delay in Releasing Obtained Labels in a BGP LSP FRR Switchover Scenario
-
Configuring a delay in releasing obtained labels in a BGP LSP FRR switchover scenario can prevent second-time packet loss.
-
Configuring the Route Server Function
-
This section describes how to configure the route server function. The function reduces network resource consumption onASBRs.
-
Configuring the BGP GR Helper
-
You can configure a device to function as a Graceful Restart (GR) helper to help a BGP peer with the BGP GR process.
-
Enabling GR for BGP Peers
-
After the GR capability is configured for a BGP peer, a BGP speaker can negotiate with the peer to establish a BGP session with the GR capability.
-
Configuring BGP Best-external
-
Border Gateway Protocol (BGP) Best-external can speed up route convergence if the primary link fails.
-
Configuring BGP Add-Path
-
BGP Add-Path allows a route reflector (RR) to send two or more routes with the same prefix to a specified IBGP peer. These routes can back up each other or load-balance traffic, which improves network reliability.
-
Configuring BMP
-
By configuring the BGP Monitoring Protocol (BMP), you can monitor the BGP running status and route processing records on network devices in real time.
-
Configuring BGP Route Dampening
-
BGP route dampening can be configured to suppress unstable routes.
-
Configuring Suppression on BGP Peer Flapping
-
Suppression on BGP peer flapping allows a device to delay the establishment of a BGP peer relationship that flaps continuously.
-
Configuring BGP Recursion Suppression in Case of Next Hop Flapping
-
BGP recursion suppression in case of next hop flapping prevents the system from frequently processing changes of a large number of routes that recurse to a flapping next hop, which reduces system resource consumption and CPU usage.
-
Configuring BGP-LS
-
BGP-LS provides a simple and efficient method of collecting topology information.
-
Configuring the Entropy Label Capability for a BGP LSP
-
Configuring the entropy label capability for a BGP LSP helps equalize and improve the performance of load balancing.
-
Configuring BGP RPD
-
RPD provides a new method of distributing route-policies and allows the NCE to efficiently and dynamically deploy route-policies.
-
Configuring IBGP Peers to Establish MPLS Local IFNET Tunnels
-
To carry BGP LSPs, you can configure IBGP peers to create an MPLS local IFNET tunnel.
-
Improving BGP Security
-
To improve BGP network security, you can configure BGP authentication, Resource Public Key Infrastructure (RPKI), and GTSM on the BGP network.
-
Configuring BGP Extensions
-
Configuring BGP extensions enables BGP to provide routing information for multiple routing protocols.
-
Configuring BGP Multi-Instance
-
You can configure BGP multi-instance to achieve separate route management and maintenance.
-
Maintaining BGP
-
Maintaining BGP involves resetting BGP connections and clearing BGP statistics.
-
BGP Route Selection Rules
-
-
Configuration Examples for BGP
-
This section provides BGP configuration examples.