在DHCP服务器系统中打开命令提示符窗口(CMD),
输入 netsh dhcp server 172.31.0.9 scope 172.31.0.0 dump > d:\dhcpcfg.txt
将当前作用域上下文改变到 172.31.0.0 作用域。
Dhcp Server 172.31.0.9 Scope 172.31.0.0 set state 1
# 开始 Add Iprange 到作用域 172.31.0.0,服务器 172.31.0.9
#
# 下列为DHCP地址池范围
# ======================================================================
Dhcp Server 172.31.0.9 Scope 172.31.0.0 Add iprange 172.31.0.31 172.31.0.253
# 结束 Add Iprange 到作用域 172.31.0.0,服务器 172.31.0.9
# ======================================================================
# ======================================================================
# 开始 Add Excluderange 到作用域 : 172.31.0.0,服务器 : 172.31.0.9
# ======================================================================
# 结束 Add Excluderange 到作用域 : 172.31.0.0,服务器 : 172.31.0.9
# ======================================================================
# ======================================================================
# 开始 Add OptionValue 到作用域 : 172.31.0.0,服务器 : 172.31.0.9
#
# 下列第二行为网关
#
# 下列第三行为DNS
# ======================================================================
Dhcp Server 172.31.0.9 Scope 172.31.0.0 set optionvalue 51 DWORD "691200"
Dhcp Server 172.31.0.9 Scope 172.31.0.0 set optionvalue 3 IPADDRESS "172.31.0.10"
Dhcp Server 172.31.0.9 Scope 172.31.0.0 set optionvalue 6 IPADDRESS "172.31.0.9" "172.31.0.10"
# 结束 Add OptionValue 到作用域 : 172.31.0.0,服务器 : 172.31.0.9
# ======================================================================
# ======================================================================
# 开始 Add ReservedIp 到作用域 : 172.31.0.0,服务器 : 172.31.0.9
#
#下列为保留列表中内容,也就是IP&MAC绑定列表
# ======================================================================
Dhcp Server 172.31.0.9 Scope 172.31.0.0 Add reservedip 172.31.0.101 001109195689 "USER1" "" "BOTH"
Dhcp Server 172.31.0.9 Scope 172.31.0.0 Add reservedip 172.31.0.102 00729c7f7e96 "USER2" "" "BOTH"
Dhcp Server 172.31.0.9 Scope 172.31.0.0 Add reservedip 172.31.0.103 080046f55fa4 "USER3" "" "BOTH"
# 结束 Add ReservedIp 到作用域 : 172.31.0.0,服务器 : 172.31.0.9
# ======================================================================
在这个导出的配置文件中,关于IP&MAC绑定的配置为:
















