
The configuration steps:
[Huawei] undo inf e
[Huawei] int g0/0/0
Huawei - GigabitEthernet0/0/0 IP add 192.168.10.1 24
Huawei - GigabitEthernet0/0/0
[Huawei] DHCP enable
[Huawei] IP pool dhcp1
[Huawei - IP - the pool - dhcp1] network 192.168.10.0 mask 24
[Huawei - IP - the pool - dhcp1] gateway - list 192.168.10.254
[Huawei - IP - the pool - dhcp1] DNS - list 8.8.8.8
[Huawei - IP - the pool - dhcp1] q
[Huawei] int g0/0/0
Huawei - GigabitEthernet0/0/0 DHCP select global
View information

