Displaying DHCP-relay Statistics for all Interfaces

About this task

Display DHCP-relay statistics for all interfaces to manage network performance.

Note

Note

Slot and port information can differ depending on hardware platform.

Procedure

  1. Show the number of requests and replies for each interface:

    show ip dhcp-relay counters [vrf WORD<1-16>] [vrfids WORD<0-512>]

  2. Show counters for Option 82:

    show ip dhcp-relay counters option82 [vrf WORD<1-16>] [vrfids WORD<0-512>]

Example

Switch:1>show ip dhcp-relay counters option82
===============================================================================================
                     DHCP Counters Option82 - GlobalRouter
===============================================================================================
                IP              FOUND DROP CIRC ADD  DEL  REMOTE             ADD    DEL
INTERFACE       ADDR            OP82  PKT  ID   CIRC CIRC ID                 REMID  REMID
-----------------------------------------------------------------------------------------------
Port 1/12                       0     0    395   0     0  00:24:7f:9d:0a:00  0      0     
Vlan40                          0     0    2088  0     0  00:24:7f:9d:0a:01  0      0   

Variable Definitions

Use the data in the following table to use the show ip dhcp-relay counters command.

Variable

Value

vrf WORD<1-16>

Specifies a VRF instance by the VRF name.

vrfids WORD<0-512>

Specifies the ID of the VRF.