This article will guide you to configure DHCP Server on Huawei router device according to the following example model.
![]()
– The example model has been configured accordingly, you can refer to this article.
– First turn on the DHCP feature on the router.
system-view
(Router)dhcp enabled
– Create IP level pool for VLAN 10.
(Router)ip pool pool_vlan10
(Router-ip-pool-pool_vlan10)gateway-list 192.168.10.1
(Router-ip-pool-pool_vlan10)network 192.168.10.0 mask 24
(Router-ip-pool-pool_vlan10)dns-list 8.8.8.8
(Router-ip-pool-pool_vlan10)lease day 0 hour 8 minute 0
– Configure GigabitEthernet 0/0/1.10 interface using global IP address pool
(Router)interface GigabitEthernet 0/0/1.10
(Router-GigabitEthernet0/0/1.10)dhcp select global
– For VLAN 20, we will configure DHCP directly on the interface instead of configuring it globally.
(Router)interface GigabitEthernet 0/0/1.20
(Router-GigabitEthernet0/0/1.20)dhcp select interface
(Router-GigabitEthernet0/0/1.20)dhcp server dns-list 8.8.8.8
(Router-GigabitEthernet0/0/1.20)dhcp server lease day 0 hour 8 minute 0
save
– Check the created pool.
![]()
– Check Host has received IP.
![]()
![]()
!!! Thank you for following the article!!!
Xem tiếp...