Configuration Guide Vol. 3


29.2.4 BGP4 + route learning policy settings

Points to note

The example below shows how to set learned route preferences on a per-peer basis by setting the weight of each peer.

Command examples

  1. (config-router-af)# bgp always-compare-med

    For the purpose of route selection, allows comparison of MED attribute values in routing information received from different ASs.

  2. (config-router-af)# neighbor 3ffe:172:16:2::2 weight 20

    (config-router-af)# neighbor 3ffe:10:2:2::2 weight 20

    (config-router-af)# neighbor 3ffe:10:1:2::2 weight 10

    (config-router-af)# neighbor 3ffe:192:168:2::2 weight 10

    Specifies a weight for the routes learned from each peer.

    Gives priority to routes learned from an external peer over routes learned from an internal peer.