批处理自动设置IP

以前也找到过批处理自动设置IP的文章的,但发现太麻烦,看不明白。现在找到个简单的,呵呵

IP指定分配批处理如下:
netsh interface ip reset "本地连接"
netsh interface ip add address "本地连接" 192.168.0.207 255.255.255.0
netsh interface ip add address "本地连接" gateway=192.168.0.254 gwmetric=1
netsh interface ip set dns "本地连接" static 202.101.172.35 primary

IP自动分配批处理如下:
netsh interface ip set address name="本地连接" source=dhcp
netsh interface ip set dns name="本地连接" source=dhcp register=PRIMARY
netsh interface ip set wins name="本地连接" source=dhcp

文章来自: 本站原创
引用通告: 查看所有引用 | 我要引用此文章
Tags:
相关日志:
评论: 5 | 引用: 0 | 查看次数: 342
回复回复Louanne[2017-09-14 04:10 AM | del]
Amazing webpage you have right here.
回复回复Bertie[2017-09-14 04:44 AM | del]
Extremely interesting look forward to returning.
回复回复Monroe[2017-09-14 06:36 PM | del]
Many thanks, this website is very helpful.
回复回复Gay[2017-09-14 07:07 PM | del]
Highly beneficial, looking frontward to coming back.
回复回复Pearl[2017-09-15 10:55 PM | del]
Maintain the good work and generating the crowd!
发表评论
昵 称:
密 码: 游客发言不需要密码.
内 容:
验证码: 验证码
选 项:
虽然发表评论不用注册,但是为了保护您的发言权,建议您注册帐号.
字数限制 1000 字 | UBB代码 开启 | [img]标签 关闭