Reference Guide
Interfaces | 563
Parameters
Defaults
Without an interface specified, the command clears all interface counters.
Command Modes
EXEC Privilege
Command
History
Example
Figure 23-1. clear counters Command Example
Related
Commands
interface
(OPTIONAL) Enter any of the following keywords and slot/port or number to clear
counters from a specified interface:
• For a 1-Gigabit Ethernet interface, enter the keyword
GigabitEthernet
followed by the slot/port information.
• For a Loopback interface, enter the keyword
loopback followed by a number
from 0 to 16383.
• For a Port Channel interface, enter the keyword
port-channel followed by a
number:
C-Series and S-Series Range: 1-128
E-Series Range: 1 to 32 for EtherScale, 1 to 255 for TeraScale and 1 to 512 for
ExaScale.
• For the management interface on the RPM, enter the keyword
ManagementEthernet followed by slot/port information. The slot range is
0-1, and the port range is 0.
• For a SONET interface, enter the keyword
sonet followed by the slot/port
information.
• For a 10-Gigabit Ethernet interface, enter the keyword
TenGigabitEthernet
followed by the slot/port information.
• For a VLAN, enter the keyword
vlan followed by a number from 1 to 4094.
vrrp
[[ipv6] vrid]
(OPTIONAL) Enter the keyword vrrp to clear the counters of all VRRP groups. To
clear the counters of VRRP groups on all IPv6 interfaces, enter
ipv6. To clear the
counters of a specified group, enter a
vrid number from 1 to 255.
vrrp
[vrf instance]
(OPTIONAL) E-Series only: Enter the keyword vrrp to clear counters for all VRRP
groups. To clear the counters of VRRP groups in a specified VRF instance, enter the
name of the instance (32 characters maximum). IPv6 VRRP groups are not supported.
learning-limit (OPTIONAL) Enter the keyword learning-limit to clear unknown source address
(SA) drop counters when MAC learning limit is configured on the interface.
Note: This option is not supported on the S-Series, as the MAC learning limit
is not supported
Version 8.4.1.0 On the E-Series, support was added for VRRP groups in a VRF instance.
Version 8.2.1.0 Support for 4093 VLANs on E-Series ExaScale. Prior to release supported 2094.
Version 8.1.1.0 Introduced on E-Series ExaScale
Version 7.6.1.0 Introduced on S-Series
Version 7.5.1.0 Introduced on C-Series
Version 6.5.1.0 Updated definition of the learning-limit option for clarity.
FTOS#clear counters
Clear counters on all interfaces [confirm]
mac learning-limit Allow aging of MACs even though a learning-limit is configured or disallow
station move on learnt MACs.
show interfaces Displays information on the interfaces.