Accton Technology SMC2552WG2 Manuel D’Utilisation

Page de 293
Command Line Interface
6-38
6
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
[nodhcp-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 6-8. DHCP Relay Commands
Command
Function
Mode
Page
dhcp-relay enable
Enables the DHCP relay agent
GC
dhcp-relay
Sets the primary and secondary DHCP server 
address
GC
show dhcp-relay
Shows current DHCP relay configuration settings
Exec 
Enterprise AP(config)#dhcp-relay enable
Enterprise AP(config)#