[教學] TP-Link TL-WR1043ND X DD-WRT 教學,希望幫到大家

本帖最後由 南瓜hk 於 2011-4-15 21:35 編輯

為方便各網友將 TP-LINK TL-WR1043ND 安裝 DD-WRT,
現將大家經常遇到的問題收集供大家參考,如有貼錯或錯漏請指正

主要資料來源: TP-Link TL-WR1043ND DD-WRT Firmware released!
內容由各網友提供,歡迎大家提供更多有用資料以便整理,謝謝

安裝 DD-WRT 方法

Hard reset or 30/30/30 方法

無線網絡設定方法 / Wireless Setting

MULTI WLAN 設定方法

網絡設定

和記 100M 用戶用 TP-LIINK X DD-WRT

TP-LINK 1043ND 無腦BT

用DD-WRT BT慢

TP-Link TL-WR1043ND 原來仲可以用埋3G手指來做3G Router

設定PPTP VPN SERVER

檢查 PPTP VPN

SETUP PRINTER SERVER 方法

Setup FTP Server 方法

安裝 OPEN- WRT 方法

還原 TP-INK 原裝 Firmware方法

IPHONE 4 只行到65M問題


其他資料:
【香港一人一VPN Server】—— 4291# DD-WRT OpenVPN Multi Certs 教学

 
本帖最後由 南瓜hk 於 2010-12-3 18:57 編輯

安裝 DD-WRT 方法

一. 在 DD-WRT 找到最合適的型號和版本, 位置如下 (部份版本可能有問題, 可以留意網上其他用戶的意見):
      http://www.dd-wrt.com/site/suppo ... inSlayer-V24-preSP2
      2010/09/26 r15279
      2010/10/26 最新版本 r15506
      2010/10/24 有網友試過的較佳版本
      穩定版本 r14896
      近期各版本參考資料

二. 下載 factory-to-ddwrt.bin 版本
三. 用PC連接好ROUTER, PC用DHCP, 自動取得 192.168.1.X
四. 開啟IE,在網址列輸入192.168.1.1進入ROUTER設定版面
五. 進入Upgrade Firmware然後等大約5分鐘就完成
六. REBOOT
如發現運作不太正常, 可以先進行 Hardreset 然後再觀察情況

TOP

本帖最後由 南瓜hk 於 2010-9-16 10:43 編輯

Hard reset or 30/30/30 方法:

如有任何不正常現象可以先試 Hard Reset

開著router
hold 住 reset掣 約30秒
唔好放手,抆電,繼續hold住reset掣 約30秒
唔好放手,插電,繼續hold 住reset 掣 約30秒

之後就可以放手,咁會完全reset左 dd-wrt所有setting
http://www.dd-wrt.com/wiki/index.php/Hard_reset_or_30/30/30

===============================================================
From DD-WRT Wiki
Jump to: navigation, search

DO NOT attempt to reset or power cycle the router while it is still in the process of upgrading!
Wait a couple of minutes after upgrade is complete and the router has rebooted itself.

Hard Reset (aka 30/30/30 reset):
The following procedure will clear out the NVRAM and set dd-wrt back to default values:

