DHCP服务配置华为交换机

1、交换机开启dhcp服务
[Huawei] dhcp enable
2、配置用户网关,并在接口下开启dhcp全局模式
[Huawei] interface vlanif 11
[Huawei-Vlanif11] ip address 111.11.11.254 255.255.255.0
[Huawei-Vlanif11] dhcp select global
[Huawei-Vlanif11] quit
<Huawei>save

3、创建地址池
[Huawei] ip pool vlan11
[Huawei-ip-pool-pool1] network 11.11.11.0 mask 255.255.255.0
[Huawei-ip-pool-pool1] dns-list 202.101.224.68  211.141.90.68
[Huawei-ip-pool-pool1] gateway-list 11.11.11.254
[Huawei-ip-pool-pool1] excluded-ip-address 11.11.11.1 11.11.11.10 <保留地址>
[Huawei-ip-pool-pool1] quit
<Huawei>save

———————————————————————————
4、配置后的效果

interface Vlanif11
description xingzhen bangong quyu
ip address 11.11.11.254 255.255.255.0
dhcp select interface
dhcp server lease day 100 hour 0 minute 0
dhcp server dns-list  202.101.224.68  211.141.90.68