BGP Attributes Explained


  1. Weight :
    1. First Attribute of BGP and is Cisco proprietary
    2. Can be configured pointing neighbor within the AS, or between the AS.
    3. Weight lies only with the configured Router, not shared between the Routers.
    4. Higher the Weight is preferred.
  2. Local Preference :
    1. Second Attribute of BGP and is a Standard Attribute
    2. Configured pointing with Neighbor on different AS.
    3. Local Preference will be shared among all the routers in the Local AS
    4. Higher the Local Preference is Preferred.
  3. Origin :
    1. Third Attribute of BGP
    2. Locally originated routes (Next Hop: 0.0.0.0) are more preferred as compared to routes originated outside.
  4. AS path :
    1. Fourth Attribute of BGP
    2. Shorter the AS path is preferred.
    3. Will be configured between the different AS.
  5. Origin Code :
    1. Fifth Attribute of BGP
    2. Networks that are manually advertised by Network commands are more preferred than the redistributed Networks.
      1. manually advertised by Network command will be represented - i.
      2.  redistributed Networks will be represented - ?
  6. MED (Metric) :
    1. Sixth Attribute of BGP
    2. Will be configured between the different AS.
    3. Lower the Metric is preferred.
    4. Metric will be compared only when the Routes are receiving from the same AS.
  7. Path :
    1. Seventh Attribute of BGP
    2. BGP will prefer the External BGP path over the internal BGP Path.
  8. Router-ID :
    1. If all the Attributes are same, tie Breaker here is the Router-ID.
    2. Lower the ID (IP Address ) , is preferred.

You can also look into my video Tutorial:


If you have any questions, just give a comment....

Post a Comment