December 2001
Intermediate to advanced
608 pages
25h 14m
English
neighbor weight — router, BGP
neighbor {address | peer-group} weight value
no neighbor {address | peer-group} weight value
The weight metric for a BGP neighbor
Routes learned from the local router have a weight of 32768; 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
Read now
Unlock full access