导航

修改IP和DNS的dos命令

Posted on 2017-10-31 14:55  清浅ヾ  阅读(607)  评论(0编辑  收藏  举报

修改IP,掩码,网关命令: netsh interface ip set address "本地连接" static 192.168.3.188 255.255.255.0 192.168.1.1 1

修改dns命令:netsh interface ip set dns "本地连接" source=static addr=172.16.20.10

 


修改ip和dns为自动获取

netsh interface ip set address name="本地连接" source=dhcp

netsh interface ip set dns name="本地连接" source=dhcp