Layer 3 statistics
The following table describes basic Layer 3 statistics commands. The following sections provide more detailed information and commands. Layer 3 functionality is limited in this release.
Table 39 Layer 3 Statistics commands
Command | Usage |
show ip counters | Displays IP statistics. |
| Command mode: All except UserEXEC |
clear ip counters | Clears IP statistics. Use this command with caution as it deletes |
| all the IP statistics. |
| Command mode: All except UserEXEC |
show ip arp counters | Displays Address Resolution Protocol (ARP) statistics. |
| Command mode: All except UserEXEC |
show ip dns counters | Displays Domain Name System (DNS) statistics. |
| Command mode: All except UserEXEC |
show ip icmp counters | Displays ICMP statistics. |
| Command mode: All except UserEXEC |
show ip tcp counters | Displays Transmission Control Protocol (TCP) statistics. |
| Command mode: All except UserEXEC |
show ip udp counters | Displays User Datagram Protocol (UDP) statistics. Add the |
| argument, clear, to clear UDP statistics. |
| Command mode: All except UserEXEC |
show ip igmp counters | Displays IGMP statistics. |
| Command mode: All except UserEXEC |
clear ip igmp | Clears all IGMP statistics for the selected VLANs. |
| Command mode: All above Priv EXEC |
show layer3 counters | Displays all Layer 3 statistics. |
| Command mode: All except UserEXEC |
IP statistics
The following command displays IP statistics: show ip counters
Command mode: All except User EXEC
IP statistics: |
|
ipInReceives: 36475 | ipInHdrErrors: 0 |
ipInAddrErrors: 905 |
|
ipInUnknownProtos: 0 | ipInDiscards: 0 |
ipInDelivers: 4103 | ipOutRequests: 30974 |
ipOutDiscards: 0 |
|
ipDefaultTTL: 255 |
|
The following table describes the IP statistics:
Table 40 IP statistics
Statistics | Description |
ipInReceives | The total number of input datagrams received from interfaces, including those |
| received in error. |
ipInHdrErrors | The number of input datagrams discarded due to errors in their IP headers, including |
| bad checksums, version number mismatch, other format errors, |
| errors discovered in processing their IP options, and so on. |
ipInAddrErrors | The number of input datagrams discarded because the IP address in their IP header |
| destination field was not a valid address to be received at this switch. This count |
| includes invalid addresses (for example, 0.0.0.0) and addresses of unsupported |
| classes (for example, Class E). |
| For entities which are not IP gateways and therefore do not forward datagrams, this |
| counter includes datagrams discarded because the destination address was not a |
| local address. |
ipInUnknownProtos | The number of locally addressed datagrams received successfully but discarded |
| because of an unknown or unsupported protocol. |
Statistics commands 47