1.0 Layer 3 Technologies
Administrative Distance & RIB Practice Questions
AD tie-breaking, RIB installation rules, and prefix-list/route-map matching logic.
All 24 Administrative Distance & RIB questions in this set
Answers and explanations appear when you work through the set above.
For the same prefix, a router has a valid eBGP path and a valid OSPF intra-area path, both with default distances. Which one is installed?
- OSPF wins because intra-area paths take precedence over an eBGP path with default AD 20
- The eBGP path wins with AD 20 versus OSPF AD 110
- Both are installed as equal-cost paths
- The path is chosen by whichever protocol converged first
A router has a static route and a learned OSPF route to the same destination network, and the static route was configured without an explicit distance. Which wins?
- The OSPF route, because static routes always defer to any dynamic protocol
- The static route, with default AD 1 versus OSPF AD 110
- Neither is installed until the administrator manually breaks the tie
- The one with the shorter AS path
A route to 10.5.0.0/16 is marked best inside the BGP table, but `show ip route` shows an OSPF route installed for that same prefix instead. What is the most likely explanation?
- BGP best-path selection failed, because a route marked best in BGP must be installed ahead of any IGP path
- OSPF administrative distance always overrides BGP by design, regardless of iBGP or eBGP
- BGP best-path selection is internal; a lower-AD source can win the RIB for the same prefix
- BGP routes learned over an eBGP session are never installed in the RIB
For the same destination, a router holds a valid external EIGRP path and a valid iBGP path, both at default distance. Which is installed in the RIB?
- The iBGP path wins because distance 200 is preferred over external EIGRP distance 170
- The external EIGRP path, because its default distance of 170 beats iBGP's default of 200
- Both, because EIGRP external and iBGP routes are treated as equal-cost by default
- Whichever route has fewer AS-path hops
A route map used to filter redistributed routes has only one sequence: `permit 10` matching `ip address prefix-list PL-CORE`. A candidate route fails to match PL-CORE. What happens to that route?
- It is permitted anyway, because sequence 10 is a permit statement
- Implicit deny rejects a route that matches no sequence
- It is automatically re-evaluated against the running routing table
- It is permitted but none of its attributes are modified
A single route-map sequence contains two separate match statements: `match ip address prefix-list LIST-A LIST-B` and `match tag 40`. What must a candidate route satisfy to match this sequence?
- Both prefix lists must match, and the route must also carry tag 40
- Either LIST-A or LIST-B, AND tag 40
- It only needs to satisfy any one of the three conditions
- Only the first match statement in the sequence is evaluated
R3 has a route to 172.20.0.0/16 in its BGP table, but that route never reaches the RIB because a lower-AD IGP entry for the exact same prefix already exists. R3 is also configured to redistribute BGP into OSPF. What should happen to this prefix?
- BGP best-path status makes it eligible despite the lower-AD IGP route in the RIB
- It is not redistributed from BGP because BGP did not install the route in the RIB
- Both the BGP and IGP paths are redistributed as equal-cost OSPF externals
- It is redistributed only when BGP synchronization is turned on
Given `ip prefix-list PL10 permit 10.1.1.0/24` with no `ge` or `le` keywords, does the exact route 10.1.1.0/24 match this entry?
- No, because prefix lists with no ge/le only match more specific subnets
- Yes, without ge/le the entry requires the exact network and prefix length
- It depends entirely on which routing protocol originated the route
- No, because route maps cannot reference prefix lists directly
Given `ip prefix-list PLDEFAULT permit 0.0.0.0/0`, does this entry match the candidate route 192.0.2.0/24?
- Yes, because 0.0.0.0/0 without ge/le is treated as matching everything
- No, without ge/le it matches the default route itself
- Yes, but only if the route arrived over an eBGP session
- It depends on whether the router has synchronization enabled
Given `ip prefix-list PLALL permit 0.0.0.0/0 le 32`, does the candidate route 198.51.100.0/27 match?
- No, because le 32 only extends matching to host routes, not to /27 networks
- Yes, le 32 permits all IPv4 prefix lengths, including this /27
- No, prefix lists cannot use ge/le with a /0 base network
- Only if a route map also references this prefix list
Given `ip prefix-list PLRANGE permit 192.168.0.0/20 ge 24 le 28`, does the candidate route 192.168.7.0/24 match?
- No, ge 24 excludes /24 because the lower length bound is exclusive
- Yes, it is inside the /20 and /24 is within the /24 to /28 range
- No, ge and le cannot be combined on the same prefix-list line
- Yes, but only for routes learned via EIGRP
Given `ip prefix-list PLRANGE permit 192.168.0.0/20 ge 24 le 28`, does the candidate route 192.168.8.0/29 match?
- Yes, because the base network 192.168.0.0/20 is present regardless of mask length
- No, /29 exceeds the le 28 upper bound
- Yes, because /29 masks are always treated as host routes and automatically permitted
- The line is invalid, so nothing can match it
Given `ip prefix-list PLWIDE permit 172.16.0.0/12 ge 24`, does the candidate route 172.16.64.0/18 match?
- The line is invalid because ge is used without a matching le
- Yes, because the base network 172.16.0.0/12 always matches every subordinate prefix
- No, /18 is shorter than the ge 24 minimum
- Yes, but only if the route also matches an access list
R2 redistributes OSPF into EIGRP with a route map permitting only tagged routes, but no redistributed prefixes ever appear in the EIGRP topology table, even though the route map and redistribute command both look correct. What should be checked first?
- Whether redistribution has an EIGRP seed metric or default-metric
- Whether OSPF requires a virtual link to carry external route metrics
- Whether a BGP community string was applied by mistake
- Whether a static default route exists on R2
Two routers each redistribute in opposite directions between OSPF and EIGRP: R1 redistributes OSPF into EIGRP, and R2 (elsewhere in the network) redistributes EIGRP into OSPF. You want to guarantee that a route originally learned from OSPF at R1 never loops back into OSPF at R2. Which design is most deterministic?
- Increase OSPF hello and dead timers so returning routes expire before they can be redistributed back into OSPF
- Tag routes at the first redistribution and deny that tag at the return boundary
- Disable EIGRP split horizon on every interface in the topology
- Assign new OSPF router IDs on both boundary routers
R1 redistributes OSPF routes into EIGRP. Later, a different router downstream redistributes EIGRP into BGP. Can you assume the original OSPF prefixes are now treated in BGP exactly as if they had been redistributed straight from OSPF into BGP?
- Yes, each protocol preserves the original OSPF route type and metric so BGP receives identical attributes through either path
- No, each redistribution uses its current source routes and the metrics and tags left by earlier redistribution
- Yes, but only if both routers use the same autonomous system number
- No, because BGP can never accept routes that originated as OSPF
A route-map sequence used for PBR reads `route-map PBR-MAP deny 10` and matches source subnet 10.10.10.0/24 with a `set ip next-hop` clause attached. What happens to packets sourced from that subnet?
- They are dropped outright by the deny action
- They bypass PBR set clauses and use the normal routing table
- They are policy-routed using the configured next hop, since the set clause still applies
- They are policy-routed only when the normal route to the destination is down
An engineer wants PBR to affect traffic that the router itself generates, such as locally sourced pings or Telnet sessions, not just transit traffic. Which feature accomplishes this?
- Apply an inbound ip policy route-map on each interface, including interfaces that the locally generated traffic exits
- Configure a global local policy route map
- Adding a distribute list under the routing protocol process
- Applying a control-plane service policy
An EIGRP interface summary is configured, and all of the component subnets covered by that summary are up and present in the topology table. Why does a discard route to Null0 appear locally on the summarizing router?
- To send every destination covered by the summary through the default route, even when a component route exists
- To discard traffic within the summary that has no more-specific route, preventing loops
- To trigger an EIGRP query for every component prefix on every update
- To convert the summary from an internal route into an external EIGRP route
A router learns the same destination prefix through a static route pointing at a next hop, and also through OSPF, and the static route was configured with an explicit distance of 200 (a floating static). Which route wins?
- The static wins because specifying an explicit next hop overrides the configured administrative distance
- OSPF wins at AD 110; the AD 200 static is a backup
- Both routes are installed and load-balanced
- Whichever route was configured most recently
An OSPF-learned route exists in the LSDB, but a directly connected interface that is not enabled for OSPF covers that exact same prefix and mask, so the connected route wins the RIB. This router is configured to redistribute OSPF into EIGRP. What is the practical concern?
- Change the OSPF router ID so the connected prefix becomes an OSPF external route eligible for EIGRP redistribution
- Connected won the RIB, so that source needs redistribution rather than the non-installed OSPF path
- EIGRP split horizon must be disabled everywhere before this can work
- Hello timers must be adjusted before checking any policy
Which command most directly shows whether an inbound or outbound distribute list is filtering routes on a specific routing process, along with other high-level process settings like redistribution sources and administrative distance?
- show ip route
- show ip protocols
- show ip arp
- show ip interface
Given `ip prefix-list PLNARROW permit 10.0.0.0/8 ge 16 le 24`, does the candidate route 10.44.16.0/28 match?
- Yes, because the base 10.0.0.0/8 network is present in the route
- No, /28 exceeds the le 24 limit
- Yes, because ge and le ranges only restrict the network portion, not the mask
- The entry is invalid because ge and le cannot be combined
For the same destination prefix, a router has both a directly connected interface route and a static route pointing out that same interface. Which one is installed in the RIB?
- The static route wins because selecting an exit interface makes it more specific than the connected prefix
- The connected route wins with AD 0
- Both, since connected and static routes are treated as equal cost
- The static route, if it was configured more recently