Specifications
IP Switching Commands
show cef interface policy-statistics
ISW-133
Cisco IOS IP Switching Command Reference
May 2008
Two sets of counters are displayed for BGP policy accounting: input counters and output counters. If you
enter the show cef interface policy-statistics command without an optional keyword, the command
displays only input counters. If you want to display the output counters, you must enter the command
with the output keyword. You can also display the input counters by entering the input keyword with
the command.
The number of lines in the output of the show cef interface policy-statistics command varies from
platform to platform. The software switched platforms support 64 input and 64 output counters and thus
64 lines of output. The Catalyst 6000 family switches and Cisco 7600 series routers support seven input
and seven output counters and seven lines of output.
You enable BGP policy accounting on a particular interface when you enter the bgp-policy accounting
command in interface configuration mode. To define the conditions for BGP policy accounting, you use
the set traffic-index command in route-map configuration mode, the route-map command in global
configuration mode, the table-map command in route-map configuration mode, and the match
command in route-map configuration mode. The table-map command adds the named route map to the
BGP routing table. BGP uses the route map name to set traffic indexes for routes in the IP routing table.
The match commands specify the match criteria—the conditions under which policy routing occurs. The
set traffic-index command sets the traffic indexes for matching prefixes. The show ip cef detail
command displays the traffic index for any particular route.
Examples The following is sample output from the show cef interface policy-statistics command:
Router# show cef interface policy-statistics
POS7/0 is up (if_number 8)
Index Packets Bytes
1 0 0
2 0 0
3 50 5000
4 100 10000
5 100 10000
6 10 1000
7 0 0
8 0 0
The following is sample output from the show cef interface policy-statistics command showing policy
statistics for Ethernet interface 1/0:
Router# show cef interface ethernet 1/0 policy-statistics
Ethernet1/0 is up (if_number 3)
Corresponding hwidb fast_if_number 3
Corresponding hwidb firstsw->if_number 3
Index Packets Bytes
1 0 0
2 0 0
3 0 0
4 0 0
5 0 0
6 0 0
7 0 0
8 0 0
The following is sample output from the show cef interface policy-statistics command showing policy
statistics for Fast Ethernet interface 1/0/0 with the policy accounting based on input traffic:
Router# show cef interface fastethernet 1/0/0 policy-statistics input