BGP: Difference between revisions

32 bytes added ,  2 years ago
Line 517:
 
;Multi-Exit Discriminator
 
* The MED is an optional attribute that comes in handy when there are multiple entrance paths to an AS.
*The remote AS sets MED values to tell the other AS which path to use.
* The MEDremote isAS passedsets betweenMED thevalues twoto autonomous systems, buttell the valueother isAS notwhich passedpath to any other ASsuse.
* The MED is passed between the two autonomous systems, but the value is not passed to any other ASs.
* The path with the lowest MED is the preferred path.
* This attribute is only used to influence entry INTO the AS.
 
;Local Preference
*LOCAL_PREF is a well-known attribute that is also used when multiple paths between autonomous systems exist.
*The LOCAL_PREF attribute is just that… local and exclusive to the AS.
*Routers within the local AS are told what path to use to exit that AS.
*The local preference value is passed only among iBGP peers, and this value never leaves the local AS.
 
* LOCAL_PREF is a well-known attribute that is also used when multiple paths between autonomous systems exist.
 
* The LOCAL_PREF attribute is just that… local and exclusive to the AS.
*Weight is configured for Outgoing direction:
* Routers within the local AS are told what path to use to exit that AS.
[R1]-------[R2]
* The local preference value is passed only among iBGP peers, and this value never leaves the local AS.
|
|--------[R3]
 
If you want R1 to prefer R3, Configure more weight on R1
Configured on Per-Neighbor basis.
 
* Local Preference is configured in Incoming direction.
* Configure Local Pref R3 so that R1 will prefer routes learned via R3.
* Local Pref stays inside AS only(use MED if you want to affect AS also).
* Configured for the whole BGP process on the router.
 
 
;Weight:
Cisco Proprietary
 
* Cisco Proprietary
* Weight is configured for Outgoing direction:
[R1]-------[R2]
|
|--------[R3]
 
* If you want R1 to prefer R3, Configure more weight on R1
* Configured on Per-Neighbor basis.
 
;Example Scenario:
<--AS3--> <--AS100-->
|------[R2]--------[R4]
Line 554:
|------[R3]--------[R5]
 
* Weight R1 to R2 or R3:
|------>
 
* Local Preference R2 to R1 or R3 to R1:
<------|
 
* MED R4 to R2 or R5 to R3:
|--------->