记录下window 命令行下设置IP地址命令

rem 设置动态IP
netsh interface ip set address "本地连接" dhcp
netsh interface ip set dns "本地连接" dhcp


rem 增加两个地址
netsh interface ip set address "本地连接" static 192.168.0.114 255.255.255.0 192.168.0.1
netsh interface ip add address "本地连接"  192.168.2.2 255.255.255.192 


rem 添加一个静态 DNS 服务器地址。
netsh interface ip add dnsservers "本地连接" 192.168.0.1


pause

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章