采用TL-WR703N搭建校园网接入点

采用TL-WR703N搭建校园网接入点

1. 将自己的电脑的本地连接属性中的ip地址设置为192.168.1.2,掩码设置为255.255.255.0,网关设置为192.168.1.1
2. 将wr703n用网线链接到电脑上
3. 浏览器中进入192.168.1.1,然后使用固件openwrt-ar71xx-generic-tl-wr703n-v1-squashfs-factory.bin升级路由器
4. 下载安装两个软件,WinSCP(用于路由器与本地电脑之间的文件传输)、SecureCRT(SSH登入器)
5. 固件升级完之后重启路由器,使用WinSCP连接进入路由器
6. 修改文件
 文件:/etc/config/wireless
修改为:
config wifi-device 'radio0'
         option type 'mac80211'
         option channel '3'
         option macaddr '14:e6:e4:e7:c6:a2'
         option hwmode '11ng'
         option htmode 'HT20'
         list ht_capab 'SHORT-GI-20'
         list ht_capab 'SHORT-GI-40'
         list ht_capab 'RX-STBC1'
         list ht_capab 'DSSS_CCK-40'
         option disabled '0'
         option txpower '27'
         option country 'US'

config wifi-iface
         option device 'radio0'
         option network 'lan'
         option mode 'ap'
         option ssid '这里填无线网的名称英文'
         option encryption 'psk2'
         option key '这里写密码八位'

文件:/etc/config/network
如果采用静态网址就修改为:
config interface 'loopback'
         option ifname 'lo'
         option proto 'static'
         option ipaddr '127.0.0.1'
         option netmask '255.0.0.0'

config interface 'wan'
         option ifname 'eth0'
         option _orig_ifname 'eth0'
         option _orig_bridge 'false'
         option proto 'static'
         option ipaddr '这里写你的静态IP'
         option netmask '写子网掩码'
         option gateway '写网关'
         option dns '写DNS'

config interface 'lan'
         option type 'bridge'
         option proto 'static'
         option ipaddr '192.168.1.1'
         option netmask '255.255.255.0'

文件:/etc/config/network
如果是自动获取IP方式就修改为:
config interface 'loopback'
         option ifname 'lo'
         option proto 'static'
         option ipaddr '127.0.0.1'
         option netmask '255.0.0.0'

config interface 'wan'
         option ifname 'eth0'
         option _orig_ifname 'eth0'
         option _orig_bridge 'false'
         option proto 'dhcp'

config interface 'lan'
         option type 'bridge'
         option proto 'static'
         option ipaddr '192.168.1.1'
         option netmask '255.255.255.0' 
7. 将链接http://code.google.com/p/mentohust/issues/detail?id=175中的40K的mentohust下载复制到/usr/bin中,并通过chmod 755 mentohust命令对mentohust的文件属性进行更改
8. 可以在/root/下建立runHust.sh的shell文件
文件:runHust.sh
内容:
#! /bin/ash
mentohust -u***** -p**** -i***** -m***** -g*** -d0 -b0 -a1
9. 将路由器连接到校园网的网线接口上运行SecureCRT,执行ash runHust.sh就能够进行联网
10. 连网期间不能够中断SecureCRT软件
(有其它方式,请补充)

你可能感兴趣的:(采用TL-WR703N搭建校园网接入点)