[Contents] [Prev] [Next] [Index] [Report an Error]

# neighbor weight

#### Syntax

neighbor { ipAddress | ipv6Address | peerGroupName } weight value

no neighbor { ipAddress | ipv6Address | peerGroupName } weight [ value ]

#### Release Information

Command introduced before JUNOSe Release 7.1.0.
ipv6Address variable added in JUNOSe Release 8.0.0.

#### Description

Assigns a weight to a neighbor connection. The no version removes a weight assignment. All routes learned from this neighbor will have the assigned weight initially. The route with the highest weight will be chosen as the preferred route when multiple routes are available to a particular network.

The weights assigned with the match as-path and set weight route-map commands override the weights assigned with the neighbor weight and neighbor filter-list commands.

#### Options

- ipAddress—IP address of BGP neighbor
- ipv6Address—IPv6 address of BGP neighbor
- peerGroupName—Name of a BGP peer group. If you specify a BGP peer group by using the peerGroupName argument, all the members of the peer group inherit the characteristic configured with this command, unless it is overridden for a specific peer.
- value—Number in the range 0–65535; the weight to assign

#### Mode

Address Family Configuration, Router Configuration

[Contents] [Prev] [Next] [Index] [Report an Error]