win7 命令行改IP和DNS

使用管理员权限运行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  ?

猜你喜欢

转载自powertech.iteye.com/blog/2346609