A router learns 192.0.2.0/24 via an 'network' statement locally and also receives the same prefix from an eBGP neighbor. Which route will be preferred on a Cisco IOS router by default?
Choose an answer
Tap an option to check your answer.
Correct answer: The locally originated route via the 'network' statement (higher weight by default).
Why this is the answer
Cisco IOS routers prefer the locally originated route via a network statement over an eBGP-learned route for the same prefix. This is due to the BGP path selection process, where 'Weight' is the first attribute considered. Locally originated routes using the network command or aggregation commands are assigned a default Weight of 32768, which is higher than the default Weight of 0 for routes learned from neighbors. The eBGP-learned route is not preferred because Weight takes precedence over all other BGP attributes, including Administrative Distance. MED (Multi-Exit Discriminator) is considered much later in the BGP path selection process, after Weight, Local Preference, and ASPath length. The time a route is learned does not influence BGP path selection.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed