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:

The DHCP relay and hop count increment settings appear in the show config command output only if the nondefault values are configured.

Displaying startup configuration with DHCP relay disabled

switch# show config
Startup configuration:
; J9726A Configuration Editor; Created on release #xx.15.xx
hostname “switch”
cdp run
module 1 type J9726A
ip default-gateway 18.30.240.1
snmp-server community “public” Unrestricted
vlan 1
  name “DEFAULT_VLAN”
  untagged A1
  ip address 18.30.240.180 255.255.248.0
  no untagged A2-A24
  exit
no dhcp-relay1

1Non-Default DHCP Relay setting