Specifying the Weight Added to Received Routes
The weight that the device adds to received routes can be specified. The following
task changes the weight from the default for routes that are received from a specified
BGP neighbor.
- Enter the
configure terminalcommand to access global configuration mode. - Enter the
router bgpcommand to enable BGP routing. - Enter the
local-ascommand to configure the autonomous system number (ASN) in which your device resides. - Enter the
neighbor weightcommand and specify an IP address and a weight value to specify a weight that the device adds to routes that are received from the specified BGP4 neighbor.