首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 其他教程 > 其他相关 >

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

2013-02-24 
记录下window 命令行下设置IP地址命令rem 设置动态IPnetsh interface ip set address 本地连接 dhcp net

记录下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

热点排行