Professional Documents
Culture Documents
7. What is the order of preference of attributes when applied to one neighbour in BGP?
The order of preference varies based on whether the attributes are applied for
inbound updates or outbound updates.
For inbound updates the order of preference is:
1. route-map
2. filter-list
3. prefix-list, distribute-list
For outbound updates the order of preference is:
1. filter-list
2. route-map | unsuppress-map
3. advertise-map (conditional-advertisement)
4. prefix-list|distribute-list
5. ORF prefix-list (a prefix-list the neighbor sends us)
8. What does a next-hop of 0.0.0.0 mean in the show IP BGP command output?
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.
9. What are the well-known communities of the BGP community attribute?
The community attribute is a transitive, optional attribute designed to group
destinations in a certain community and apply certain policies (such as accept,
prefer, or redistribute). This table shows the well-known BGP communities.
Community Description
10. How does BGP behave differently with auto-summary enabled or disabled?
11. What formats can I use to configure the BGP community attribute?
In Cisco IOS® Software Release 12.0 and later, you can configure communities in
three different formats called decimal, hexadecimal, and AA:NN. By default, Cisco IOS
uses the older decimal format. In order to configure and display in AA:NN, where the
first part is the AS number and the second part is a 2-byte number, issue the ip bgp-
community new-format global configuration command.
13. Is there any special configuration needed on PIX/ASA to allow BGP sessions
through it? - Yes
14. What is an autonomous system number (ASN) and how do I obtain one?
AS numbers are globally unique numbers that are used to identify ASes, and which
enable an AS to exchange exterior routing information between neighboring ASes. An
AS is a connected group of IP networks that adhere to a single and clearly defined
routing policy.
There are a limited number of available AS numbers. Therefore, it is important to
determine which sites require unique AS numbers and which do not. Sites that do not
require a unique AS number should use one or more of the AS numbers reserved for
private use, which are in the range from 64512 to 65535.
24. How much memory should I have in my router to receive the complete BGP
routing table from my ISP?
The amount of memory required to store BGP routes depends on many factors, such
as the router, the number of alternate paths available, route dampening, community,
the number of maximum paths configured, BGP attributes, and VPN configurations.
Without knowledge of these parameters it is difficult to calculate the amount of
memory required to store a certain number of BGP routes. Cisco typically
recommends a minimum of 512 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.
25. What are the benefits of configuring BGP peer groups?
The major benefit of specifying a BGP peer group is that it reduces the amount of
system resources (CPU and memory) used in an update generation. It also simplifies
BGP configuration since it allows the routing table to be checked only once, and
updates to be replicated to all other in-sync peer group members. This can
significantly reduce the load, which depends on the number of peer group members,
the number of prefixes in the table, and the number of prefixes advertised. Cisco
recommends that you group together peers with identical outbound announcement
policies.
26. Why do I see the same route twice from the same peer in BGP?
Two entries are seen due to soft-reconfiguration configured. Both the unmodified
path and the modified path, which depends on the inbound policy, if permitted, are
stored in the path table for the prefix.
27. What is synchronization, and how does it influence BGP routes installed in the
IP routing table?
If your AS passes traffic from another AS to a third AS, BGP should not advertise a
route before all routers in your AS learn about the route via IGP. BGP waits until IGP
propagates the route within the AS and then advertises it to external peers. A BGP
router with synchronization enabled does not install iBGP learned routes into its
routing table if it is not able to validate those routes in its IGP. Issue the no
synchronization command under router bgp in order to disable synchronization.
This prevents BGP from validating iBGP routes in IGP.
28. How do I know which Cisco IOS software release supports a particular BGP
feature?
Use Software Research ( registered customers only) in order to quickly find which
Cisco IOS software release supports your feature.
29. How can I set the Multi Exit Discriminator (MED) value on prefixes advertised
to external BGP (eBGP) neighbours to match the Interior Gateway Protocol (IGP)
next hop metric?
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.
30. What is the default BGP ConnectRetry timer, and is it possible to tune the BGP
ConnectRetry timer?
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.
31. What does r RIB-Failure mean in the show ipbgp command output?
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 advertised to the peers. This
feature was first made available in Cisco IOS Software Release 12.2(08.05)T.
32. How can I redistribute internal BGP (iBGP) learned default-route (0.0.0.0/0)
route into EIGRP/OSPF/IS-IS?
The redistribution of iBGP routes into Interior Gateway Protocol (IGP)—Enhanced
Interior Gateway Routing Protocol/Open Shortest Path First/Intermediate System-to-
Intermediate System (EIGRP/OSPF/IS-IS)—can cause routing loops within the
Autonomous System, which is not recommended. By default, iBGP redistribution into
IGP is disabled. Issue the bgp redistribute-internal command in order to enable
redistribution of iBGP routes into IGP. Precautions must be taken to redistribute
specific routes using route-maps into IGP. A sample configuration for redistributing a
iBGP learned default route 0.0.0.0/0 into EIGRP is shown in this output. Configurations
for OSPF/IS-IS are similar.
33. How can I filter all IP routes advertised to a BGP neighbour except the default
route 0.0.0.0/0?
The specific routes can be filtered if you use inbound filter-list, distribute-list, prefix-
list and route-map all at the same time for the same bgp neighbor. This is the order of
operation:
1. Filter-list
2. Router-map
3. Distribute-list (or) prefix-list
no auto-summary
The router stops to advert the route but it still sends the other most specific routes.
38. Why are there no statistic results when I use the debug bfd events and debug
bfd packets commands?
It is the normal behaviour, as bfd hellos are sent in sub minimal seconds and in case
you run debugs for that, the router cannot handle. So the bfd messages are seen in
debug only when flaps happens. This is the purpose of the debug bfd command:
debug bfd events
This command enables the logging of BFD events for all the currently configured BFD
sessions. It captures BFD events like session state change, session configuration
change triggered by local CLI or by remote end.
debug bfd packets
This command enables the logging of BFD packets for all the currently configured
BFD sessions. It only captures BFD hello packets that are exchanged when there are
bfd configuration changes like session state change happens. Normal BFD packets
are not captured by this command.
0: reserved.
1-64.495: public AS numbers.
64.496 – 64.511 – reserved to use in documentation.
64.512 – 65.534 – private AS numbers.
65.535 – reserved.
46. BGP Route selection criteria?
BGP supports a wide variety of Path Attributes. BGP use these path attributes to examine the
competing BGP paths (routes) in ; BGP table to choose the best path(route).
1. Next Hop - It lists the next-hop IP address used to reach a prefix. If Next hop is reachable?
If no route to reach Next Hop, router cannot use this route.
2. Weight - It is a numeric value set by a router when receiving updates to influence the route
for a prefix. It is not advertised to any BGP peers. Bigger is preferred
3. Local Preference - It is a numeric value set and communicated within a single AS for the
purpose of choosing best route for all routers in that AS to reach a certain network. Bigger is
preferred
4. Locally injected routes - Locally injected routes (routes injected using network command)
are better than iBGP/eBGP learned.
5. AS Path - It is the number of ASNs in the AS Path. Smaller is preferred.
6. Origin - Preferred I over E & E over ?. It implies that the route was injected into BGP
as I (IGP), E (EGP) or ? (incomplete information).
7. Multi-Exit Discriminator (MED) - Allows an AS to tell a neighboring AS the best path to
forward packets into the first AS. Smaller is preferred.
8. Neighbor type - eBGP is preferred over iBGP.
9. IGP metric ; - Route with nearest IGP neighbor (lowest IGP metric) is preferred.
10. eBGP route - Oldest (longest known) route is preferred.
11. Neighbor Router ID - Lowest is preferred.
12. Neighbor IP address - Lowest is preferred.
Trick to Remember N ; WLLA ; OMNI
47. Does the router have to be restarted after a new BGP Neighbor Maximum
Prefix is configured?
restart-interval—An optional Time interval (in minutes) that a peering session is reestablished.
The range is from 1 to 65535 minutes. warning-only—(optional) Allows the router to generate
a log message when the Maximum-Prefix limit is exceeded, instead of terminating the
peering session.
48. Is there a command to check the advertised routes along with the prepend of
the AS-paths?
49. How does neighbour soft-reconfiguration inbound command function?
Changes in BGP policies require the BGP session to be cleared. Clearing has a large
negative impact on network operations. Soft reconfiguration enables you to generate
inbound updates from a neighbor, change and activate BGP policies without clearing
the BGP session.
In order to perform inbound soft reconfiguration, the BGP speaker must store all
received route updates, regardless of the current inbound policy. When inbound soft
reconfiguration is enabled, the stored updates are processed by the new policy
configuration to create new inbound updates.
50. What is the difference between when a route is injected in BGP via
redistributing command or a network command?
When you use the redistribution of IGP into BGP to advertise the route, then there is no need to
specify the network statement for all the subnets individually. Also when the route is obtained from
any other routing protocols into BGP table by redistribution, the Origin attribute is Incomplete (?) and
when you specify the network command then it is Internal/IGP (i). During the route selection, the
lowest origin code is preferred (IGP<EGP<Incomplete).
51. How do I verify Layer 4 forwarding summary information?
In order to view the summary information on Layer 4 forwarding, use the show mls cef
summary command.
52. What are IGPs and EGPs and why are they different?
Routing protocols that route between autonomous systems or routing domains are referred to
as Exterior Gateway Protocols (EGPs). Whereas IGPs discover paths between
networks, EGPs discover paths between autonomous systems.
53. Name several path attributes and their function.
Next hop: contains the IP address of the router where packets for the destination prefix
should go to
AS path: loop detection, best path selection, to apply filters/policy
Local preference: best path selection / to communicate preference to other routers
within the AS
Multi exit discriminator (MED): first tie breaker for path selection, originally to
select one path when several are available from the same neighbor AS but now often to
select the best path between several paths with the same AS path length, regardless of
whether they were learned from the same neighbor AS
Origin: shows where information in BGP came from (IGP, EGP or unknown), no
real/official use but can be used for traffic engineering
Community: one or more 32-bit values with user-defined meanings
Atomic aggregate: indicates that a router has aggregated several routes into a larger
block
Aggregator: indicates where an aggregate route was created
54. Why is there a problem with iBGP in large networks? How can this problem be
solved?
There must be a full mesh of iBGP sessions, in other words: each BGP router within an
AS must have iBGP sessions with all other BGP routers in the AS. By requiring that
all information in iBGP is learned directly from the router that learned the information
over eBGP, there can't be any loops in iBGP. The full mesh requirement can be solved
using either route reflectors or confederations.
In a confederation, the AS is split into a number of sub-ASes, so the iBGP full mesh
is done within each sub-AS and a modified version of eBGP is used between sub-
ASes. To the outside, the confederation behaves like a single AS.
55. Name BGP path attributes to control incoming and outgoing traffic
56. My BGP is showing 0.0.0.0 as router-id; what could be the po-*ssible reason?
57. If my BGP neighbour is stuck in an idle or active state, what should I do?
58. Explain BGP recursive lookup and site of origin (SoO).
59. What do you understand by BGP split-horizon rule?
60. Describe BGP communities. Name well-known communities.
61. Can I use BGP instead of any IGP?
62. Types of a BGP routing table?
63. What is route reflector and why it is required?
64. What is no-synchronization rule?
65. What are Default BGP timers?
66. In Multihoming scenario, if the primary link gets fail, after how long traffic will be
shifted to the secondary link?
67. BGP Graceful Restart, NSR and NSF?
68. How to use BGP as PE-CE backdoor link?
69. What is the advantage of using BGP AS Prepend?
70. What is cluster id in BGP?
71. What is the meaning of update-source loopback?
72. Can we use local preference outside the autonomous system?
73. What is confederation?
74. What is Route Reflector in BGP? Why is it required?
75. What will the BGP first check to see if a prefix is accessible?
76. What are the two methods for reducing the number of IBGP connection in a
network?
77. What makes a neighbour internal BGP (iBGP)?
78. What the command “neighbour update-source” do?
79. Explain the term RIB in BGP?
80. Two BGP peers connected through a routed firewall are unable to establish a
peering relationship. What could be the most likely cause?
81. What is the order of preference of attributes (route-map, filter-list,prefix-list,
distribute-list ) when some or all are applied to one neighbour in BGP? Kindly share
for inbound updates?
82. What is the order of preference of attributes (route-map, filter-list,prefix-list,
distribute-list ) when some or all are applied to one neighbour in BGP? Kindly share
for inbound updates?
83. How can I verify if a BGP router announces its BGP networks and propagates them?
84. What is the difference between always-compare-med and deterministic-med?
85. Does the route reflector change the next-hop attribute of a reflected prefix?
86. How can I announce a prefix conditionally to one ISP only when I lose the connection
to my primary ISP?
87. How much of minimal RAM is required to learn complete BGP routing table from one
BGP peer?
88. What are the benefits of configuring BGP peer groups?
89. What is the default BGP ConnectRetry timer
90. What does r RIB-Failure mean in the show ipbgp command output?
91. How can I filter all IP routes advertised to a BGP neighbour except the default route
0.0.0.0/0?
92. What is the version of BGP that first supported CIDR?
93. In the global routing table, can the same AS number shows up more than once in a
path?
94. Can I run two BGP process on a single router?
95. What is the cost of external and internal BGP routes?
96. Which parameters and attributes have to be equal before MED is compared to select
the best path?
97. How do we enable community propagation?
98. What is the purpose of route dampening?
99. In general which routes will affect by route dampening? eBGP or iBGP?
100. What is the default value of MED?
https://www.cisco.com/c/en/us/support/docs/ip/border-gateway-protocol-bgp/5816-
bgpfaq-5816.html#:~:text=for%20more%20information.-,What%20is%20the%20order
%20of%20preference%20of%20attributes%20when%20some,route%2Dmap