TL-WR703N刷OpenWrt (by quqi99)

來源:互聯網
上載者:User

標籤:

張華  發表於: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
[email protected]:/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!
[email protected]:/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)

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.