Quick Reference Guide
DHCP | 133
Configuring the Switch as a DHCP Relay Agent
Implement the DHCP relay agent feature with bootpdhcprelay commands, all in Global Config mode. For
details on these commands, see the Bootp/DHCP Relay Commands section of the Routing Commands
chapter in the
SFTOS Command Reference.
Verifying the DHCP Relay Agent Configuration
Use the show bootpdhcprelay command to verify the DHCP Relay Agent configuration, as shown in
Figure 8-93.
Figure 8-93. Using the show bootpdhcprelay Command
Configuration Example — DHCP Server and Relay Agent
In the following example, a DHCP address pool is created for PCs on the 10.1.3.0 network. In this pool, all
addresses except the excluded address, which is the router’s IP address, are available to the DHCP server
for assigning to clients.
Step Command Mode Purpose
1
bootpdhcprelay
serverip
ip-address
Global Config Enter the IP address of the DHCP server.
2
bootpdhcprelay enable
Global Config Enable forwarding of BootP/DHCP requests. By default, the
DHCP relay agent feature is disabled.
3
bootpdhcprelay
maxhopcount
1-16
Global Config (Optional) Configure the maximum allowable relay agent hops.
The parameter has a range of 1 to 16. By default, the packet will
be forwarded a limit of four hops.
4
bootpdhcprelay
minwaittime
0-100
Global Config (Optional) Configure the minimum wait time in seconds for
BootP/DHCP relay requests. When the BootP relay agent receives
a BOOTREQUEST message, it may use the
seconds-since-client-began-booting field of the request as a factor
in deciding whether to relay the request or not. The parameter has
a range of 0 to 100 seconds. The default value is 0 seconds.
Force10 #show bootpdhcprelay
Maximum Hop Count.............................. 4
Minimum Wait Time(Seconds)..................... 0
Admin Mode..................................... Enable
Server IP Address.............................. 10.16.1.2
Circuit Id Option Mode......................... Disable
Requests Received.............................. 0
Requests Relayed............................... 0
Packets Discarded.............................. 0