用DOS命令设置ip。

为某本地连接增加一个IP:
netsh inte ip add addr "本地连接" 192.168.0.6 255.255.255.0

若要设置网关
netsh inte ip add addr "本地连接" 192.168.0.6 255.255.255.0 192.168.0.1 2

后面的2就是metric(跃点)。重新设为自动取地址:
netsh inte ip set addr "本地连接" dhcp

posted on 2008-08-07 17:09 家1阳 阅读(674) 评论(1)  编辑 收藏 引用

评论

# re: 用DOS命令设置ip。 2011-10-26 01:10 hustlijian

netsh interface ip set ?
就可以获得帮助。
如果你喜欢,可以用
netsh ?
netsh interface ?
netsh interface ip ?
netsh niterface ip set ?
一步步学习这个命令如何使用!  回复  更多评论   

只有注册用户登录后才能发表评论。

导航

<2011年10月>
2526272829301
2345678
9101112131415
16171819202122
23242526272829
303112345

统计

常用链接

留言簿(2)

随笔档案

搜索

最新评论

阅读排行榜

评论排行榜