[DHCP_ server]dhcp enable 开启DHCP功能
[DHCP_ server]ip pool huawei 创建DHCP地址池名称
[DHCP_ server-ip-pool-huawei]network 192.168.1.0 mask 24 配置网段
[DHCP_ server-ip-pool-huawei]gateway-list 192.168.1.1 配置网关
[DHCP_ server-ip-pool-huawei]dns-list 8.8.8.8 配置dns
[DHCP_ server-ip-pool-huawei]lease day 2 hour 2 minute 2 配置租期 [DHCP_ server-ip-pool-huawei]excluded-ip-address 192.168.1.100 192.168.1.254 排除地址 [DHCP_ server-ip-pool-huawei]static-bind ip-address 192.168.1.20 mac-address 5489-989F-2D4C 静态绑定 mac地址
[DHCP server]int g0/0/0
[DHCP _ server-GigabitEthernet0/0/0]ip address 192.168.1.1 24
[DHCP _ server-GigabitEthernet0/0/0]dhcp select global 接口下调用全局地址池