14-27
Catalyst 6000 Family Software Configuration Guide—Releases 6.3 and 6.4
78-13315-02
Chapter 14 Configuring MLS
Configuring MLS
Displaying IP MLS Statistics by Protocol
The
show mls statistics protocol
command displays IP MLS statistics by protocol (such as Telnet, FTP,
and WWW). The
protocol
keyword functions only if the flow mask mode is full flow. Enter the
show
mls
command to see the current flow mask.
To display IP MLS statistics by protocol, perform this task in privileged mode:
This example shows how to display IP MLS statistics by protocol:
Console> (enable)
show mls statistics protocol
Protocol TotalFlows TotalPackets Total Bytes
------- ---------- -------------- ------------
Telnet 900 630 4298
FTP 688 2190 3105
WWW 389 42679 623686
SMTP 802 4966 92873
X 142 2487 36870
DNS 1580 52 1046
Others 82 1 73
Total 6583 53005 801951
Console> (enable)
Displaying Statistics for MLS Cache Entries
The
show mls statistics entry
command displays IP MLS statistics for MLS cache entries. Specify the
destination IP address, source IP address, protocol, and source and destination ports to see specific MLS
cache entries.
A value of zero (0) for
src_port
or
dst_port
is treated as a wildcard, and all statistics are displayed
(unspecified options are treated as wildcards). If the protocol specified is not TCP or UDP, set the
src_port
and
dst_prt
to 0 or no statistics will display.
To display statistics for MLS cache entries, perform this task in privileged mode:
This example shows how to display statistics for a particular MLS cache entry:
Console>
show mls statistics entry ip destination 172.20.22.14
Last Used
Destination IP Source IP Prot DstPrt SrcPrt Stat-Pkts Stat-Bytes
--------------- --------------- ---- ------ ------ --------- -----------
MSFC 127.0.0.12:
172.20.22.14 172.20.25.10 6 50648 80 3152 347854
Console>
Task
Command
Display IP MLS statistics by protocol (only
if IP MLS is in full flow mode).
show mls statistics protocol
Task
Command
Display statistics for MLS cache entries. If
you do not specify an MLS cache entry, all
statistics are shown.
show mls statistics entry
ip
[
destination
ip_addr_spec
] [
source
ip_addr_spec
] [
flow
protocol
src_port dst_port
]