
21
Switch#config terminal
Switch(config)#route-map r1 permit 5
Switch(config-route-map)#set extcommunity rt 100:10
Set soo as 200.200:10
Switch(config)#route-map r1 permit 10
Switch(config-route-map)#set extcommunity soo 200.200:10
1.2.3.19 set ip next-hop
Command: set ip next-hop <ip_addr>
no set ip next-hop [<ip_addr>]
Function:
Configure the next-hop of the route. The “
no set ip next-hop [<ip_addr>]
” command
deletes the configuration.
Parameter: <ip_addr >
is the ip address of next-hop shown with dotted decimal notation.
Command Mode:
route-map mode
Example:
Switch#config terminal
Switch(config)#route-map r1 permit 5
Switch(config-route-map)#set ip next-hop 10.2.2.2
1.2.3.20 set local-preference
Command: set local-preference <pre_val>
no set local-preference [<pre_val>]
Function:
Configure the local priority of BGP route. The “
no set local-preference [<pre_val>]
”
command deletes this configuration.
Parameter: <pre_val >
is the value of local priority, ranging between 0
~
4294967295.
Command Mode:
route-map mode
Usage Guide:
The local priority attribute is the priority level of a route. A route with a higher local
priority level when compared with other route of the same destination, will be more preferred
than other route. The local priority validates only within this AS and will not be transported to
EBGP neighbors. To use this command, one match clause should at first be defined.
Example:
Switch#config terminal
Switch(config)#route-map r1 permit 5
Switch(config-route-map)#set local-preference 60
1.2.3.21 set metric