|
|
2
Use the clear interface gigabitethernet command to clear the hardware logic on a Gigabit Ethernet IEEE 802.3z interface.
clear interface gigabitethernet number
Syntax Description
number Number of the Gigabit Ethernet interface number; valid values are from 1 to 9.
Defaults
This command has no default setting.
Command Modes
Privileged EXEC mode.
Examples
This example shows how to clear the hardware logic on a Gigabit Ethernet IEEE 802.3z interface:
Router#clear interface gigabitethernet 5Router#
Use the clear interface vlan command to clear the hardware logic on a VLAN.
clear interface vlan number
Syntax Description
number Number of the VLAN interface; valid values are from 1 to 1000.
Defaults
This command has no default setting.
Command Modes
Privileged EXEC mode.
Examples
This example shows how to clear the hardware logic on a specific VLAN:
Router#clear interface vlan 5Router#
Use the clear ip access-template command to clear access list statistical information.
clear ip access-template access-list
Syntax Description
access-list Number of the access-list; valid values are from 100 to 199 for an IP extended access list and from 2000 to 2699 for an expanded range IP extended access list.
Defaults
This command has no default setting.
Command Modes
Privileged EXEC mode.
Examples
This example shows how to clear access list statistical information:
Router#clear ip access-template 201Router#
Use the clear mac-address-table dynamic command to clear dynamic address entries from the Layer 2 MAC address table. Use the no form of this command to remove static Layer 2 entries you have configured.
clear mac-address-table dynamic [{address mac_addr | all | interface {interface} | protocol {assigned | ip | ipx | other} | vlan vlan [all | protocol {assigned | ip | ipx | other}}] ]
Syntax Description
address mac_addr (Optional) Keyword and variable to specify the MAC address. all Keyword to clear all entries. interface interface Keyword and variable to specify the interface and clear the entries associated with it; valid values are Ethernet, FastEthernet, and GigabitEthernet. protocol assigned Keyword to specify assigned protocol bucket accounts for such protocols as DECnet, Banyan VINES, and AppleTalk. protocol ip | ipx Keywords to specify the protocol type of the entries to clear. protocol other Keywords to specify protocol types (other than IP or IPX) of the entries to clear. vlan vlan (Optional) Keyword and variable to specify the VLANs.
Defaults
This command has no default setting.
Command Modes
Privileged EXEC mode.
Usage Guidelines
Enter the clear mac-address-table dynamic command with no arguments to remove all dynamic entries from the table.
Examples
This example shows how to clear all dynamic Layer 2 entries for a specific interface (e2/1) and protocol type (IPX):
Router#clear mac-address-table dynamic interface e2/1 protocol ipxRouter#
Related Commands
mac-address-table aging-time
mac-address-table static
show mac-address-table address
Use the clear mls commands to clear IP and IPX shortcut entries in the Layer 3 table.
clear mls ip [[slot slot_num] [destination ip_addr_spec] [source ip_addr_spec] [flow {tcp | udp} {src_port | any} {dst_port | any}] [macs mac_addr] [macd mac_addr] [interface i/f_num]] | [all]
Syntax Description
ip Keyword to specify IP MLS. ipx Keyword to specify IPX MLS. slot slot_num (Optional) Keyword and variable to clear ATM addresses on this slot. destination ip_addr_spec (Optional) Keyword and variable to specify the destination full IP address or a subnet address. See the "Usage Guidelines" section for formatting guidelines. source ip_addr_spec (Optional) Keyword and variable to specify the source full IP address or a subnet address. See the "Usage Guidelines" section for formatting guidelines. flow tcp (Optional) Keywords to clear TCP flow information. flow udp (Optional) Keywords to clear UDP flow information. src_port Source port purge filter type; valid values are FTP, WWW, SMTP, X, or DNS. dst_port Destination port purge filter type; valid values are FTP, WWW, SMTP, X, or DNS. any Keyword to specify any filter type. macs mac_addr (Optional) Keyword and variable to specify the source MAC addresses to consider when searching for entries to purge. macd mac_addr (Optional) Keyword and variable to specify the destination MAC addresses to consider when searching for entries to purge. interface i/f_num (Optional) Keyword and variable to clear entries associated with the specified VLAN or interface. all (Optional) Keyword to clear all entries. destination ipx_network (Optional) Keyword and variable to specify the destination IPX address. See the "Usage Guidelines" section for formatting guidelines. ipx_node (Optional) IPX node address. See the "Usage Guidelines" section for formatting guidelines. source ipx_network (Optional) Keyword and variable to specify the source IPX address. See the "Usage Guidelines" section for formatting guidelines.
Defaults
This command has no default setting.
Command Modes
Privileged EXEC mode.
Usage Guidelines
Entering any combination of input parameters will narrow down the search of entries to be cleared. Source_port and destination_port should be specified as one of the following: telnet, FTP, WWW, SMTP, X, or DNS.
When entering the IPX address syntax, use the following format:
Up to 16 routers can be included explicitly as MLS-RPs.
To use a router as an MLS, you must meet these conditions:
Use the following syntax to specify an IP subnet address:
If you do not use the all argument, you must specify at least one of the other four keywords (source, destination, flow, or interface) and its arguments.
A 0 value for src_port and dst_port clears all entries. Unspecified options are treated as wildcards, and all entries are cleared.
Examples
This example shows how to clear all entries associated with specific interface (e2/2) that have a specific destination IP address (173.11.50.89):
Router#clear mls ip destination 173.11.50.89 interface e2/2Router#
Use the clear mls exclude protocol command to remove an MLSE entry.
clear mls exclude protocol {tcp | udp | all} [port port_number]
Syntax Description
tcp Keyword to specify a TCP port. udp Keyword to specify a UDP port. all Keyword to specify that the port be applied to both TCP and UDP traffic. port port_number (Optional) Keyword and variable to specify the number of the port.
Defaults
This command has no default setting.
Command Modes
Privileged EXEC mode.
Examples
This example shows how to set TCP packets in a protocol port to be hardware switched:
Router#clear mls exclude protocol tcp 25Router#
Use the clear mls ip multicast statistics command to reset the IP multicast statistics counters.
clear mls ip multicast statisticsSyntax Description
This command has no keywords or arguments.
Defaults
This command has no default setting.
Command Modes
Privileged EXEC mode.
Examples
This example shows how to reset the IP multicast statistics counters:
Router#clear mls ip multicast statisticsRouter#
Use the clear mls nde flow command to clear the NDE filter in the Catalyst 6000 family switches.
clear mls nde flow {exclude | include | all}
Syntax Description
exclude Keyword to clear the exclusion filter. include Keyword to clear the inclusion filter. all Keyword to clear both the exclusion and inclusion filters.
Defaults
This command has no default setting.
Command Modes
Privileged EXEC mode.
Usage Guidelines
If you clear both exclusion and inclusion filters, all flows are exported.
Examples
This example shows how to clear the NDE exclude filter:
Router#clear mls nde flow excludeRouter#
This example shows how to clear the NDE include filter:
Router#clear mls nde flow includeRouter#
This example shows how to clear both NDE filters:
Router#clear mls nde flow allRouter#
Use the clear pagp command to clear port-channel information.
clear pagp {group-number | counters}
Syntax Description
group-number Channel group number; valid values are from 0 to 32767. counters Keyword to clear traffic filters.
Defaults
This command has no default setting.
Command Modes
Privileged EXEC mode.
Examples
This example shows how to clear port-channel information for a specific group:
Router#clear pagp 324Router#
This example shows how to clear port-channel traffic filters:
Router#clear pagp countersRouter#
![]()
![]()
![]()
![]()
![]()
![]()
![]()
Posted: Thu Jul 20 15:01:43 PDT 2000
Copyright 1989-2000©Cisco Systems Inc.