August 2005
Intermediate to advanced
798 pages
31h 12m
English
neighbor weight — router, BGP
neighbor {address | peer-group} weight value
no neighbor {address | peer-group} weight valueThe weight metric for a BGP neighbor
Routes learned from the local router have a weight of 32,768; routes learned from other BGP peers have a weight of 0
This command lets you assign a weight to routes learned from the given neighbor (as specified by address or peer-group). Routes with a higher weight are chosen first. You can use this command to tell BGP to prefer routes learned from a given neighbor. This is a Cisco proprietary attribute.
In the following configuration, we assign a weight of 100 to routes learned from the neighbor 10.200.200.3. This weighting causes the router to prefer routes learned from 10.200.200.3 to routes learned from other BGP peers.
router bgp 200 neighbor 10.200.200.3 weight 100