码迷,mamicode.com
首页 > 其他好文 > 详细

TL-WR703N刷OpenWrt (by quqi99)

时间:2015-10-02 20:03:19      阅读:377      评论:0      收藏:0      [点我收藏+]

标签:

作者:张华  发表于:2015-10-02
版权声明:可以任意转载,转载时请务必以超链接形式标明文章原始出处和作者信息及本版权声明

( http://blog.csdn.net/quqi99)


WNDR4300和OYE-0001太大了不方便携带,继续折腾一下TL-WR703N上刷OpenWrt。
1, TL-WR703N基于AR7240芯片,下载下列固件,首次从官方固件转换到OpenWrt固件,需要先刷factory镜像。另外的sysupgrade用于从老版本的OpenWrt升级。
http://downloads.openwrt.org/barrier_breaker/14.07/ar71xx/generic/openwrt-ar71xx-generic-tl-wr703n-v1-squashfs-factory.bin
http://downloads.openwrt.org/barrier_breaker/14.07/ar71xx/generic/openwrt-ar71xx-generic-tl-wr703n-v1-squashfs-sysupgrade.bin

2, 用网线连接路由器及电脑有线网卡,并插上电源, 登录http://192.168.1.1界面上刷机时失败(连不上192.168.1.1时可用针顶reset键约10秒重置),总是会又回到dd-wrt的界面。所以改为线刷,如下:
wget http://192.168.1.104:8000/openwrt-ar71xx-generic-tl-wr703n-v1-squashfs-factory.bin
root@DD-WRT:/tmp# mtd -r write openwrt-ar71xx-generic-tl-wr703n-v1-squashfs-factory.bin firmware
Could not open mtd device: firmware
Can‘t open device for writing!
root@DD-WRT:/tmp# mtd -r write openwrt.bin linux
Unlocking linux ...
Writing from openwrt.bin to linux ...  [w]

3, tl-wr703n本来有路由模式,桥接模式,AP模式,中继模式,3G模式等,但刷成openwrt之后默认变成了桥接模式。
   无线连接上级路由器, 然后再通过本机路由器实现有线和无线都能上网.
   网络->无线, 点击“扫描”按钮
   按照703N的官方说明书, 和上级路由的SSID相同为中继模式, 和上级路由的SSID不相同则为桥接模式
   703N只有一个有线网卡eth0和一个无线网卡wlan0,默认是eth0在br-lan里面。这种方式是采用wlan0为WAN,br-lan作LAN。

4, 如果想要有线网卡接WAN,LAN既可以接无线也可以接有线的时候,一个有线网卡就不够用了,可以添加两块vlan网卡(eth0.1与eth0.2)解决。WAN里放eth0.2, LAN里的br-lan里有eth0.1与wlan0
#ip link add link eth0 name eth0.1 type vlan id 1
#ip link add link eth0 name eth0.2 type vlan id 2
vconfig add eth0 1
vconfig add eth0 2
ifconfig eth0.1 up
ifconfig eth0.2 up
brctl delif br-lan eth0
brctl addif br-lan eth0.1
ifconfig eth0.2 192.168.99.177 netmask 255.255.255.0
iptables -t nat -A zone_lan_postrouting -s 192.168.1.0/24 -j MASQUERADE

但实际上此种方法未成功,刚开始IP在br-lan(192.168.1.1),而eth0在br-lan里,我们是登录192.168.1.1在做配置,动了eth0之后会造成网络中断。


版权声明:本文为博主原创文章,未经博主允许不得转载。

TL-WR703N刷OpenWrt (by quqi99)

标签:

原文地址:http://blog.csdn.net/quqi99/article/details/48862019

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!