教你用DOS指令切换局域网IP
3050 点击·0 回帖
![]() | ![]() | |
![]() | 用DOS指令切换局域网IP 公司为每位员工分配一个固定IP,用来收邮件,而要上外网又必须 切换到另一个网段IP才行,手工操作十分麻烦,于是百度了一下,最终 用批处理文件搞定.如下: [plain] netsh interface ip set address name="本地连接" source=static address=192.168.3.182 mask=255.255.255.0gateway=192.168.3.1 netsh interface ip set dns name="本地连接"source=static addr=xx.xx.xx.xx register=PRIMARY | |
![]() | ![]() |