使用netsh命令导出dhcp服务器已有的地址为文本文件
netsh dhcp server 192.168.0.130 scope 192.168.120.0 dump > c:\dhcpd.txt
这里的server 192.168.0.130表示dhcp服务器地址,scope表示作用域。
编辑dpcpd.txt文件添加对应的IP、MAC、保留名,然后再执行netsh -f c:\dhcpd.txt导入保留地址。
再或者直接使用命令来添加
netsh dhcp server 192.168.0.130 scope 192.168.120.0 add reservedip 192.168.120.111 000000000000 test
后面依次是ip地址、mac地址、保留名

 

 

相关文章:

  • 2021-12-03
  • 2021-10-17
  • 2021-08-21
  • 2022-12-23
  • 2022-12-23
  • 2021-06-18
猜你喜欢
  • 2021-08-02
  • 2021-06-08
  • 2021-11-23
  • 2021-07-17
  • 2021-10-02
  • 2021-05-21
  • 2021-12-17
相关资源
相似解决方案