set weight
Sets the route weight.
Syntax: set weight weight
no set weight
weight
Valid values are integers from 0 to 65535. By default, paths that the router originates have a weight of 32768. Other paths have a weight of 0.
Description: Use the set weight command to specify the BGP weight for this router.
Use the no set weight command to delete a weight entry from this route map.
Route maps consist of sets of match and set commands. Match commands define the match criteria for route maps. Routes that match the match criteria are processed according to the actions defined by the set commands. Routes that do not match at least one of the match criteria in the route map are ignored.
Use the route-map command to create a route map. Use the various match and set commands to define the conditions for redistributing routes between protocols or instances of the same protocol.
Weight is used for best path selection. Weight is assigned locally to the router. It is not propagated or carried through any of the route updates. Routes with a higher weight are preferred when multiple routes exist to the same destination.
Weights set using the set weight command override weights set using the neighbor weight and neighbor filter-list commands.
Factory Default: Weight is not modified by this route map.
Command Mode: Route map configuration.
Example: In the following example:
- The ip as-path access-list command creates an as-path access list named 1 to permit only those routes that include paths from or through autonomous system 234.
- The route-map command creates a route map named set-weight.
- The match as-path command adds a match clause based on as-path access list 1.
- The set weight command sets weight for all routes that pass the route map to 100.
router(config)#ip as-path access-list 1 permit _234_
router(config)#ip as-path access-list 1 deny any
router(config-router)#route-map set-weight permit 10
router(config-route-map)#match as-path 1
router(config-route-map)#set weight 100
router(config-route-map)#end
router(config)#
Related Commands: ip as-path access-list
match as-path
match community
match ip address
match ip next-hop
match ip route-source
match metric
route-map
match route-type
match tag
set as-path
set community
set community
set ip next-hop
show route-map
set level
set local-preference
set metric
set metric-type
set origin
set tag
Copyright © 2004
Avici Systems Inc.
Avici® and TSR®
is a registered trademark of Avici Systems Inc.
IPriori, Composite Links, SSR, QSR, and NSR® are
trademarks of Avici Systems Inc.
Source
File Name: Routing_Pol.fm
HTML File Name: Routing_Pol41.html
Last Updated: 05/10/04 at 16:38:37