guys just a quick one......can someone please tell me why would you use as orgin attribute (like does it control traffic coming in or going out)??? and what abt MED.....i know abt local preference and weight is for going out???thnaks in advance guys
The mentioned attributes are used in the BGP path selection process.
When a BGP router has more than one route in the BGP table, it has to decide which one is the best to offer to the routing table.
1. First it will choose a route with the highest weight.
2. If the routes are with the same weight, it will choose the route with the highest local preference value.
3. If the routes are with the same local preference, then it will chose the route originated by the local router (by itself). You can see this by the next-hop 0.0.0.0
4. If no paths can be selected in step 4. the it wiil choose the path with the shotest AS-path attribute.
5. If no path can be selected in step 4. it will choose the path with the lowest origin code.
To answer your question: the router prefers routes that were introduced into BGP with the "network" command over redistributed routes. Redistributed routes are considered less reliable or stable. So this controls outgoing traffic.
Just think with your common sense: you have two paths to the same destination: one is originated in BGP, the other is redistributed to BGP from RIP, OSPF, EIGRP or IS-IS.
Which is more likely to be the best route?
6. When no path can be selected in step 5., then the router will choose the path with the lowest MED value (this value may come from the neighboring autonomous system (AS)).
This way the neighboring AS can exert some degree of control on my outgoing traffic, which is the incoming traffic from the viewpoint of the neighboring AS.
Do you use Cisco DNA Center? Have you used and are you willing to provide your feedback in using the Cisco DNA Center help and documentation?
If so, we’d like you to complete the survey linked below. Your feedback will help provide more effective and easi...
Listen: https://smarturl.it/CCRS9E18Follow us: https://twitter.com/CiscoChampion Reaching the height of your career is no simple feat. It often requires a combination of pursuing the right education, building the right professional network and being ...
In a typical production SD-WAN deployment, we would probably have many remote sites connected via many different Internet connections to a centralized data center or a regional hub. In most regions in the world, Internet providers will always use some typ...