Displaying DHCP-relay Statistics for Specific Ports

Display individual DHCP-relay statistics for specific ports to manage network performance.

Note

Note

Slot and port information can differ depending on hardware platform.

Procedure

  1. Enter Privileged EXEC mode:

    enable

  2. View DHCP-relay statistics for a specific port or VRF.

    show interfaces GigabitEthernet statistics dhcp-relay [vrf WORD<1-16>] [vrfids WORD<0-255>]|{slot/port[/sub-port][-slot/port[/sub-port]][,...]}}

Example

View DHCP-relay statistics:

Switch:1>enable
Switch:1#show interfaces gigabitethernet statistics dhcp-relay

================================================================================
                                Port Stats Dhcp
================================================================================
PORT_NUM VRF NAME         NUMREQUEST NUMREPLY  
--------------------------------------------------------------------------------
1/12     GlobalRouter     0          2         
1/13     GlobalRouter     3          2         
2/3      GlobalRouter     0          2         
--------------------------------------------------------------------------------

Variable Definitions

Use the data in the following table to use the show interfaces GigabitEthernet statistics dhcp-relay command.

Variable

Value

vrf WORD<1-16>

Specifies a VRF instance by VRF name.

vrfids WORD<0-255>

Specifies the ID of the VRF.

{slot/port[/sub-port][-slot/port[/sub-port]][,...]}

Identifies the slot and port in one of the following formats: a single slot and port (1/1).

Identifies the slot and port in one of the following formats: a single slot and port (slot/port), a range of slots and ports (slot/port-slot/port), or a series of slots and ports (slot/port,slot/port,slot/port). If the platform supports channelization and the port is channelized, you must also specify the sub-port in the format slot/port/sub-port.