Specifying the weight added to BGP4+ 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
BGP4+ 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
address-family ipv6 unicastcommand to enter address family IPv6 unicast configuration mode. - Enter the
neighbor weightcommand and specify an ipv6 address and a weight value to specify a weight that the device adds to routes that are received from the specified BGP4+ neighbor.
The following example specifies a weight of 200 that the device adds to routes that are received from the specified BGP4+ neighbor.
device# configure terminal device(config)# router bgp device(config-bgp-router)# local-as 65520 device(config-bgp-router)# address-family ipv6 unicast device(config-bgp-ipv6u)# neighbor 2001:db8:e0ff:783a::4 weight 200