Configure the DHCP server based on the interface address pool on the AR

Configure the DHCP server based on the interface address pool, that is, assign IP addresses to the interfaces. The AR assigns the IP addresses on the same network segment as the interface IP address to clients.
This mode is easy to configure and applies to the scenario where the DHCP server and clients are on the same network segment, that is, no DHCP relay agent exists. Perform the following configuration:
[Huawei] dhcp enable //Enable the DHCP function.
[Huawei] interface ethernet 2/0/0 //Enter the view of the interface connected to the DHCP clients.
[Huawei-Ethernet2/0/0] port link-type access
[Huawei-Ethernet2/0/0] port default vlan 10
[Huawei-Ethernet2/0/0] quit
[Huawei] interface vlanif 10
[Huawei-Vlanif10] ip address 10.1.1.1 24 //Configure the network segment where the DHCP client is located as 10.1.1.1 24.
[Huawei-Vlanif10] quit
[Huawei] interface vlanif 10
[Huawei-Vlanif10] dhcp select interface //Enable the DHCP server based on the interface address pool.
[Huawei-Vlanif10] dhcp server lease day 30 //Set the DHCP address lease to 30 days.
[Huawei-Vlanif10] quit

Other related questions:
Configure the DHCP server based on the global address pool on the AR
If you have more questions, you can seek help from following ways:
To iKnow To Live Chat To Google
Scroll to top