Configuring DHCP Relays on Huawei Core Switches

To configure DHCP relay on a Huawei switch, create a DHCP server group, enable DHCP relay on the relevant VLAN, and bind the VLAN to the DHCP server group.Step-by-Step ConfigurationCreate a DHCP Serve...

Configuring DHCP Relays on Huawei Core Switches

To configure DHCP relay on a Huawei switch, create a DHCP server group, enable DHCP relay on the relevant VLAN, and bind the VLAN to the DHCP server group.

Step-by-Step Configuration

  1. Create a DHCP Server Group:
    • Access the switch's command line interface (CLI) and create a DHCP server group. This can be done using the following command:

      dhcp server group dhcpgroup1

  2. Add DHCP Servers to the Group:
    • Specify the IP addresses of the DHCP servers that will be used for IP address allocation:

      [Switch-dhcpgroup1] server-ip 10.10.10.1

  3. Enable DHCP Relay on the VLAN Interface:
    • Identify the VLAN interface (e.g., VLANIF 100) where you want to enable DHCP relay. Use the following command to enable it:

      interface Vlanif100[Switch-Vlanif100] dhcp select relay

  4. Bind the VLAN Interface to the DHCP Server Group:
    • Bind the VLAN interface to the DHCP server group you created earlier:

      [Switch-Vlanif100] dhcp relay binding server-group dhcpgroup1

  5. Configure the Default Route:
    • Ensure that the switch has a default route configured to reach the DHCP servers if they are on a different subnet:

      ip route-static 0.0.0.0 0.0.0.0 10.20.20.1

  6. Verify the Configuration:
    • After completing the configuration, you can verify the DHCP relay settings using the following command:

      display dhcp relay interface Vlanif100

    • This command will show the DHCP relay agent running information, including the server group name and gateway address in use .

Additional Notes

  • Activate DHCP Service: Ensure that the DHCP service is activated on the switch, even if it is only acting as a relay. This is crucial for the relay function to work properly .
  • Troubleshooting: If clients are not receiving IP addresses, check the VLAN configurations, ensure that the DHCP servers are reachable, and verify that the relay settings are correctly applied. By following these steps, you should be able to successfully configure DHCP relay on your Huawei switch, allowing clients on different VLANs to obtain IP addresses from a centralized DHCP server.
Nov 19, 2025

Configuring DHCP Relay

Procedure Configure DHCP relay in the intra-VPN scenario. Run system-view The system view is displayed. Run dhcp

Sep 10, 2025

DHCP Configuration on Huawei Switch – SYSTEMCONF

In this article, I will briefly show how to activate Dhcp on our Huawei device. After connecting to the CLI via console,

Oct 25, 2025

Example for Configuring the Device as a DHCP Relay (on the Same

Configure the DHCP relay on SwitchA (user gateway) to forward DHCP packets between the terminals and DHCP server. On

Mar 04, 2026

forum.huawei

We''re sorry but web site doesn''t work properly without JavaScript enabled. Please enable it to continue.

Dec 13, 2025

Configure DHCP relay on S series switch

Solution For S series switches (except S1700 switches), when the DHCP server and clients are on different network segments, you

Jun 18, 2026

Configure Dynamic Host Configuration Protocol (DHCP) Relay

This article provides instructions on how to configure DHCP Properties through the Command Line Interface (CLI) of

Feb 09, 2026

Huawei DHCP server configuration

If no separate DHCP server is available the Huawei router/switch can also be configured as a DHCP server. There

Mar 16, 2026

Huawei IP-Helper/DHCP relay configuration

If the DHCP is not in the same network, then the DHCP Discover and Request must be forwarded via DHCP Relay

Jan 12, 2026

Enabling the DHCP Relay Function

S1720, S2700, S5700, and S6720 V200R011C10 Configuration Guide - IP Service This document describes the configurations of IP

Oct 31, 2025

How do Huawei switches configure DHCP trunking? Relay

When Huawei switches are used, in many cases, we need to configure DHCP relay service on the layer-3 switch to

Dec 17, 2025

Huawei DHCP server configuration

This article describes two ways in which a DHCP server can be configured on a Huawei router or switch

Jun 21, 2026

01-03 DHCP CONFIGURATION

A client-server model forms the basis of DHCP and consists of two roles that a Huawei switch can fulfill: DHCP server and DHCP

Aug 14, 2025

Configuring a DHCP Relay Agent

The dhcp enable command is the prerequisite for configuring DHCP-related functions, including DHCP relay, DHCP

Feb 21, 2026

Huawei DHCP relay (relay) configuration tutorial

When the DHCP client and the DHCP server are connected via Layer 3 devices (not on the same network segment), the DHCP relay

Jul 20, 2026

Configuring DHCP Relay

Common ACL Operations Common QoS Operations Common SNMP Operations Common Mirroring Operations Common

Oct 11, 2025

Typical DHCP Configuration

On Switch_3, configure the DHCP relay function to function as the branch''s gateway to forward DHCP packets between the terminals

Sep 14, 2025

Example for Configuring a DHCP Relay Agent (DHCP Relay Agent and DHCP

S7700 V200R024C10 Configuration Guide - IP Service This document describes the configurations of IP service, including IP

Oct 30, 2025

Example for Configuring a DHCP Relay Agent (DHCP Relay Agent and DHCP

S1720, S2700, S5700, and S6720 V200R011C10 Configuration Guide - IP Service This document describes the configurations of IP

Dec 17, 2025

Example for Configuring a DHCP Relay Agent (DHCP Relay Agent and DHCP

Networking Requirements In Figure 3-15, SwitchB functions as a DHCP server and resides on a different network segment from

Aug 27, 2025

Example for Configuring DHCP Relay

This section provides an example for configuring a DHCP relay agent to forward DHCP messages between the DHCP clients and the

Apr 23, 2026

01-03 DHCP CONFIGURATION

If the broadcast flag bit is 1, the DHCP relay agent broadcasts the DHCP Reply message to the DHCP client; otherwise, the DHCP

Mar 26, 2026

01-03 DHCP CONFIGURATION

3.1 Overview of DHCP Definition The Dynamic Host Configuration Protocol (DHCP) automates the assignment of network

Broadcast Optical Network Insights

Need Reliable Broadcast Optical Network Equipment?

Contact us today for product inquiries, custom kits, or integration support