打开cmd界面
输入netsh
输入dhcp
输入server
输入show scope查看现有的dhcp地址池
Add scope 172.29.16.0 255.255.252.0 引力楼5F
输入show scope查看是否添加成功
使用delete scope 172.29.16.0
切换到我们刚才的作用域 scope 172.29.16.0 然后添加地址池
Add iprange 172.29.16.1 172.29.19.254
Del iprange 172.29.16.1 172.29.19.254
Add exclude 后面输入一个ip 或者一段ip
Add excluderange 172.29.16.1 172.29.16.50
Add excluderange 172.29.19.200 172.29.19.254
Add reservedip ip mac
Set optionvalue ** ipaddress 003代表网关 006代表DNS服务器
Set optionvalue 006 ipaddress 172.28.103.251 202.96.209.133
Set optionvalue 003 ipaddress 172.29.19.254
netsh
dhcp
server
Add scope 172.29.112.0 255.255.254.0 引力楼7F-WIFI
scope 172.29.112.0
Add iprange 172.29.112.1 172.29.113.254
Set optionvalue 006 ipaddress 172.28.103.251 202.96.209.133
Set optionvalue 003 ipaddress 172.29.113.254
exit