Erasing NVRAM:
As an alternative method, it is possible to restore DD-WRT to default settings without using the reset button (useful if you're locked out of the web interface or the reset button is disabled, broken, etc. or if your router just refuses to reset using 30/30/30).
[CAUTION] - On some devices, resetting NVRAM in this fashion may cause more problems than it solves. For example, Asus WL-500g and the Motorola WR850G bootloader will not recreate default values and will not boot properly after being reset. If you do this on a Siemens SE505 V1, your router will not be accessible to you anymore! You will have to reflash it with the stock firmware on IP address 192.168.1.1 (NOT 192.168.2.1 as the installation procedure says!!)
The following requires that DD-WRT already be installed on your router, and Telnet (or SSH) services be enabled and accessible.
Telnet (or SSH) into 192.168.1.1
Issue commands:
erase nvram
reboot
or
mtd -r erase nvram
All should be in default settings now.

Default password
After resetting DD-WRT, you need to login with the user name "root" and password "admin".

TOP

本帖最後由 南瓜hk 於 2010-10-4 17:21 編輯

無線網絡設定方法 / Wireless Setting

331#
問: 如何用QSS 按鍵開關 WIFI答: Services-> Services

SES / AOSS / EZ-SETUP / WPS Button
Use this button for turning off radio                           Enable    Disable

===========================================================
Wireless 速度
855#
無線模式 AP
無線網路模式 NG-MIXED
頻道寬度  40MHZ
無線頻道  AUTO
寬頻道  UPPER

加密模式 WPA2 PERSONAL
WPA演算法 AES

374#

Wireless setting 方面,自己試 setting 試到的,速度跟原廠 firmware 差別不大

tx power : 24dbm
antenna gain : 5 db
(wireless 的 power 設定,自己設成適合自己的。留意 24dbm ~ 250mW)

wireless mode : NG mixed
Channel width : Turbo (40MHz)
(以上兩行的 setting 可令 n 行返 300Mbps)

Channel : Auto
Control channel : lower <~ 選 lower 可選 channel 5-11, upper 只可選 4。當然有多點 channel 選好點

369#
http://www.dd-wrt.com/wiki/index.php/Wireless-N_Configuration

"You MUST use WPA2 authentication with AES encryption only, or use no security at all if you wish to achieve N rates. Anything else is against the N spec and typically results in the client falling back to G rates. "

===========================================================
問:如何設定自動定時開關WIFI?
答: a) create 2 script sand save in jffs
1, wifi-on.sh
ifconfig ath0 up
iwconfig ath0 txpower 17dBm
2, wifi-off.sh
ifconfig ath0 down
iwconfig ath0 txpower off

答: b)
save cron job under administration
#min hr day dom dow user command
0 19 * * 1-5 root /jffs/etc/wifi-on.sh
0 2 * * 1-5 root /jffs/etc/wifi-off.sh
0 10 * * 6 root /jffs/etc/wifi-on.sh
0 2 * * 0 root /jffs/etc/wifi-off.sh
0 10 * * 0 root /jffs/etc/wifi-on.sh

問:請問DD-WRT有沒有Multi-SSID?

答: 有!  用Virtual Wireless Interface設置, 可參考以下條link:
http://www.pennock.nl/dd-wrt/Multiple_BSSIDs.html

Multi WLAN 設定方法

TOP

本帖最後由 南瓜hk 於 2010-10-4 17:34 編輯

網絡設定

如何解決 BT 的速度問題?
426#
if BT speed is the main concern, change :

IP Filter Settings (adjust these for P2P)
Maximum Ports 8192
TCP Timeout (in seconds) 300 (can as low as 120 sec)
UDP Timeout (in seconds) 120

Enable UPNP if you don't have port forwarding configured

Monitor session table in "status" tab

Network
IP Filter Maximum Ports
8192
Active IP Connections
2%
182   <------- if it is over 8192, configure your BT client to reduce con-current session.

如何關閉外部進入 ROUTER 的管理版面?
418#
問: Administration -> Router Management

Remote Access -> Web GUI Management
設定為 Disable , 但係我依然可以用 wan 個ip 入去web gui management 畫面
其他人可唔可以幫手試o下,係咪明明disable左,但係都可以用external ip入

419#
答: Router Management ->Web Access->Enable Info Site

設定 seccsion
Session 全睇個firmware 同hardware 食唔食到
4096係個Web-GUI 個limit, 如果想大過 4096 你可以用telnet 入去改

nvram set ip_conntrack_max=20480
nvram commit
reboot

set 做20480, 其實10000都用唔晒~

檢查 PORT 是否開放
http://www.yougetsignal.com/tools/open-ports/

470#
試緊用佢做SIP server, 打電話音質唔錯.
下一步就會學習Asterisk sever,聽聞可以用router來行. 現在手頭上有一部ASUS WL500GP閒置中, 8MB rom, 32MB Ram, 如果成功就可以有超低功耗,低成本的voip系統

TOP

本帖最後由 南瓜hk 於 2010-12-3 18:55 編輯

Setup FTP Server

從 INTERNET 進入 FTP

參考資料
http://www.hkepc.com/forum/redir ... 88&pid=24046073
附件: 您需要登錄才可以下載或查看附件。沒有帳號?註冊

TOP

本帖最後由 南瓜hk 於 2010-9-26 19:11 編輯

網絡設定

和記 100M 用戶想用 TP-LINK X DD-WRT       
1021#

1. Setup > Basic > WAN Setup > WAN Connection Type > Connection Type Automatic Configuration - DHCP
2. Host = hgcbroadband.com

如何解決 BT 的速度問題?
426#
if BT speed is the main concern, change :

IP Filter Settings (adjust these for P2P)
Maximum Ports 8192
TCP Timeout (in seconds) 300 (can as low as 120 sec)
UDP Timeout (in seconds) 120

Enable UPNP if you don't have port forwarding configured

Monitor session table in "status" tab

Network
IP Filter Maximum Ports
8192
Active IP Connections
2%
182   <------- if it is over 8192, configure your BT client to reduce con-current session.

如何關閉外部進入 ROUTER 的管理版面?
418#
問: Administration -> Router Management

Remote Access -> Web GUI Management
設定為 Disable , 但係我依然可以用 wan 個ip 入去web gui management 畫面
其他人可唔可以幫手試o下,係咪明明disable左,但係都可以用external ip入

419#
答: Router Management ->Web Access->Enable Info Site

470#
試緊用佢做SIP server, 打電話音質唔錯.
下一步就會學習Asterisk sever,聽聞可以用router來行. 現在手頭上有一部ASUS WL500GP閒置中, 8MB rom, 32MB Ram, 如果成功就可以有超低功耗,低成本的voip系統

TOP

本帖最後由 南瓜hk 於 2010-10-4 19:07 編輯

SETUP PRINTER SERVER 方法:
493#
注意: Printer Server 只可以 Share Printer, 如果多功能PRINTER 的 SCAN 功能不能 SHARE 到

Step 0: Use "Putty.exe" software, connect with router use SSH

Step 1: Enable JFFS
On the Administration>>>Management tab scroll down and click enable under jffs2 and disable on clean jffs. Apply Settings

Step 2: Enable SSH
Click the Services tab and click enable under secure shell. Apply Settings

Step 3: Enable USB Support
Click the Services tab and click usb enable everything except usb storage. Apply Settings

Step 4: SSH into the router and enter the following.
cd /jffs
wget http://downloads.openwrt.org/sna ... _0.93-2_atheros.ipk
ipkg install p910nd_0.93-2_atheros.ipk
rm p910nd_0.93-2_atheros.ipk

Step 5: Launch p910nd on startup
In the web interface, click tab administration tab then click commands. Enter the following code and click "save startup".
/jffs/usr/sbin/p910nd -b -f /dev/usb/lp0 0
/bin/mkdir -m 755 -p /dev/usb
/bin/mknod -m 660 /dev/usb/lp0 c 180 0

Step 6: Connecting to the Print server on windows computers.

44#
Add a new printer, choose Local Printer. Choose Create a new Standard TCP/IP Port. Set the IP address to the IP of the router. (192.168.1.1 by default) Protocol should be RAW, Port number 9100. Install the correct drivers for the printer.

TOP

本帖最後由 南瓜hk 於 2010-9-16 10:41 編輯

安裝 OPEN- WRT 方法
http://wiki.openwrt.org/toh/tp-link/tl-wr1043nd

Open-WRT
  最好是有serial, 或是有recovery mode, 如果有JTAG 就最好, 因為一有差錯, 真的要用上以些那些方法. 另外最好對*nix 有一點觀念.
你可以先用一個basic, precompile  的OpenWRT, 再用opkg install 你想要的, 前題還是最好有serial/recovery mode, 否則一brick 就救不回來, 特別是flash firmware 時

347#
1.        從網上獲知, TP-LINK 1043ND 原裝firmware 有兩個section 如下 :

0x00000 -> 0x20200 = Header + Uboot
0x20200 -> 0x7E01FF = Header + Firmware

2.        如果用 DD for Windows v0.5 去除原裝firmware 內的 first 0x20200 bytes, 便應可以去除 “Header + Uboot”, Command line 如下 :

DD if= wr1043nv1_en_3_9_17_up_boot(091118).bin of=without_header_uboot.bin skip=257 bs=512

