Administrator Guide

Layer 3 Routing Commands 1593
Example
For each route map, the match count is shown in terms of number of packets
and number of bytes. This counter displays the match count in packets and
bytes when a route map is applied. When a route map is created/removed
from interface, this count is shown as zero. The following is an example of the
behavior of counters as well as how they are displayed when a route-map is
applied and removed from interface:
console# show route-map test
route-map test, permit, sequence 10
Match clauses:
ip address prefix-lists: orange
Set clauses:
set metric 50
console #show ip policy
Interface Route-Map
------------ -----------------------------------------
console #show route-map simplest
route-map simplest permit 10
Match clauses:
ip address (access-lists) : 1
Set clauses:
ip next-hop 3.3.3.3
ip precedence 3
Policy routing matches: 0 packets, 0 bytes
route-map simplest permit 20
Match clauses:
ip address (access-lists) : 1
Set clauses:
ip default next-hop 4.4.4.4
ip precedence 4
Policy routing matches: 0 packets, 0 bytes
route-map simplest permit 30
Match clauses:
Set clauses:
interface null0
Policy routing matches: 0 packets, 0 bytes
console #configure
console (Config)#interface Te1/0/2
console (config-if-Te1/0/2)#ip policy simplest
console (config-if-Te1/0/2)#show route-map simplest
route-map simplest permit 10
Match clauses:
ip address (access-lists) : 1
Set clauses:
ip next-hop 3.3.3.3
ip precedence 3
2CSNXXX_SWUM204.book Page 1593 Monday, January 25, 2016 1:25 PM