举例:网吧有两台路由器.分别为
网通:192.168.0.1
电信:192.168.0.100
在客房机的桌面上建立两个批处理文件
网通.bat
内容:
@echo off
netsh int ip set add 本地连接 static 192.168.0.3 255.255.255.0 192.168.0.1 1
netsh int ip set dns 本地连接 static 202.96.64.68
netsh int ip add dns 本地连接 202.96.75.68
电信.bat
内容:
@echo off
netsh int ip set add 本地连接 static 192.168.0.3 255.255.255.0 192.168.0.100 1
netsh int ip set dns 本地连接 static 202.96.128.86
netsh int ip add dns 本地连接 202.96.128.166
说明:
1."本地连接":为网吧客户机网卡的名称.
2."192.168.0.3":本客户机IP地址(每台客户机应该有不同的IP)
3."255.255.255.0":子网掩码
4."192.168.0.1":网通路由器
5."192.168.0.100":电信路由器
6."1":跳跃点
7."netsh int ip set dns 本地连接 static 202.96.64.68":设置DNS服务器(可根据当地不同情况设置)
也可以将该地址指向路由器.但条件是路由器必须带有DNS转发功能.
8."netsh int ip add dns 本地连接 202.96.75.68":增加第二DNS服务器地址(不是必须)
这样当用户上网时,只要点击一下桌面的批处理,出现三个"确定"后,就可以使用不同的网络了.
在网上找的,不知道行不行,楼主试试吧。不知道楼主连外线连的线位盒是网通还是电信,如果外线是网通,记得好像不能这个换吧~~
晕。你说的是网线里边的细线。还是光纤的线。