03-10-2008 06:19 AM - edited 03-03-2019 09:03 PM
As a general rule...
BGP selects the shorts prefix match or the longest prefix match..
And could you provide me with some documentation to support your answer..
Thanks
03-10-2008 06:37 AM
Any routing protocol would always prefer the longest mask or the more specific route
This is mentioned in the RFC
Have a look at section 9.1.2.1. Route Resolvability Condition (RFC 4721)
http://www.ietf.org/rfc/rfc4271.txt
The route resolvability condition is defined as follows:
1) A route Rte1, referencing only the intermediate network address, is considered resolvable if the Routing Table contains
at least one resolvable route Rte2 that matches Rte1's ntermediate network address and is not recursively resolved directly or indirectly) through Rte1. If multiple matching routes are available, only the longest matching route SHOULD be considered.
HTH
Narayan
03-10-2008 06:49 AM
Narayan,
Thanks for the information..
I could have sworn that it was the shortest prefix length..
I made mistake..
Thanks
03-10-2008 08:41 AM
Narayan,
Actually the routing protocols as such don't really care about shorter or longer prefixes. If a shorter and longer prefix are learnt by a routing protocol, they are considered as two different entities and are both installed in the RIB.
It is at the data plane level that the distinction is made and that the longest prefix match will apply.
Cheers,
03-10-2008 09:12 AM
Thanks again..
I just want to get this straight..
If R1 is populating a route through aggregation...
And
R2 is populating a BGP without aggregation..
The non-aggregated route will be perfered down the chain..
correct..
03-10-2008 08:37 PM
You are right.
~Vaibhav
03-11-2008 01:15 AM
Thanks again for all your help
03-11-2008 01:36 PM
That is correct. If both routes are installed in the RIB, the non-aggregated route will be used for forwarding packets, assuming the destination address matches this non-aggregated routes obviously.
Regards,
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: