使用CMD命令设置IP,将下面文本保存为bat文件后执行

 

netsh interface ip set address name="本地连接" source=static addr=192.168.1.40 mask=255.255.255.0 gateway=192.168.1.2

netsh interface ip set dns name="本地连接" source=static addr=218.85.157.99 register=PRIMARY

netsh interface ip add dns name="本地连接" addr=218.85.152.99 index=2

@ECHO OFF


pause
EXIT

 

相关文章:

  • 2021-12-19
  • 2021-06-22
  • 2022-12-23
  • 2021-12-20
  • 2021-09-22
  • 2022-03-07
  • 2022-12-23
猜你喜欢
  • 2022-01-13
  • 2022-12-23
  • 2022-02-13
  • 2022-12-23
  • 2022-01-22
  • 2022-12-23
  • 2021-11-16
相关资源
相似解决方案