73 neighbor weight – CANOGA PERKINS CanogaOS Command Reference User Manual

Page 327

Advertising
background image

CanogaOS Command Line Reference

Revision 1.02

Proprietary & Confidential Canoga Pertkins Metro Ethernet Switches

Page 327 of 855

Usage

By default, the system uses BGP version 4 and on request dynamically negotiates down to version 2. Using
this command disables the router’s version-negotiation capability and forces the router to use only a specified
version with the neighbor.

Examples

Switch# configure terminal
Switch(config)# router bgp 12
Switch(config-router)# neighbor 10.10.10.10 version 4

16.73 neighbor weight

Use this command to set default weights for routes from this neighbor.
Use the no parameter with this command to remove a weight assignment.

Command Syntax

(no) neighbor NEIGHBORID weight WEIGHT
NEIGHBORID = A.B.C.D|X:X::X:X|TAG
A.B.C.D Specifies the address of the BGP neighbor in IPv4 format.
X:X::X:X Specifies the address of the BGP neighbor in IPv6 format.

TAG Name of an existing peer-group. For information on how to create peer groups, refer to the
neighbor peer-group and neighbor remote-as commands. When this parameter is used with a
command, the command applies on all peers in the specified group.

WEIGHT= <0-65535> Specifies the weight this command assigns to the route.

Command Mode

Router mode

Usage

Use this command to specify a weight value to all routes learned from a neighbor. The route with the highest
weight gets preference when there are other routes on the network.
Unlike the local-preference attribute, the weight attribute is relevant only to the local router.
The weights assigned using the set weight command overrides the weights assigned using this command.

Examples

Switch# configure terminal
Switch(config)# router bgp 12
Switch(config-router)# neighbor 10.10.10.10 weight 60

Advertising