If a BGP network command with a mask is configured but there is no exact match in the routing table, what happens?

Master RIPE BGP Security with our comprehensive test. Understand the Border Gateway Protocol, explore multiple choice questions, and get ready for your exam with detailed hints and explanations.

Multiple Choice

If a BGP network command with a mask is configured but there is no exact match in the routing table, what happens?

Explanation:
In BGP, a network statement only causes a route to be advertised if there is an exact match for the configured prefix and mask in the routing table. If there is no exact match, nothing gets redistributed into BGP for that network. The mask isn’t a wildcard here—BGP looks for the precise prefix with the exact length you specify. So, even if a broader route (a supernet) exists in the RIB, it won’t satisfy the statement’s exact match requirement, and the network won’t be advertised. To advertise it, ensure a route to that exact prefix/mask is present in the routing table (e.g., via IGP, static routes, or adjusting the mask to match an existing entry).

In BGP, a network statement only causes a route to be advertised if there is an exact match for the configured prefix and mask in the routing table. If there is no exact match, nothing gets redistributed into BGP for that network. The mask isn’t a wildcard here—BGP looks for the precise prefix with the exact length you specify. So, even if a broader route (a supernet) exists in the RIB, it won’t satisfy the statement’s exact match requirement, and the network won’t be advertised. To advertise it, ensure a route to that exact prefix/mask is present in the routing table (e.g., via IGP, static routes, or adjusting the mask to match an existing entry).

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy