設備連接示意圖
寬帶路由器設為:192.168.1.77 255.255.255.0
按照路由器使用說明書完成寬帶設置。
學校教育網網關為:219.×.×.254 255.255.255.0
電腦終端綁定雙ip:操作方法如下
網絡鄰居-屬性-本地連接-屬性-tcp/ip-屬性
選擇“使用下面的ip地址”,點擊“高級”-ip設置
添加ip 192.168.1.88 255.255.255.0
再添加ip 219.×.×.118 255.255.255.0 (共有地址,用于學校教育網)
添加默認網關 192.168.1.77
再添加網關 219.×.×.254
點擊dns頁面,順序添加教育網的和電信網提供的dns服務器ip
設置完畢。
設置電腦終端,完成路由設置。
(將一下txt文件存從.bat文件運行一次)
rem start of the file
@echo off
set eduroute=1
set edu=219.×.×.254
rem (把這個換成你們樓的校園網網關的IP地址)
set ADSL=192.168.1.77
rem (把這個換成你宿舍ADSL路由貓的IP地址)
route -f
rem 清除所有路由
route add -p 0.0.0.0 mask 0.0.0.0 %ADSL% Metric 10
route add -p 0.0.0.0 mask 0.0.0.0 %edu% Metric 20
rem 添加ADSL和校園網網關并優(yōu)先使用ADSL
if %eduroute%==1 (
rem 添加路由使訪問教育網網站通過校園網
rem 一下為教育網網段地址
route add -p 162.105.0.0 mask 255.255.0.0 %edu% Metric 20
route add -p 166.111.0.0 mask 255.255.0.0 %edu% Metric 20
route add -p 202.4.128.0 mask 255.255.224.0 %edu% Metric 20
route add -p 202.112.64.0 mask 255.255.192.0 %edu% Metric 20
route add -p 202.112.128.0 mask 255.255.128.0 %edu% Metric 20
route add -p 202.113.0.0 mask 255.255.0.0 %edu% Metric 20
route add -p 202.204.0.0 mask 255.252.0.0 %edu% Metric 20
route add -p 210.31.0.0 mask 255.255.0.0 %edu% Metric 20
route add -p 211.68.0.0 mask 255.255.0.0 %edu% Metric 20
route add -p 211.71.0.0 mask 255.255.0.0 %edu% Metric 20
route add -p 211.81.0.0 mask 255.255.0.0 %edu% Metric 20
route add -p 211.82.0.0 mask 255.255.0.0 %edu% Metric 20
route add -p 219.242.0.0 mask 255.255.0.0 %edu% Metric 20
route add -p 219.243.0.0 mask 255.255.128.0 %edu% Metric 20
route add -p 219.243.128.0 mask 255.255.192.0 %edu% Metric 20
route add -p 219.224.0.0 mask 255.255.128.0 %edu% Metric 20
route add -p 219.224.128.0 mask 255.255.192.0 %edu% Metric 20
route add -p 219.225.0.0 mask 255.255.0.0 %edu% Metric 20
route add -p 219.226.0.0 mask 255.255.0.0 %edu% Metric 20
route add -p 222.28.0.0 mask 255.252.0.0 %edu% Metric 20
route add -p 222.199.0.0 mask 255.255.0.0 %edu% Metric 20
route add -p 59.64.0.0 mask 255.252.0.0 %edu% Metric 20
route add -p 202.117.0.0 mask 255.255.0.0 %edu% Metric 20
route add -p 202.200.0.0 mask 255.254.0.0 %edu% Metric 20
route add -p 210.26.0.0 mask 255.254.0.0 %edu% Metric 20
route add -p 218.195.0.0 mask 255.255.0.0 %edu% Metric 20
route add -p 219.244.0.0 mask 255.252.0.0 %edu% Metric 20
route add -p 222.23.0.0 mask 255.255.0.0 %edu% Metric 20
route add -p 222.24.0.0 mask 255.254.0.0 %edu% Metric 20
route add -p 59.74.0.0 mask 255.254.0.0 %edu% Metric 20
route add -p 59.76.0.0 mask 255.255.0.0 %edu% Metric 20
route add -p 202.115.0.0 mask 255.255.0.0 %edu% Metric 20
route add -p 202.202.0.0 mask 255.254.0.0 %edu% Metric 20
route add -p 210.40.0.0 mask 255.254.0.0 %edu% Metric 20
route add -p 211.83.0.0 mask 255.255.0.0 %edu% Metric 20
route add -p 218.194.0.0 mask 255.255.0.0 %edu% Metric 20
route add -p 219.221.0.0 mask 255.255.0.0 %edu% Metric 20
route add -p 222.18.0.0 mask 255.254.0.0 %edu% Metric 20
route add -p 222.196.0.0 mask 255.254.0.0 %edu% Metric 20
route add -p 222.198.0.0 mask 255.255.0.0 %edu% Metric 20
route add -p 202.38.192.0 mask 255.255.192.0 %edu% Metric 20
route add -p 202.116.0.0 mask 255.255.0.0 %edu% Metric 20
route add -p 202.192.0.0 mask 255.254.0.0 %edu% Metric 20
route add -p 210.36.0.0 mask 255.252.0.0 %edu% Metric 20
route add -p 211.66.0.0 mask 255.255.0.0 %edu% Metric 20
route add -p 218.192.0.0 mask 255.255.0.0 %edu% Metric 20
route add -p 219.222.0.0 mask 255.254.0.0 %edu% Metric 20
route add -p 219.227.0.0 mask 255.255.0.0 %edu% Metric 20
route add -p 222.16.0.0 mask 255.254.0.0 %edu% Metric 20
route add -p 222.200.0.0 mask 255.252.0.0 %edu% Metric 20
route add -p 125.216.0.0 mask 255.254.0.0 %edu% Metric 20
route add -p 125.218.0.0 mask 255.255.0.0 %edu% Metric 20
route add -p 202.114.0.0 mask 255.255.0.0 %edu% Metric 20
route add -p 202.196.0.0 mask 255.254.0.0 %edu% Metric 20
route add -p 210.42.0.0 mask 255.254.0.0 %edu% Metric 20
route add -p 211.69.0.0 mask 255.255.0.0 %edu% Metric 20
route add -p 211.67.0.0 mask 255.255.0.0 %edu% Metric 20
route add -p 211.84.0.0 mask 255.254.0.0 %edu% Metric 20
route add -p 218.196.0.0 mask 255.252.0.0 %edu% Metric 20
route add -p 222.20.0.0 mask 255.254.0.0 %edu% Metric 20
route add -p 222.22.0.0 mask 255.255.0.0 %edu% Metric 20
route add -p 59.68.0.0 mask 255.252.0.0 %edu% Metric 20
route add -p 125.219.0.0 mask 255.255.0.0 %edu% Metric 20
route add -p 125.220.0.0 mask 255.254.0.0 %edu% Metric 20
route add -p 202.38.64.0 mask 255.255.224.0 %edu% Metric 20
route add -p 202.119.0.0 mask 255.255.0.0 %edu% Metric 20
route add -p 202.194.0.0 mask 255.254.0.0 %edu% Metric 20
route add -p 210.44.0.0 mask 255.254.0.0 %edu% Metric 20
route add -p 210.28.0.0 mask 255.254.0.0 %edu% Metric 20
route add -p 211.64.0.0 mask 255.254.0.0 %edu% Metric 20
route add -p 211.70.0.0 mask 255.255.0.0 %edu% Metric 20
route add -p 211.86.0.0 mask 255.254.0.0 %edu% Metric 20
route add -p 219.218.0.0 mask 255.254.0.0 %edu% Metric 20
route add -p 219.230.0.0 mask 255.254.0.0 %edu% Metric 20
route add -p 222.192.0.0 mask 255.252.0.0 %edu% Metric 20
route add -p 222.206.0.0 mask 255.254.0.0 %edu% Metric 20
route add -p 58.192.0.0 mask 255.254.0.0 %edu% Metric 20
route add -p 202.120.0.0 mask 255.254.0.0 %edu% Metric 20
route add -p 210.32.0.0 mask 255.252.0.0 %edu% Metric 20
route add -p 211.80.0.0 mask 255.255.0.0 %edu% Metric 20
route add -p 218.193.0.0 mask 255.255.0.0 %edu% Metric 20
route add -p 219.220.0.0 mask 255.255.0.0 %edu% Metric 20
route add -p 219.228.0.0 mask 255.254.0.0 %edu% Metric 20
route add -p 222.204.0.0 mask 255.254.0.0 %edu% Metric 20
route add -p 59.77.0.0 mask 255.255.0.0 %edu% Metric 20
route add -p 59.78.0.0 mask 255.254.0.0 %edu% Metric 20
route add -p 202.118.0.0 mask 255.255.0.0 %edu% Metric 20
route add -p 202.198.0.0 mask 255.254.0.0 %edu% Metric 20
route add -p 210.46.0.0 mask 255.254.0.0 %edu% Metric 20
route add -p 210.30.0.0 mask 255.255.0.0 %edu% Metric 20
route add -p 219.216.0.0 mask 255.254.0.0 %edu% Metric 20
route add -p 222.26.0.0 mask 255.254.0.0 %edu% Metric 20
route add -p 59.72.0.0 mask 255.254.0.0 %edu% Metric 20
route add -p 125.222.0.0 mask 255.254.0.0 %edu% Metric 20
route add -p 202.38.96.0 mask 255.255.224.0 %edu% Metric 20
route add -p 202.38.140.0 mask 255.255.254.0 %edu% Metric 20
route add -p 202.38.184.0 mask 255.255.248.0 %edu% Metric 20
route add -p 202.127.216.0 mask 255.255.248.0 %edu% Metric 20
route add -p 202.127.224.0 mask 255.255.224.0 %edu% Metric 20
route add -p 202.112.0.0 mask 255.255.192.0 %edu% Metric 20
route add -p 210.25.128.0 mask 255.255.192.0 %edu% Metric 20
route add -p 219.243.192.0 mask 255.255.192.0 %edu% Metric 20
route add -p 219.224.192.0 mask 255.255.192.0 %edu% Metric 20
route add -p 210.25.0.0 mask 255.255.128.0 %edu% Metric 20
route add -p 58.194.0.0 mask 255.254.0.0 %edu% Metric 20
route add -p 58.200.0.0 mask 255.248.0.0 %edu% Metric 20
route add -p 58.196.0.0 mask 255.254.0.0 %edu% Metric 20
route add -p 202.179.240.0 mask 255.255.240.0 %edu% Metric 20
)
rem end of the file
聯(lián)系客服