13-25
Catalyst 6000 Family Software Configuration Guide—Releases 6.3 and 6.4
78-13315-02
Chapter 13 Configuring CEF for PFC2
Configuring NetFlow Statistics
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 IP Protocol Entries from the NetFlow Table
You can configure the NetFlow table to exclude specified IP protocols.
To exclude 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 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 NetFlow Statistics
Note
To display the forwarding decision entries, enter the
show mls entry cef
command (see the
“Displaying Layer 3-Switching Entries on the Supervisor Engine” section on page 13-12
.)
To display a summary of NetFlow table entries and statistics, perform this task in privileged mode:
This example shows how to display all NetFlow table entries:
Console> (enable)
show mls
show mls
=======
Total packets switched = 2
Total bytes switched = 112
Total routes = 48
Task
Command
Set the minimum statistics flow mask.
set mls flow
{
destination
|
destination-source
|
full
}
Task
Command
Exclude IP protocols from the NetFlow
table.
set mls exclude protocol
{
tcp
|
upd
|
both
}
port
Task
Command
Display all NetFlow table entries and
statistics.
show mls