Users Guide

Table Of Contents
Supported
Releases
10.5.2.1 or later
show ip dhcp-relay-counters
Displays the statistics of the DHCP packets received or transmitted by the relay agent.
Syntax
show ip dhcp-relay-counters {interface [ethernet node/slot/port | port-
channel id-number | vlan vlan-id | virtual-network vn-id | <cr>}}
Parameters
interface Displays the interface statistics corresponding to the DHCP packet.
ethernet node/slot/port (Optional) Displays the statistics corresponding to the ethernet
node, slot and port of the DHCP packet.
port-channel id-number (Optional) Displays the statistics corresponding to the port-channel
id-number of the DHCP packet.
vlan vlan-id (Optional) Displays the statistics corresponding to the VLAN vlan-id of the DHCP
packet.
vitual-network vn-id (Optional) Displays the statics corresponding to the virtual-network
vn-id of the DHCP packet.
Defaults None
Command Mode EXEC
Usage
Information
The show ip dhcp relay counters interface <interface> command displays the count of
DHCP packets received, transmitted, dropped on the specified interface that is enabled with the helper
address.
The show ip dhcp relay counters command displays the count of DHCP packets received,
transmitted, or dropped on all interfaces enabled with helper address.
The show commands with interface option in which DHCPv4 helper address is not configured display an
error message.
The show relay counters command displays the following information:
Recently cleared Timestamp.
BOOTREQUEST messages received by the relay agent.
DHCP DISCOVER messages received by the relay agent.
DHCP REQUEST messages received by the relay agent.
DHCP RELEASE messages received by the relay agent.
DHCP INFORM messages received by the relay agent.
DHCP DECLINE messages received by the relay agent.
BOOTREQUEST messages forwarded by the relay agent.
BOOTREPLY messages forwarded by the relay agent.
DHCP OFFER messages sent by the relay agent.
DHCP ACK messages sent by the relay agent.
DHCP NACK messages sent by the relay agent.
DHCP packets dropped due to an invalid opcode.
DHCP packets dropped due to an invalid option.
Total number of DHCP packets dropped at the requested interface by the relay agent.
Security and
Access
This command is applicable to all user roles.
Example
OS10#show ip dhcp-relay counters interface ethernet1/1/1
Interface : ethernet 1/1/1
Last cleared : 1 weeks 6 days 18:31:16
PACKETS RECEIVED
----------------------
Bootrequest :5
Discover :3
Request :2
Release :0
System management 311