Configuration Guide Vol. 3


13.2.4 Setting Learn Policy for BGP4 Routes

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)# 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)# neighbor 172.16.2.2 weight 20

    (config-router)# neighbor 10.2.2.2 weight 20

    (config-router)# neighbor 10.1.2.2 weight 10

    (config-router)# neighbor 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.