13-31
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
Setting the Minimum Statistics Flow Mask
You can set the minimum granularity of the flow mask for the NetFlow table. The actual flow mask will
be at least of the granularity that is specified by this command. For information on how the different flow
masks work, see the
“Flow Masks” section on page 13-12
.
Note
Entering the
set mls flow
command purges all the existing entries in the NetFlow table.
To set the minimum NetFlow statistics flow mask, perform this task in privileged mode:
This example shows how to set the minimum statistics flow mask to destination-source-ip:
Console> (enable)
set mls flow destination-source
Configured IP flow mask is set to destination-source flow.
Console> (enable)
Excluding the IP Protocol Entries from the NetFlow Table
You can configure the NetFlow table to exclude specified IP protocols.
To exclude the IP protocols from the NetFlow table, perform this task in privileged mode:
The
port
parameter can be a port number or a keyword:
dns
,
ftp
,
smtp
,
telnet
,
x
(X-Windows), or
www
.
This example shows how to exclude the Telnet traffic from the NetFlow table:
Console> (enable)
set mls exclude protocol tcp telnet
NetFlow table will not create entries for TCP packets with protocol port 23.
Note: MLS exclusion only works in full flow mode.
Console> (enable)
Displaying the NetFlow Statistics
Note
To display the forwarding decision entries, enter the
show mls entry cef
command (see the
“Displaying
the Layer 3-Switching Entries on the Supervisor Engine” section on page 13-15
).
Task
Command
Set the minimum statistics flow mask.
set mls flow
{
destination
|
destination-source
|
null
|
full
}
Task
Command
Exclude the IP protocols from the
NetFlow table.
set mls exclude protocol
{
tcp
|
upd
|
both
}
port