User Guide

Command Line Interface
7-38
7
DHCP Relay Commands
Dynamic Host Configuration Protocol (DHCP) can dynamically allocate an IP
address and other configuration information to network clients that broadcast a
request. To receive the broadcast request, the DHCP server would normally have to
be on the same subnet as the client. However, when the access point’s DHCP relay
agent is enabled, received client requests can be forwarded directly by the access
point to a known DHCP server on another subnet. Responses from the DHCP
server are returned to the access point, which then broadcasts them back to clients.
dhcp-relay enable
This command enables the access point’s DHCP relay agent. Use the no form to
disable the agent.
Syntax
[no] dhcp-relay enable
Default Setting
Disabled
Command Mode
Global Configuration
Command Usage
For the DHCP relay agent to function, the primary DHCP server must be
configured using the dhcp-relay primary command. A secondary DHCP
server does not need to be configured, but it is recommended.
If there is no response from the primary DHCP server, and a secondary
server has been configured, the agent will then attempt to send DHCP
requests to the secondary server.
Example
Table 7-8. DHCP Relay Commands
Command Function Mode Page
dhcp-relay enable Enables the DHCP relay agent GC 7-39
dhcp-relay Sets the primary and secondary DHCP server
address
GC 7-40
show dhcp-relay Shows current DHCP relay configuration settings Exec 7-40
Enterprise AP(config)#dhcp-relay enable
Enterprise AP(config)#