DXS-3600 Series Layer 3 Managed 10Gigabit Ethernet Switch CLI Reference Guide
209
To set the MED for a route advertised to a remote eBGP peer, specify the
set metric
command in a route
map and apply the route map to the corresponding peer session. You can verify your settings by entering
the
show route-map
command.
Example
This example shows how to set the metric of routes that pass the AS path list, PATH_ACL in the route
map, named myPolicy, to 100.
Switch# configure terminal
Switch(config)# route-map myPolicy permit 1
Switch(config-route-map)# match as-path PATH_ACL
Switch(config-route-map)# set metric 100
Switch(config-route-map)#
11-71
set local-preference
This command is used to set the local preference for the routes matched by the route map. Use the
no
form of this command to remove the set entry.
set local-preference VALUE
no set local-preference
Parameters
VALUE
Specifies to set the local preference for the matched route.
Default
There is no set statement.
Command Mode
Route-map Configuration Mode.
Command Default Level
Level: 12.
Usage Guideline
The local preference number is used to control the preferred exit point from the local AS to the same
destination network. The local preference will be sent with the route advertised to the iBGP peers. If an
external route is both learned via the local router and an iBGP peer router, the local preference value
determines the preferred exit point to reach the external route.
Use the
bgp default local-preference
command to specify the default local preference to be associated
with the routes received by the router from eBGP peers.
Example
This example shows how to set the local preference of routes that passes the AS path list, PATH_ACL in
the route map, named myPolicy, to 80.
Switch# configure terminal
Switch(config)# route-map myPolicy permit 1
Switch(config-route-map)# match as-path PATH_ACL
Switch(config-route-map)# set local-preference 80
Summary of Contents for DXS-3600 Series
Page 1: ......
Page 423: ...DXS 3600 Series Layer 3 Managed 10Gigabit Ethernet Switch CLI Reference Guide 418 ...
Page 548: ...DXS 3600 Series Layer 3 Managed 10Gigabit Ethernet Switch CLI Reference Guide 543 ...
Page 673: ...DXS 3600 Series Layer 3 Managed 10Gigabit Ethernet Switch CLI Reference Guide 668 ...
Page 712: ...DXS 3600 Series Layer 3 Managed 10Gigabit Ethernet Switch CLI Reference Guide 707 Switch ...
Page 845: ...DXS 3600 Series Layer 3 Managed 10Gigabit Ethernet Switch CLI Reference Guide 840 ...
Page 884: ...DXS 3600 Series Layer 3 Managed 10Gigabit Ethernet Switch CLI Reference Guide 879 ...
Page 1152: ...DXS 3600 Series Layer 3 Managed 10Gigabit Ethernet Switch CLI Reference Guide 1147 ...