neighbor weight

Syntax

neighbor {<IP-ADDRESS>|<PEER-GROUP-NAME>} weight <WEIGHT-VALUE>

no neighbor {<IP-ADDRESS>|<PEER-GROUP-NAME>} weight <WEIGHT-VALUE>

Description

This command assigns a weight to a neighbor connection. When the weight is applied to a peer-group then all the neighbors that are part of the peer-group will inherit the value configured.

The no form of this command removes a weight assignment.

Command context

config-bgp

Parameters

<IP-ADDRESS>

Specifies an IP address.

<PEER-GROUP-NAME>

Specifies a peer group.

<WEIGHT-VALUE>

Specifies the weigh to be associated with the routes received from the neighbor. Range: 0-65535.

Authority

Administrators

Examples

switch(config-bgp)# neighbor 1.1.1.1 weight 500
switch(config-bgp)# no neighbor 1.1.1.1 weight
switch(config-bgp)# neighbor pg weight 600
switch(config-bgp)# no neighbor pg weight