13-35
Catalyst 6500 Series Switch Software Configuration Guide—Release 8.7
OL-8978-04
Chapter 13 Configuring CEF for PFC2 and PFC3A
Configuring the NetFlow Statistics on the Switch
The
flow
keyword specifies the following additional flow information:
•
Protocol family (
protocol
)—Specify
tcp
,
udp
,
icmp
, or a decimal number for other protocol
families. A value of zero (0) for
protocol
is treated as a wildcard (unspecified options are treated as
wildcards).
•
TCP or UDP source and destination port numbers (
src_port
and
dst_port
)—If the protocol that you
specify is TCP or UDP, specify the source and destination TCP or UDP port numbers. A value of
zero (0) for
src_port
or
dst_port
is treated as a wildcard (unspecified options are treated as
wildcards). For other protocols, set the
src_port
and
dst_port
to 0, or no entries will clear.
To clear the statistics for a NetFlow table IP entry, perform this task in privileged mode:
This example shows how to clear the statistics for NetFlow table entries with destination IP address
172.20.26.22:
Console> (enable)
clear mls statistics entry ip destination 172.20.26.22
MLS IP entry cleared
Console> (enable)
This example shows how to clear the statistics for the NetFlow table entries with destination IP address
172.20.22.113, TCP source port 1652, and TCP destination port 23:
Console> (enable)
clear mls statistics entry ip destination 172.20.26.22 source
172.20.22.113 flow tcp 1652 23
MLS IP entry cleared
Console> (enable)
Clearing the NetFlow IPX Statistics
The
clear mls statistics entry ipx
command clears the NetFlow IPX statistics. Use the
all
keyword to
clear all the NetFlow IPX statistics. The
destination
and
source
keywords specify the source and
destination IPX addresses.
To clear the statistics for a NetFlow table IPX entry, perform this task in privileged mode:
This example shows how to clear the statistics for the IPX MLS entries with destination IPX address
1.0002.00e0.fefc.6000:
Console> (enable)
clear mls statistics entry ipx destination 1.0002.00e0.fefc.6000
MLS IPX entry cleared.
Console> (enable)
Task
Command
Clear the statistics for a NetFlow table IP
entry.
clear mls statistics entry ip
[
destination
ip_addr_spec
]
[
source
ip_addr_spec
] [
flow
protocol src_port dst_port
]
[
all
]
Task
Command
Clear the statistics for a NetFlow table
IPX entry.
clear mls statistics entry ipx
[
destination
ipx_addr_spec
] [
source
ipx_addr_spec
] [
all
]