Exhibit
You are troubleshooting an issue where traffic to 192.168.10.0/24 is being sent to R1 instead of your desired path through R2.
Referring to the exhibit, what is the reason for the problem?
The exhibit shows the output of the commandshow ip bgp, which displays information about the BGP routes in the routing table1. The output shows two routes for the destination 192.168.10.0/24, one from R1 and one from R2.
The route from R1 has a local preference of 200, while the route from R2 has a local preference of 100.Local preference is a BGP attribute that indicates the degree of preference for a route within an autonomous system (AS)2.A higher local preference means a more preferred route2.
BGP uses a best path selection algorithm to choose the best route for each destination among multiple paths.The algorithm compares different attributes of the routes in a specific order of precedence3.The first attribute that is compared is weight, which is a Cisco-specific attribute that is local to the router3.If the weight is equal or not set, the next attribute that is compared is local preference3.
In this case, both routes have the same weight of 0, which means that they are learned from external BGP (eBGP) peers3. Therefore, the next attribute that is compared is local preference.Since R1's route has a higher local preference than R2's route, it is chosen as the best path and installed in the routing table3. The other attributes, such as origin code and AS path, are not considered in this case.
Limited Time Offer
25%
Off
Keith
5 months agoMatilda
5 months agoShanda
6 months agoMillie
6 months agoQuentin
6 months ago