Command:

neighbor weight


Mode:

 

Router(config-router)#

Router(config-router-af)#

 

Syntax:

neighbor {ip-address | peer-group-name} weight number

no neighbor {ip-address | peer-group-name} weight number

 

Syntax Description:

ip-address

Neighbor's IP address.

peer-group-name

Name of a BGP peer group.

number

Weight to assign. Acceptable values are 0 to 65535.

 

Command Description:

To assign a weight to a neighbor connection, use the neighbor weight command in address family or router configuration mode. To remove a weight assignment, use the no form of this command.

Example:
The following router configuration mode example sets the weight of all routes learned via 151.23.12.1 to 50:
Router (config)#router bgp 109

Router(config-router)#neighbor 151.23.12.1 weight 50

The following address family configuration mode example sets the weight of all routes learned via 151.23.12.1 to 50:

Router (config)#router bgp 109

Router (config-router)#address-family ipv4 multicast

Router (config-router-af)#neighbor 151.23.12.1 weight 50

 

Misconceptions:

None

Related Commands:
address-family ipv4
neighbor filter-list
router bgp
neighbor remote-as
neighbor prefix-list
neighbor route-map

� Cisco Systems, Inc. 2001, 2002, 2003
World Wide Education

Converted from CHM to HTML with chm2web Pro 2.85 (unicode)