Verifying the DHCP relay configuration

Viewing the DHCP relay setting

Use the show config command (or show running for the running-config file) to display the current DHCP relay setting.


[NOTE: ]

NOTE: The DHCP relay and hop count increment settings appear in the show config command output only if the non-default values are configured. For more information about the DHCP hop count increment, see Hop count in DHCP requests.


Displaying startup configuration with DHCP relay and hop count increment disabled

Viewing DHCP helper addresses

This command displays the list of currently configured IP Helper addresses for a specified VLAN on the switch.

Syntax:

show ip helper-address [vlan vlan-id]

Displays the IP helper addresses of DHCP servers configured for all static VLANS in the switch or on a specified VLAN, regardless of whether the DHCP relay feature is enabled. The vlan vlan-id parameter specifies a VLAN ID number.

Example

The following command lists the currently configured IP Helper addresses for VLAN 1.

Displaying IP helper addresses

HP Switch(config)# show ip helper-address vlan 1

 IP Helper Addresses

  IP Helper Address
  -----------------
  10.28.227.97
  10.29.227.53

Viewing the hop count setting

To verify the current setting for increasing the hop count in DHCP requests, enter the show dhcp-relay command. The current setting is displayed next to DHCP Request Hop Count Increment.

Displaying hop count status

HP Switch# show dhcp-relay
Status and Counters - DHCP Relay Agent
DHCP Relay Agent Enabled       : Yes
DHCP Request Hop Count Increment: Disabled 
Option 82 Handle Policy        : Replace 
Remote ID                      : MAC Address

Client Requests       Server Responses
Valid     Dropped      Valid    Dropped
-------- ---------    -------- ---------
1425          2         1425      0