<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]undo inf e
Info: Information center is disabled.
[Huawei]sys DHCP
[DHCP]dhcp en
[DHCP]ip pool vlan100
[DHCP-ip-pool-vlan100]network 192.168.1.0 mask 24
[DHCP-ip-pool-vlan100]gateway-list 192.168.1.1
[PC]int vlanif1
[PC-Vlanif1]ip add 192.168.1.1 24
[PC-Vlanif1]dhcp select global
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]undo inf e
Info: Information center is disabled.
[Huawei]sys PC
[PC]dhcp en
[PC]int vlanif1
[PC-Vlanif1]ip ad dhcp-alloc
[PC-Vlanif1]dis ip int br
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
The number of interface that is UP in Physical is 2
The number of interface that is DOWN in Physical is 1
The number of interface that is UP in Protocol is 2
The number of interface that is DOWN in Protocol is 1
Interface IP Address/Mask Physical Protocol
MEth0/0/1 unassigned down down
NULL0 unassigned up up(s)
Vlanif1 192.168.1.254/24 up up
原文:https://www.cnblogs.com/lytanz/p/15054290.html