42-15
Catalyst 4500 Series Switch, Cisco IOS Software Configuration Guide - Cisco IOS XE 3.9.xE and IOS 15.2(5)Ex
Chapter 42 Configuring Policy-Based Routing
Policy-Based Routing Configuration Tasks
The following example shows you how to verify the next-hop IP address in a route map:
Switch# enable
Switch# configure terminal
Switch(config)# track 100 ip sla 100
Switch(config)# ip sla 100
switch(config-ip-sla)# icmp-echo 172.19.255.253 source-ip 172.19.255.47
switch(config-ip-sla-echo)# timeout 1500
switch(config-ip-sla-echo)# threshold 1000
switch(config-ip-sla-echo)# frequency 2
switch(config)# ip sla schedule 100 life forever start-time now
switch(config)# route-map alpha permit 10
switch(config-route-map)# match ip address exlist
switch(config-route-map)# set ip next-hop verify-availability 95.1.1.2 1 track 100
switch# show route-map alpha
switch# show track 100
Unsupported Commands
The following PBR commands in config-route-map mode are in the CLI but not supported in Cisco IOS
for the Catalyst 4500 series switches. If you attempt to use these commands, an error message displays:
Command Purpose
Step 1
Switch# ocnfigure terminal
Enters global configuration mode.
Step 2
Switch (config)# track [object-number] ip sla
[entry-number]
Tracks the state of the specified IP SLA object.
Step 3
Switch (config)#ip sla [operation-number]
Starts a Cisco IOS IP Service Level Agreement
(SLA) operation configuration and enters IP SLA
configuration mode.
Step 4
Switch (config-ip-sla)# icmp echo [ip-address]
source ip [ip-address]
Configures an IP SLA Internet Control Message
Protocol (ICMP) echo probe operation and enters
Echo configuration mode.
Step 5
Switch (config-ip-sla-echo)# frequency seconds
(Optional) Sets the rate at which a specified IP SLA
operation repeats.
Step 6
Switch (config-ip-sla-echo)# threshold milliseconds
(Optional) Sets the length of time required for a
rising threshold event to be declared.
Step 7
Switch (config-ip-sla-echo)# timeout milliseconds
(Optional) Sets the maximum time required for the
IP SLA operation to be completed.
Step 8
Switch (config)#ip sla schedule [operation-number]
[life {forever | seconds}] [start-time {hh : mm} [:
ss] [monthday | daymonth]| pending | now | after hh
: mm : ss}] [ageout seconds]
Configures the scheduling parameters for a single
Cisco IOS IP SLA operation.
Step 9
Switch(config)# route-map map-tag [permit | deny]
[sequence-number]
Specifies a route map and enters route-map
configuration mode.
Step 10
Switch(config-route-map)# match ip address
[access-list-name]
Distributes routes that have a destination IPv4
network number address that is permitted by a
standard access list.
Step 11
Switch(config-route-map)# set ip next-hop
verify-availability [next-hop-address sequence track
object]
Configures the route map to verify the reachability
of the tracked object.