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.


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
snmp-server community “public” Unrestricted
vlan 1
  untagged A1
  ip address
  no untagged A2-A24
no dhcp-relay1

1Non-Default DHCP Relay setting