DHCP relay
You can enable the Layer 3 DHCP relay agent on the switch and let the switch relay DHCP messages between DHCP clients and DHCP servers that are located in a different IP subnet.
To configure the global DHCP relay settings and display relay statistics:
- Open a web browser and log in to the switch. For more information, see Log in to the main UI with a known IP address.
The System Information page displays.
- Select System > Services > DHCP Relay.
The DHCP Relay page display.
- in the Maximum Hop Count field, enter the maximum number of hops a client request can take before being discarded.
The range is from 1 to 16. The default is 4.
- Select the Admin mode Disable or Enable radio button to disable or enable the DHCP relay on the switch.
- In the Minimum Wait Time field, enter the minimum time in seconds that the DHCP relay must wait before forwarding requests.
The time is compared to the time stamp in the client's DHCP request packets, which represents the time since the client was powered up. Packets are forwarded only when the time stamp exceeds the minimum wait time. The range is from 0 to 100.
- Select one of the following Circuit ID Option Mode radio buttons:
-
Disable: Relay agent options are not added to requests before they are forwarded to the server and not removed from replies before they are forwarded to clients.
-
Enable: Relay agent options are added to requests before they are forwarded to the server and removed from replies before they are forwarded to clients.
-
- Click the Apply button.
Your settings are saved.
- To save the settings to the running configuration, click the Save icon.
- To refresh the information on the page, click the Refresh button.
The following table describes the view-only fields on the page.
Table 1. DHCP relay status information Field
Description
DHCP client messages received
The number of DHCP requests received from the clients.
DHCP client messages relayed
The number of DHCP requests forwarded to the servers.
DHCP server messages received
The number of DHCP server messages received from the servers.
DHCP server messages relayed
The number of DHCP server messages forwarded from the servers.
UDP client messages received
The number of UDP requests received from the clients. These are message that are transmitted over UDP from a DHCP client (external to the switch) and that are detected by the DHCP relay on the switch.
UDP client messages relayed
The number of UDP requests forwarded to the servers. These are message that are relayed over UDP to a DHCP server (external to the switch) and that are detected by the DHCP relay on the switch.
DHCP message hop count exceeded max
The number of DHCP client messages received for which the hop count exceeds the configured maximum hop count. These messages are not relayed.
DHCP message with secs field below min
The number of DHCP client messages received for which the minimum wait time is shorter than the configured minimum value. These messages are not relayed.
DHCP message with giaddr set to local address
The number of DHCP client messages received for which the gateway address (giaddr) is already set to an IP address configured on one of the relay agents own IP addresses. In this situation, another device might be attempting to spoof the relay agents address. These messages are not relayed.
Packets with expired TTL
The number of packets received with a time to live of 0 seconds or 1 second. These packets are not relayed.
Packets that matched a discard entry
The number of packets ignored by the relay agent because the packets match a discard relay entry.