Specifications
2-121
Catalyst 4500 Se ries S wit ch C is co IO S C om mand R efer ence —Re lease I OS XE 3 .3.0 XO(1 5.1 (1)XO)
OL_28738-01
Chapter 2 Cisco IOS Commands for the Catalyst 4500 Series Switches
counter
counter
To assign counters to a Layer 3 interfa ce, use the counter interface command. To remove a counter
assignment, use the no form of this command.
counter {ipv4 | ipv6 | ipv4 ipv6 separate}
no counter
Syntax Description
Defaults Not enabled
Command Modes Interface configuration
Usage Guidelines Entering the counter command without keywords displays the statist ics as a sum.
The total number of switch ports that can possess transmit and receive counters is 4092.
When you change a Layer 3 port assigned w ith a counter to a Layer 2 port, the ha rdware counters are
cleared. This action is similar to entering the no counter command.
Examples The following exam ple shows how to enable counte rs on interface VLAN 1:
Switch# configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)# interface vlan 1
Switch(config-if)# counter ipv4
Switch(config-if)# end
Switch#
00:17:15: %SYS-5-CONFIG_I: Configured from console by console
Switch# show run interface vlan 1
Building configuration...
Current configuration : 63 bytes
!
interface Vlan1
ip address 10.0.0.1 255.0.0.0
counter ipv4
end
Note To remove the counter assignment, use the no counter command.
ipv4 Enables collection of IPv4 statistics only.
ipv6 Enables collection of IPv6 statistics only.
ipv4 ipv6 separate Enables collection of IPv4 and IPv6 statistics and displays them individually.