win7 命令行改IP和DNS

goawalk 2016-12-21

使用管理员权限运行CMD

//改DNS
netsh interface ipv4 set dnsserver "本地连接" static 192.168.1.23
ipconfig /flushdns

// 命令帮助 netsh interface ipv4 set dnsserver ?


//改IP和网关
netsh interface ipv4 set address "本地连接" static 192.168.200.140 255.255.255.0 192.168.200.207

// 命令帮助 netsh interface ipv4 set address  ?

相关推荐

oLeiShen / 0评论 2020-05-26