How to configure DHCP client on Huawei Sx300

For example, I will configure a DHCP client on the Huawei S2326TP-EI switch so that it receives an IP address from a DHCP server.

Let’s go to the system environment from the user environment:


Specify a name for the switch:


Let’s add the necessary VLANs, for example, I used vlan 208 to manage the switch:

vlan 208

Set up a network interface, for example gigabitethernet 1/0/1 I used as an uplink:

interface gigabitethernet 1/0/1
port link-type trunk
port trunk allow-pass vlan 208

Now let’s create an interface in vlan 208 and enable the DHCP client:

interface vlanif 208
ip address dhcp-alloc

If no vlans were added on the switch and all ports are configured as access (without vlan tags), then we activate the DHCP client in vlan 1, which is the default and is configured on all ports:

interface vlanif 1
ip address dhcp-alloc

You may need to enter the following command:

dhcp enable

Exit the system environment and save the configuration:


Let’s check the receipt of the IP address from the DHCP server:

display dhcp client

See also my article:
Configuring Huawei Quidway S2326TP-EI

Leave a comment

Leave a Reply