风泥

导航

命令行脚本修改IP

1. 设置静态IP

netsh interface ip set address "本地连接" static 192.168.1.84 255.255.255.0 192.168.1.3
netsh interface ip set dns "本地连接" static 192.168.1.241

2. 设置自动获取IP

netsh interface ip set address "本地连接" dhcp
netsh interface ip set dns "本地连接" dhcp

posted on 2017-01-04 10:31  风泥  阅读(115)  评论(0编辑  收藏  举报