BGP route selection principle and attribute detailed explanation: weight

Source: Internet
Author: User

In the IGP era, we all know, for example, OSPF, link state protocol, in the routing of the time, than the cost of the link, which link consumption will be more priority, if two of the same link consumption, then do load balancing.

In fact, the 2 principles to achieve the OSPF---shortest path first work principle.

What if, in BGP, there are multiple routes to achieve the goal, how should the choice be made? Which path is the preferred one?

Take a look at the priority of these 11 attributes, and deepen the memory, preferably with a skilled back:

1 Highest Weight--cisco private properties

2 Highest Local Prerence-----recognized well-known mandatory

3 ROUTE originated by the ROUTER NEXT hop= *-----Recognized must be respected well-known mandatory

4 Shortest as PATH *-----recognized well-known mandatory

5 LOWEST originated igp> Egp>incomplete *-----Recognized well-known mandatory


7 EBGP path over IBGP path

8 prefer the PATH throgh the closest IGP neighbor

9 Rrefer oldest ROUTER for EBGP PATH

Prefer the PATH with the LOWEST neighbor BGP ROUTER ID



In BGP, in addition to a large set of principles to be understood, the principle of route selection is the most important. Must be mastered (to understand and troubleshoot BGP, here must be to grasp rather than understand) the route principle.

Each property is validated by the document one at a time. To be able to reach myself in the mind of these concepts.

Weight attribute Detailed:

Weight only has local significance he cannot be routed by routers only on this route, and he is Cisco's private Property! He is the one who influences himself without affecting the attributes of others!! In Cisco, the weight attribute has the highest priority. In other vendors, start with the Local_pref property.

The BGP weight property is a local property. Weight This property is configured locally on the router and is not propagated to any other routers. If there are multiple routes to the same destination router, then the weighted Highland route will be selected first.

If the originating router generated by the route is set to 32768 by default for the weight property. The weight of other routes defaults to 0.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.