Set weight – Enterasys Networks X-Pedition XSR CLI User Manual

Page 317

Advertising
background image

BGP Set Commands

XSR CLI Reference Guide 6-121

Mode

Route‐map configuration: 

Router(config-route-map)#

Default

The default value for this command is the default value for the origin code. The default value for 
the origin code is incomplete for routes that are advertised into BGP by means of the redistribute 
command.

Example

The following example configures the set origin value for redistributed static routes:

XSR(config)#route-map 1 permit 1
XSR(config-route-map)#set origin igp
XSR(config-route-map)#exit
XSR(config)#router bgp 100
XSR(config-router)#redistribute static route-map 1

set weight

This command specifies the weight value for matching BGP routing table entries. Be sure that a 
match clause has been specified.

Weight is used for best path selection and is assigned locally to the router. It is not propagated or 
carried through any route updates. Routes with a higher weight are preferred when multiple 
routes exist to the same destination.

Syntax

set weight weight

Syntax of the “no” Form

The no form of this command removes the weight value:

no set weight weight

Mode

Route‐map configuration: 

Router(config-route-map)#

Defaults

Routes advertised into BGP via redistribution or the 

network

 command: 32768

Routes advertised by a BGP neighbor: 0

weight

Weight is local to the XSR on which it is configured, and it is not propagated in BGP 
routing update messages. But, it is the first value considered in the BGP route 
selection process. Routes with the higher weight are prefered over alternate routes 
to the same destinations but with a lower weight. Range: 0 to 65535.

Advertising