Command:

clear mls


Mode:

Switch> (enable)


Syntax:

clear mls include {{ip_addr} | all}
clear mls nde flow
clear mls statistics
clear mls entry {[destination {ip_addr_spec}] [source {ip_addr_spec}] | [flow {protocol}{src_port} {dst_port}] | all}


Syntax Description:

 

 

include

Keyword used to remove the inclusion of the specified routers.

ip_addr

Route-processor IP address, or name of the route processor if DNS is enabled.

all

Keyword used to remove all routers from participation in the flow.

nde flow

Keywords used to reset the filter to the defaults.

statistics

Keyword used to clear the following statistics: total packets switched and total packets exported (for NDE).

entry

Keyword used to purge the specified NFLS entry, or all entries if all is specified. All matching NFLS entries are purged.

destination

(Optional) Keyword used to specify the destination IP address.

ip_addr_spec

(Optional) Full IP address or a subnet address in the following formats: ip_subnet_addr, ip_addr/subnet_mask, or ip_addr/#subnet_mask_bits.

source

(Optional) Keyword used to specify the source IP address.

flow

(Optional) Keyword used to specify additional flow information (protocol family and protocol port pair) to be matched.

protocol

(Optional) Keyword used to specify flow information; valid values include tcp,udp, icmp, or a decimal number for other protocol families.

src_port

(Optional) Source port IP address.

dst_port

(Optional) Destination port IP address.

all

(Optional) Keyword used to specify all NFLS entries.

 

 


Command Description:

 

Use the clear mls command set to clear the MLS feature in the Catalyst 5000 series switch.

If you enter any of the clear mls commands on a Catalyst 5000 series switch without MLS, the following warning message is displayed:


MLS not supported on feature card.

When you remove an RSM from the Catalyst 5000 series switch, it is immediately removed from the inclusion list and all the NFLS entries for the RSM are removed.

Up to 16 routers can be explicitly included.

To use a router as an NFLS, you must meet the following conditions:

 

 

Use the following syntax to specify an IP subnet address:

 

 

If you do not use the all argument in the clear mls entry command, you must specify at least one of the other three keywords (source, destination, or flow) and its arguments.

A 0 value for source_port and destination_port clears all entries. Unspecified options are treated as wildcards and all entries are cleared.

 


Example:

 

This example shows how to disable MLS for the Stargate router (IP address 172.20.15.1):

Console> (enable) clear mls include Stargate
 
Multilayer switching is disabled for router 172.20.15.1 (Stargate)
Console>(enable)
 

This example shows how to clear additional flow information (protocol family and protocol port pair):

Console> (enable) clear mls nde flow
 
Netflow data export filter cleared.
Console>(enable)
 

This example shows how to clear MLS statistics, including: total packets switched and total packets exported (for NDE):

Console> (enable) clear mls statistics
 
Netflow data export statistics cleared.
Console>(enable)
 

This example shows how to clear the MLS entries with destination IP address 172.20.26.22:

Console>(enable) clear mls entry destination 172.20.26.22
 
Multilayer switching entry cleared.
Console>(enable)
 

This example shows how to clear specific MLS entries for destination IP address 172.20.26.22:

Console>(enable) clear mls destination 172.20.26.22 source 172.20.22.113 flow tcp 520 320
 
Multilayer switching entry cleared
Console>(enable)


Misconceptions:

 

None


Related Commands:

 

set mls

 

show mls

 


� Cisco Systems, Inc. 2001, 2002, 2003
World Wide Education

Converted from CHM to HTML with chm2web Pro 2.85 (unicode)