After a DHCP relay agent is configured, it can forward DHCP Request messages from DHCP clients to the DHCP server on a different network segment.
If the DHCP clients and DHCP server reside on different network segments, configure DHCP relay on an interface to forward DHCP Request messages from the DHCP clients to the DHCP server so that the clients can dynamically obtain IP addresses from the DHCP server.
If the DHCP relay has multiple clients, and multiple interfaces on the DHCP relay function as gateways, each gateway uses a public IP address, which wastes resources. If the relay interface on a router uses an unnumbered address as the gateway address, public IP address resources will be greatly saved.
(Optional) Run dhcp dscp-outbound dscp
The differentiated services code point (DSCP) value is set for DHCP messages.
(Optional) Run dhcp ip-ttl ttl-value
The time to live (TTL) value is set for DHCP messages.
(Optional) Run dhcp relay reply broadcast-always
The DHCP relay is enabled to broadcast response packets upon receipt of client requests.