protocols bgp <asn> neighbor <id> address-family ipv4-unicast weight <weight>
Defines a default weight for routes from this neighbor.
Routes learned from a BGP neighbor have a weight of 0. Routes sourced by the local router have a weight of 32768.
- asn
- The number for the AS in which this router resides. The number ranges from 1 through 4294967295.
- id
- The IPv4 or IPv6 address of a BGP neighbor.
- weight
- The weight to be assigned to routes from this neighbor. The numbers range from 0 through 65535.
Configuration mode
protocols {
bgp asn {
neighbor id {
address-family {
ipv4-unicast {
weight weight
}
}
}
}
}
Use the set form of this command to set the default weights for routes learned from a BGP neighbor.
Use the delete form of this command to restore routes weighting to the default. Existing route weights are not changed.
Use the show form of this command to view BGP neighbor configuration settings.