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:

system-view

Specify a name for the switch:

sysname ixnfo.com

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

vlan 208
quit

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
quit

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

interface vlanif 208
ip address dhcp-alloc
quit

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
quit

You may need to enter the following command:

dhcp enable

Exit the system environment and save the configuration:

quit
save

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