D-Link615 C2
路由器当前固件信息:
|---------------------------------------------------------------------------------------|
| Gargoyle version1.4.7 | OpenWrt backfire branch |
| Gargoylerevision 5783343 | OpenWrt revision r30752 |
| Built February29, 2012 | Target ar71xx/ath9k |
|---------------------------------------------------------------------------------------|
路由器硬件信息
http://wiki.openwrt.org/toh/d-link/dir-615
Revisions | CPU | Ram | Flash | Network | Gigabit | USB | Serial | JTag |
C1, C2 | Atheros | 32MB | 4MB | 4x1 | No | Yes* | Yes | No |
Revisions C1/C2: |
Architecture: MIPS |
Bootloader: U-Boot |
System-On-Chip: Atheros AR9130 |
CPU Speed: 400 Mhz |
Flash size: 4 MiB |
RAM size: 32 MiB (4M x 4 x 16bit) |
Wireless: AR9102 802.11n Radio |
Ethernet: AR8216 6-port switch |
固件选择与下载:
http://wiki.openwrt.org/doc/hardware/soc#ar71xx
ar71xx :
QualcommAtheros AR7xxx, AR9xxx and QCA9xxx boards
从路由器硬件信息System-On-Chip: Atheros AR9130 看,应该选择ar71xx类型的固件。
下载:
Gargoyle (基于Openwrt, 特色Qos,推荐):
http://www.gargoyle-router.com/download.php
Download: Firmware Images;
Architecture: Atheros AR71XX;
Branch: 1.4(stable); //experimental 1.5.10版存在wifi常掉线问题;experimental 1.5.11版不能保存静态ip设置。
Version: 1.4.7
D-link官方: http://tsd.dlink.com.tw/downloads2008detail.asp
Quick Find选择DIR, 615.选择DIR-615 C2 FW v3.02CN (for China)。
或者http://www.dlink.com.cn/support/Apps/选择型号下载。特别注意硬件版本。
DD-WRT: http://dd-wrt.com/site/support/router-database查找dir 615,选择C2版。
Openwrt: http://downloads.openwrt.org/attitude_adjustment/12.09-rc2/ar71xx/generic/
浏览器中按Ctrl+F查找dir-615-c1,一般选择factory版直接烧。openwrt-ar71xx-generic-dir-615-c1-squashfs-factory.bin
查看Factory 版与Sysupgrade版区别:http://wiki.openwrt.org/doc/howto/obtain.firmware.download
烧写固件步骤:
http://wiki.openwrt.org/toh/d-link/dir-615#с1с2.revision
Installation
Rev. C1 and E4
Installation isfairly straight forward for this router, you will need to access the D-Linkrecovery console with the steps below.
1. As per the noteat http://www.dd-wrt.com/wiki/index.php/DIR-615C, "If your dlink 615 C1 is at f/w 3.12 or 3.11 you may have to revert itto 3.10". The older firmware is available from D-Link support.
2. Set a static IPon your PC to '192.168.0.2'.
3. Press and holdthe reset button until the power LED starts blinking orange (usually takes ~45seconds). Or, hold down the reset button while powering on the router, this ismuch quicker and only takes 5-15 seconds.
4. Go to'http://192.168.0.1' from your PC web browser. (Note: most modern browsersdon't work, see below, Firefox 13 portable version is known to work)
"Browse"and select the OpenWrt firmware (e.g.'openwrt-ar71xx-dir-615-c1-squashfs-factory.bin').
Let router flashthe image, don't worry if it reboots before it reaches 100%. If the page loadsforever or times out, your browser is unsupported. See below.
5. obtain new IPfrom the router via DHCP and follow firstlogin
简述:
1. 电脑设置
静态IP:192.168.0.2
子网掩码:255.255.255.0
默认网关:192.168.0.1
2. 断电开机,按住路由器重置键直到电源灯呈橙色闪烁状态(大约需要45秒),松开。
或者运行状态时按重置键直到电源灯呈橙色闪烁状态,这个过程会更快些,只需5~15秒。
3. 电脑浏览器打开192.168.0.1.选择固件如gargoyle_1.4.7-ar71xx-dir-615-c1-squashfs-factory.bin 上传,直到100%,路由器会自动重启。
4. 电脑设置动态获取IP。
基本联网设置
浏览器打开http://192.168.1.1/ 设置。
http://wiki.openwrt.org/doc/howto/firstlogin
There is no preset password in OpenWrt! Youneed to set one at your first login per telnet or the WebUI.
IP Address:192.168.1.1
Password: password (Web Interface & SSH)
SSH User: root
Qos设置
参考:
http://www.gargoyle-router.com/wiki/doku.php?id=qos
http://blog.csdn.net/zyphio/article/details/8554594
http://www.right.com.cn/forum/forum.php?mod=viewthread&tid=124793
添加计划任务(Cron Jobs):
http://www.gargoyle-router.com/wiki/doku.php?id=wireless_schedule&s[]=cron
1、查看crontab定时执行任务列表
crontab -l
2、添加crontab定时执行任务
crontab –e //或者 crontab -e –u root
注:Cron Format 分隔符用空格或者TAB都可以。
# * * * * * command to execute
# ┬ ┬ ┬ ┬ ┬
# │ │ │ │ │
# │ │ │ │ │
# │ │ │ │ └───── day of week (0 - 6) (0 to 6 are Sunday toSaturday, or use names)
# │ │ │ └────────── month (1 - 12)
# │ │ └─────────────── day of month (1 - 31)
# │ └──────────────────── hour (0 - 23)
# └───────────────────────── min (0 - 59)
cron启动后每过一份钟读一次这个文件,检查是否要执行里面的命令。因此此文件修改后不需要重新启动cron服务。
立即生效(手动load更新)crontab /var/spool/cron/crontabs/root
重启cron方法:先停止,再启动。
/etc/init.d/cronstop
/etc/init.d/cronstart
查看cron是否在运行:ps |grep cron 。
设置每天早上6点半启用wifi,晚上11点半关闭无线:
30 6 * * * wifi up
30 23 * * *wifi down
Cron设置参考: