Set Local-Preference - Cisco Nexus 3548 Command Reference Manual

Nx-os unicast routing command reference
Hide thumbs Also See for Nexus 3548:
Table of Contents

Advertisement

set local-preference

set local-preference
To specify a preference value for the autonomous system path, use the set local-preference command.
To delete an entry, use the no form of this command.
Syntax Description
number-value
Command Default
Preference value of 100 by default.
Command Modes
Route-map configuration mode
Command History
Release
5.0(3)A1(1)
Usage Guidelines
The preference is sent only to all routers in the local autonomous system.
You must have a match clause (even if it points to a "permit everything" list) if you want to set tags.
Use the route-map global configuration command and the match and set route-map configuration
commands to define the conditions for redistributing routes from one routing protocol into another. Each
route-map command has a list of match and set commands associated with it. The match commands
specify the match criteria—the conditions under which redistribution is allowed for the current
route-map command. The set commands specify the set actions—the particular redistribution actions
to perform if the criteria enforced by the match commands are met. The no route-map command deletes
the route map.
The set route-map configuration commands specify the redistribution set actions to be performed when
all the match criteria of a route map are met. When all match criteria are met, all set actions are
performed.
You can change the default preference value with the bgp default local-preference command.
This command requires the LAN Enterprise Services license.
Examples
This example shows how to set the local preference to 100 for all routes that are included in access list 1:
switch# configure terminal
switch(config)# route-map map-preference
switch(config-route-map)# match as-path 1
switch(config-route-map)#
switch(config-route-map)#
Cisco Nexus 3548 Switch NX-OS Unicast Routing Command Reference
342
set local-preference number-value
no set local-preference number-value
Modification
This command was introduced.
Preference value. The range is from 0 to 4294967295. The default is
100.
set local-preference 100
Chapter
Unicast Routing Commands
OL-27852-01

Advertisement

Table of Contents
loading

Table of Contents