Remark : wr1043nv1_en_3_9_17_up_boot(091118).bin =原裝firmware

http://www.chrysocome.net/downloads/dd-0.5.zip

3. 之後用 windows XP 的 tftp client 將without_header_uboot.bin Flash 去 TP-LINK 1043ND, procedure 跟command line 如下 :

Windows 2000/XP TFTP Client short Instructions :

- Open two command windows (Start-Run-Enter "cmd")

- In one window, type "ping -t -w 10 192.168.1.1" and press enter. 192.168.1.1 is the router IP.

- Ping will continuously try to contact the wrt with 10 ms timeout instead of default 4000 ms. Keep this running

- In the other window, prepare the tftp command "tftp -i 192.168.1.1 PUT without_header_uboot.bin". Do not press enter yet!

- Now you may plug in the router (unplug it first if it was plugged).

- In the ping window it will start saying "Hardware Error"

- Return to the tftp window. As soon as the ping window starts to answer again, press enter in the tftp window.

- The image should now be flashed without multiple tries.

- If ping starts with "Hardware Error", then starts to answer, and then returns to "Hardware Error" again for a short moment, you waited too long.

其他資訊:
http://wiki.openwrt.org/toh/tp-link/tl-wr1043nd?s=tplink
http://www.pczone.com.tw/vbb3/thread/29/150684/

TOP

本帖最後由 南瓜hk 於 2010-9-17 11:12 編輯

還原 TP-INK 原廠 Firmware方法

方法一
抄個file去usb手指,然後mount usb.
ssh / telnet入去router, 用以下 command.
login名: root
password: 你設定的router密碼

"mtd -e linux -r write /mnt/{file_name} linux"
打之前要check清楚夠唔夠ram, 我試既時候有10MB.
打完command等幾分鐘,ssh / telnet 斷線後就可以登入192.168.1.1

方法二
先在dd-wrt的firmware內, enable USB function, 並enable FAT system file及 auto mount
然後於telent至dd-wrt內
login名: root
password: 你設定的router密碼

然後執行以下指令
cd /tmp
mtd -e linux -r write /mnt/ yourname.bin linux
請自行更改yourname為你的bin檔名稱

方法三
1.先進入192.168.1.1
2.進入伺服器頁面
3.Usb
4.將全部啟用
5.等待Restart Router後
6.下載原廠firmware,並解壓後放到usb,將usb插到router後面
7.按一下你電腦的開始>執行>輸入"Cmd"
8.在cmd輸入telnet 192.168.1.1
9.輸入root,按一下enter,再輸入你router設定的密碼,再按一下enter
10.輸入cd /tmp
11.輸入mtd -e linux -r write /mnt/tplink.bin(原廠firmware file名) linux
12.等待幾分鐘自動重新啟動後即可成功還原

你之前flash 完dd-wrt有無做30/30/30?如果絛做,試下做左會唔會好d?

方法四
參考以下網址
http://www.dd-wrt.com/phpBB2/viewtopic.php?p=421483#421483

跟住照做.  我第2個step 用  dd if=orig.bin of=tplink.bin skip=257 bs=512

我成功轉返tplink firmware

404#
http://www.hkepc.com/forum/viewt ... page=41#pid22721483

448#

方法五
大家如果想用我介紹既方法flash tplink firmware 而唔想自己改Header,可以下載以下file。我用TL-WR1043ND_V1_091118 之後用 dd command 將Header 改。

用之前請睇清楚步驟,由其Free Memory。

http://depositfiles.com/en/files/orv90dbqt

Extract and copy it to a usb stick ,connect it to the router
用執行開telnet:// <routerip>,然後login id 用root,password用router set ge password。
enter this  mtd -e linux -r write /mnt/<firmwarefilename.bin> linux
Be aware the usb is detected.
Then the followings will be shown:
root@ router_name:/tmp# mtd -e linux -r write /mnt/0x20200.bin linux
Unlocking linux ...
Erasing linux ...
Writing from /mnt/0x20200.bin to linux ... [w], which the [w] will change between [w] and [e]
After few mins, the follow is shown:
Connection to host lost.
After these steps, the router will be flashed back to factory firmware.

TOP