首先以管理员身份运行cmd,保证之后在黑框中输入的命令都有管理员权限

win dos命令行设置ip和dns

 

C:\Windows\system32>netsh
netsh>int
netsh interface>ip
netsh interface ipv4>

设置/修改ip地址,子网掩码,网关的格式

netsh interface ipv4>set/add "本地连接" static IP地址 mask gateway

设置DNS命令格式

netsh interface ipv4>set dns "本地连接" static dns地址

 

 



相关文章:

  • 2021-12-14
  • 2022-12-23
  • 2021-11-11
  • 2021-11-05
  • 2021-08-09
  • 2021-09-18
  • 2021-10-16
猜你喜欢
  • 2021-12-03
  • 2021-12-18
  • 2022-12-23
  • 2021-07-09
  • 2022-01-04
  • 2022-01-18
  • 2022-12-23
相关资源
相似解决方案