DHCP Relay configuration


Purpose:

This article helps to understand what is DCHP Relay, how to configure VOS as DHCP relay and what happens when multiple DHCP forwarders are configured.

DHCP Relay:

A DHCP relay is a network device or software component that facilitates the distribution of DHCP messages between DHCP clients and DHCP servers that are located on different subnets or network segments.

Use cases:

Topology:

Working:

  1. DHCP Client sends the Discover packet to the DHCP Relay
  2. The DHCP Relay receives the Discover packet and forwards it to all the configured DHCP Servers.
  3. Each DHCP Server sends DHCP Offer packet to the client. The DHCP relay agent receive the Offer packet and forwards them to the DHCP Client.
  4. On receiving the Offer packet, the client selects the DHCP Server from which to obtain the Configuration information. Usually it depends on the client algorithms on which offer to choose.
  5. The client sends the request packet that specifies the DHCP server from which to obtain the configuration.
  6. The DHCP relay agent receives the DHCP Request and forwards it to the DHCP server.
  7. The DHCP Server requested by the client sends an ACK packet that contains client configuration parameters.
  8. DHCP Relay then forwards the ACK packet to the Client and the Client saves the configuration information.

Configuration:

Under "Match" Tab configure criteria based on which the DHCP messages are selected for forwarding to the DHCP server.

Under "Relay settings" select the configured Reay Profile.

Note: Logging for Relay is not applicable and will be removed in future releases.

Verification:

Relay Statistics can be checked using: show orgs org-services <Org-Name> dhcp statistics dhcp relay-profile

PCAP on DHCP Relay LAN (CPE4):