BGP Questions
BGP Questions
BGP Questions
Introduction
This document contains frequently asked questions (FAQs) about Border Gateway
Protocol (BGP).
Configuring BGP
BGP Case Studies
Q. What does a next hop of 0.0.0.0 mean in the show ip bgp command
output?
A. A network in the BGP table with a next hop address of 0.0.0.0 means that the network
is locally originated via redistribution of Interior Gateway Protocol (IGP) into BGP, or
via a network or aggregate command in the BGP configuration.
Description
Local-AS
no-export
no-advertise
none
internet
Refer to the Configuring BGP Community Filtering section of Configuring BGP for more
information about configuring communities.
Regardless of which command you use, the community displayed in the router
configuration file and the BGP table is 30:20.
Refer to the Community Attribute section of BGP Case Studies, and Using BGP
Community Values to Control Routing Policy in Upstream Provider Network for more
information.
For example, if the subnet in the routing table is 75.75.75.0 mask 255.255.255.0, and you
configure network 75.0.0.0 under the router bgp command, and auto-summary is
enabled, BGP introduces the classfull network 75.0.0.0 mask 255.0.0.0 in the BGP table.
If these three conditions are not all met, then BGP does not install any entry in the BGP
table unless there is an exact match in the local routing table.
Note: If the AS that performs BGP does not own the complete classfull network, Cisco
recommends that you disable auto-summary using the no auto-summary command
under router bgp.
Q. How can I verify if a BGP router announces its BGP networks and
propagates them to the global BGP mesh?
A. Use these commands to check if the IP blocks are announced to the directly connected
ISP:
Note: The show ip bgp neighbors [address] advertise-routes command does not take
into account any outbound policies you may have applied. In future Cisco IOS versions
the command output will be changed to reflect the outbound policies.
In order to verify how the IP blocks get propagated to the global BGP mesh via the
directly connected ISP, log onto a route server on the Internet and look for the BGP
entries of the prefix in the route server.
Use the norandomseq keyword to solve this problem and stop the PIX from offsetting
the TCP sequence number with this command:
static (inside,DMZ-ICE) 10.0.0.0 10.0.0.0 netmask 255.0.0.0 norandomseq
Q. Does the route reflector change the next hop attribute of a reflected
prefix?
A. By default, the next hop attribute is not changed when a prefix is reflected by route
reflector. However, you can use the neighbor next-hop-self command to change the
attribute of the next hop for prefixes reflected from an eBGP peer to any route reflector
client.
Q. How can I announce a prefix conditionally to one ISP only when I lose
the connection to my primary ISP?
A. BGP advertises routes from its BGP table to external peers by default. The BGP
conditional advertisement feature provides additional control of route advertisement
depending on the existence of other prefixes in the BGP table. Normally, routes are
propagated regardless of the existence of a different path. The BGP conditional
advertisement feature uses the non-exist-map and advertise-map configuration
commands to track routes by the route prefix. If a route prefix is not present in the nonexist-map command, the route specified by the advertise-map command is announced.
Refer to the Configuring BGP Conditional Advertisement section of Configuring BGP for
more information.
Sample Configurations for Load Sharing with BGP in Single and Multihomed
Environments
How to Use HSRP to Provide Redundancy in a Multihomed BGP Network
to store a certain number of BGP routes. Cisco typically recommends a minimum of 128
MB of RAM in the router to store a complete global BGP routing table from one BGP
peer. However, it is important to understand ways to reduce memory consumption and
achieve optimal routing without the need to receive the complete Internet routing table.
Refer to Achieve Optimal Routing and Reduce BGP Memory Consumption for more
detailed information.
Q. How can I set the Multi Exit Discriminator (MED) value on prefixes
advertised to eBGP neighbors to match the IGP next hop metric?
A. The set metric-type internal route-map configuration command causes BGP to
advertise a MED that corresponds to the IGP metric associated with the next hop of the
route. This command is available in Cisco IOS Software Release 10.3 and later. Refer to
BGP Commands for more information.
A. The default BGP ConnectRetry timer is 120 seconds. Only after this time passes does
the BGP process check to see if the passive TCP session is established. If the passive TCP
session is not established, then the BGP process starts a new active TCP attempt to
connect to the remote BGP speaker. During this idle 120 seconds of the ConnectRetry
timer, the remote BGP peer can establish a BGP session to it. Presently the Cisco IOS
ConnectRetry timer cannot be changed from its default of 120 seconds.
Next Hop
10.10.13.3
10.10.13.3
When BGP tries to install the bestpath prefix into Routing Information Base (RIB) (for
example, the IP Routing table), RIB might reject the BGP route due to any of these
reasons:
Route with better administrative distance already present in IGP. For example, if a
static route already exists in IP Routing table.
Memory failure.
The number of routes in VPN routing/forwarding (VRF) exceeds the route-limit
configured under the VRF instance.
In such cases, the prefixes that are rejected for these reasons are identified by r RIB
Failure in the show ip bgp command output and are not advertised to the peers. This
feature was first made available in Cisco IOS Software Release 12.2(08.05)T.
[...]
bgp redistribute-internal
!
router eigrp 10
[...]
redistribute bgp 65345 route-map check-def
!
ip prefix-list def-route seq 5 permit 0.0.0.0/0
!
route-map check-def permit 10
match ip address prefix-list def-route