1、启用DHCP服务。
[H3C]dhcp enable
2、配置IP地址
[H3C]interface Vlan-interface 11
[H3C-Vlan-interface11]ip add 11.11.11.254
[H3C]dhcp server forbidden-ip 11.11.11.254
3、配置DHCP地址池
[H3C]dhcp server ip-pool 11
[H3C-dhcp-pool-11]network 11.11.11.0 mask 255.255.255.0
[H3C-dhcp-pool-11]dns-list 11.11.11.254
[H3C-dhcp-pool-11]gateway-list 11.11.11.254
[H3C-dhcp-pool-11]dhcp server forbidden-ip 11.11.11.1 <保留地址>
[H3C-dhcp-pool-11]quit
<H3C>save