CLI Guide

Table Of Contents
Layer 3 Routing Commands 1485
ip dhcp relay maxhopcount
Use the ip dhcp relay maxhopcount command in Global Configuration mode
to configure the maximum allowable relay agent hops for BootP/DHCP Relay
on the system. Use the no form of the command to set the maximum hop
count to the default value.
Syntax
ip dhcp relay maxhopcount integer
no ip dhcp relay maxhopcount
integer — Maximum allowable relay agent hops for BootP/DHCP Relay on
the system. (Range: 1-16)
Default Configuration
The default integer configuration is 4.
Command Mode
Global Configuration mode, Virtual Router Configuration mode.
User Guidelines
Enable DHCP Relay using the
ip helper enable
command.
When in Virtual Router Configuration mode, this command operates within
the context of the virtual router instance. When in Global Configuration
mode, the command operates on the global router instance.
Virtual Router Configuration mode is only available on the N3000-
ON/N3100/N3200 switches.
Example
The following example defines a maximum hopcount of 6.
console(config)#ip dhcp relay maxhopcount 6