什么是 "DD-WRT"?

From DD-WRT Wiki

(Redirected from What is DD-WRT?/zh cn)
Jump to: navigation, search
The current web interface of DD-WRT
The current web interface of DD-WRT

DD-WRT是一个用于无线路由器的的第三方固件,采用 GPL 协议,支持基于 Broadcom 或 Atheros 芯片参考设计的许多 ieee802.11a/b/g/h/n 无线路由器。

固件是由 BrainSlayer 来维护的,放在dd-wrt.com。DD-WRT 的第一个版本基于Sveasoft Inc 公司的 Alchemy 开发出来的, 而 Alchemy 又是基于 GPL 的 Linksys固件及许多其它开源程序。由于后来人们需要向 Sveasoft 支付20美元才能下载Alchemy固件,直接的后果就是发展出了DD-WRT。

目前 DD-WRT 是免费的,但 BrainSlayer [1] (另外一种商业模型,因为他全职为 DD-WRT 工作,要给自己支付工资。

DD-WRT 的新版本 (v24) 是一个全新的项目。DD-WRT 提供了在 OEM 固件,甚至 Sveasoft 收费的固件中没有的高级特性。此外它去除了 Sveasoft 固件的产品激活和跟踪功能。

注意: bug 是 Beta 版本的固件的天性。不建议在商用的大型网络上安装 beta 固件。不过,现在 DD-WRT 固件有一个 bug 跟踪系统:DD-WRT Bugtracker

在原始的 Linksys 固件中没有的特性中,DD-WRT 添加了Kai Console Gaming networkKai 守护程序WDS 无线桥接/中继协议、更安全的无线通信Radius 认证、高级服务质量控制和支持 SD 卡硬件改装的软件。

DD-WRT 里的 DD 是什么意思?其实就是德国德累斯顿 (Dresden) 的车牌字母。

Contents


[edit] 需求

  • 一台电脑 (Windows,Linux,Mac,随便什么)
  • 一条宽带英特网链接 (DSL,有线或类似东西)
  • 一个 Linksys WRT54G/GL/GS 路由器或其他[Supported Devices|支持]的路由器
  • 从 DD-WRT 项目网站下载的 DD-WRT 固件镜像
  • 按照安装说明将固件安装到路由器上

[edit] 功能列表

Feature v \ Categories-> Lan Wlan Wan DNS Man-
age-
ment
Moni-
toring
NAT Serv-
ices
Traffic
mode-
ration

incl.
QoS
Traffic
redir-
ection
13 languages *
802.1x Extensible Authentication Protocol (EAP) *
802.1x Extensible Authentication Protocol (EAP) *
Access Restrictions *
Ad hoc *
Afterburner *
Client Isolation Mode *
Client Mode (supports multiple connected clients) *
DHCP Forwarder (udhcp) * * *
DHCP Server (udhcp or Dnsmasq) * * *
DNS Forwarder (Dnsmasq) * * * *
DMZ * * *
Dynamic DNS (DynDNS, easyDNS, FreeDNS, No-IP, TZO, ZoneEdit, custom, and others) *
Hotspot Portal (Sputnik Agent ,Chillispot) *
IPv6
JFFS2 (JFFS2)
MMC/SD Card Support (hardware modification required)
NTP * * *
ntop Remote Statistic (ntop) *
OpenVPN Client & Server (only in -vpn build of the firmware) *
Port Triggering *
Port Forwarding *
PPTP VPN Server & Client *
QoS Bandwidth Management *
QoS L7 Packet Classifier (l7-filter) *
RFlow *
Routing (BIRD) *
Samba FS Automount *
Syslog *
Rx Antenna *
Tx Antenna *
Show Status of Wireless Clients and WDS with System Uptime/Processor Utilization * *
Site Survey * *
SNMP * * *
SSH server & client (dropbear) * *
Startup, Firewall, and Shutdown scripts (startup script) *
Static DHCP * * *
Style (Changeable GUI; v.23) *
Supports New Devices (WRT54G V3, V3.1, V4, V5 and WRT54GS V2.1, V3, V4)
Telnet server & client * *
Transmit Power Adjustment (0-251mW, default is 28mW, 100mW is safe) *
UPnP * * * *
USB
VLAN * * * *
WOL (Wake On Lan) (WOL) *
WDS Connection Watchdog *
WDS Repeater Mode *
Wireless MAC Address Cloning *
Wireless MAC Filter * *
WMM (Wi-Fi MultiMedia) * *
WPA over WDS *
WPA/TKIP with AES *
WPA2 *
Xbox Kaid (Kai Engine) * * *

[edit] 支持的和推荐的设备

支持的和推荐的设备列表,参见支持的设备

[edit] 我应该刷哪个 V24 版本到路由器上

[注意] - 在刷固件之前和之后记得给路由做一个 硬重置或 30/30/30

[注意] - 在更改固件版本(即使只是从一个 svn 切换到另一个 svn)时,不要使用备份/恢复功能。备份/恢复只能用于重刷完全一样的版本(和svn),或者在硬重置之后恢复设置。

参见 支持的设备,确定你的路由器芯片,以及是否需要特别的刷固件操作。

首先在 telnet 上执行以下命令,检查 wl0_corerev:

nvram get wl0_corerev


下列 Broadcom 芯片需要 VINT 版本:

  • 任何使用 Broadcom 4702/4710 芯片组 (125MHz),并且有 mini-PCI cards wl0_corerev < 5 的旧路由器(例如 Belkin F5D7130-4 v1000 - v1112)
  • Linksys WRT54G v1
  • Linksys WAP54G v1
  • Sitecom WL-105b


下列 Broadcom 芯片组需要 normal 版本 (有时称为 NEWD):

  • Asus WL-520GU
  • Buffalo WHR-G125
  • Linksys WRT54G v8.0-8.2
  • Linksys WRT54GS v7.0
  • 所有使用 Broadcom 4704, 4785, 5354, 5365 芯片组的新路由器


下列芯片组既可以使用 normal (推荐 - 有时称为 NEWD) ,也可以用 VINT 版本.

  • Buffalo WHR-HP-G54, WHR-G54S
  • Linksys WRT54G v4.0
  • Linksys WRT54GL 1.0 & 1.1
  • 所有使用 Broadcom 5352 芯片组的路由器
  • 所有使用 Broadcom 4712 (BCM4712) 芯片组,并且 wl0_corerev >= 5 的路由器


普通版 (有时称为 NEWD) 使用新的无线驱动,而 VINT (vintage build) 使用旧的驱动。

[edit] 文件版本

不同版本的固件有不同的特性。下面的表格概括了每个版本的特性,但是有时特定版本的特性会改变。你可以检查 SVN 服务器上的配置文件来确定 Brainslayer 官方发布的每个特定版本的特性。但 Eko 的非官方版本的配置文件没有公布。

[edit] 基于 Atheros 的设备 (包括 UBNT)

基于 Atheros 的设备通常每个型号只有一个固件版本。The feature set in Atheros builds are generally limited by the amount of flash memory that a unit has. So basically, Atheros 4MB flash units have features somewhat similar to a Broadcom K2.6 mini version while 8MB Atheros flash units have features more similar to a Broadcom K2.6 BIG version, but the features will vary. Atheros builds are still pre-baked and specific to its unit, so features in one unit's version may slightly differ from another unit's version. For this devices you need to buy an activation at the dd-wrt Shop [2].

[edit] 基于 Broadcom 的设备

Broadcom based devices have several different versions available to choose from. Consult Note 4 in the Peacock Announcement from the Broadcom forum for information about which versions can run on your hardware.

[edit] V24_pre_sp2 K24

This consolidated chart is a WIP. If you spot something wrong or needed to be added, pm me. DarkShadow
Need verification of pound and tcpdump

[edit] K2.4 Build Features

V24_pre_sp2 K24 build features

  Micro (1) Micro Plus (2)(7) Micro Plus ssh (2)(7) Mini (1) Mini Hotspot Kaid (2) Mini USB (2) USB Generic (1) Mini USB FTP (2) Nokaid (1) Open VPN JFFS Small (2) STD (1) STD NoKaid (2) STD NoKaid No Hotspot NoStor (2) STD NoKaid USB (2) VOIP (1) VPN (1)(3) Big (2)(4) Mega (1)(4)
Access Restrictions
AnchorFree
Asterisk                                  
Bandwidth Monitoring
Chillispot                      
Connection Warning Notifier      
Dynamic DNS
EoIP Support        
ext2 Support                
ext3 Support                          
Hotspot System                      
HTTP Redirect
HTTPS Support for Web Mngt              
IPv6 (5)                      
JFFS2 (6)          
kaid                            
MMC/SD Support                  
NoCat                    
NTFS Support                                    
OpenVPN                            
Pound                                  
PPTP Client/PPTP Server      
ProFTPd                            
  Micro (1) Micro Plus (2)(7) Micro Plus ssh (2)(7) Mini (1) Mini Hotspot Kaid (2) Mini USB (2) USB Generic (1) Mini USB FTP (2) Nokaid (1) Open VPN JFFS Small (2) STD (1) STD NoKaid (2) STD NoKaid No Hotspot NoStor (2) STD NoKaid USB (2) VOIP (1) VPN (1)(3) Big (2)(4) Mega (1)(4)
QoS
radvd              
Repeater
RFlow                
Samba/CIFS client                    
Security Log      
SFTP                                  
SIPatH/Milkfish                              
SMTP Redirect
SNMP                  
SPI Firewall/Iptables
Sputnik                  
SSH    
Syslogd
tcpdump                                
Telnet
Tx power adjust
UPnP
USB                        
VPNC                                
Wake On LAN
Wifidog                      
WPA/WPA2 Per/Ent
Wiviz      

[edit]


(1)Official dd-wrt builds by Brainslayer
(2)Eko specialized Broadcom Only Builds
(3)Smaller VPN JFFS builds are available for 4MB units: downloads/others/eko
(4)Only on DD-WRT v24 (8MB+ flash required)
(5)Apparently, IPv6-related features DO NOT work by default in DD-WRT v24. See IPv6 on v24.
(6)Not available on VPN-builds for v24sp1 (see prerequisites for JFFS).
(7) CFE Compressor needed to run. See (http://www.dd-wrt.com/phpBB2/viewtopic.php?t=38844).

v24 文件包含六个版本:

文件名 描述
dd-wrt.v24_<type>_asus.trx Web interface version for flashing. See Flash Your Asus WL-500G Deluxe
dd-wrt.v24_<type>_generic.bin Generic version for flashing via web interface on all supported devices (including Linksys WRT54G/GL/GS) and for flashing Siemens SE505 with boot tftp on 192.168.2.1
dd-wrt.v24_<type>_wrt54g.bin tftp versions for WRT54G. You CAN use this to flash via web interface but do so only AFTER you have done so using the mini version. These versions were just made specifically for TFTPing to those routers. (v5/v6 note: Since the WRT54G/GS v5-v6 uses a modified WAP54Gv3 once made 'linux ready', it will not accept these standard WRT54G/GS firmwares. You must use the 'generic' build for TFTPing to these units).
dd-wrt.v24_<type>_wrt54gs.bin tftp versions for WRT54GS. You CAN use this to flash via web interface but do so only AFTER you have done so using the mini version. These versions were just made specifically for TFTPing to those routers.
dd-wrt.v24_<type>_wrt54gsv4.bin tftp versions for WRTGSv4. You CAN use this to flash via web interface but do so only AFTER you have done so using the mini version. These versions were just made specifically for TFTPing to those routers.
dd-wrt.v24_<type>_wrtsl54gs.bin tftp versions for WRTSL54GS. You CAN use this to flash via web interface but do so only AFTER you have done so using the mini version. These versions were just made specifically for TFTPing to those routers.
dd-wrt.v24_<type>_moto.trx For initial Flash Your Motorola WR850G (Micro and Mini builds ONLY)

where <type> is a placeholder for mini, std, voip, etc. For upgrading from the original Linksys firmware, please use the mini version first and flash it from the web interface. After this first flash you can then upgrade to any distribution of your choice.

Note eko's builds are for Broadcom only (both K24 and K26).

[edit] V24_pre_sp2 K26

WARNING: Do not use the K2.6 builds unless you are certain your device can support it! It will brick it! Forum thread about K26 build supported broadcom based router List

[edit] K2.6 版本特性

K2.6 Build Features

  Mini Mini Hotspot Mini USB Mini USB NAS OpenVPN OpenVPN Small STD NoKaid Small STD USB NAS VOIP VOIP Small Big Mega (Giga)
Access Restrictions
AnchorFree •'"
Asterisk                          
Bandwidth Monitoring
Chillispot                
Connection Warning Notifier
Dynamic DNS
EoIP Support      
ext2 Support                    
ext3 Support                    
Hotspot System                
HTTP Redirect
HTTPS Support for Web Management
IPv6              
JFFS2          
kaid                  
MMC/SD Support                          
NoCat                
NTFS Support                  
OpenVPN                
Pound                          
PPTP Client / PPTP Server
ProFTPd                
  Mini Mini Hotspot Mini USB Mini USB NAS OpenVPN OpenVPN Small STD NoKaid Small STD USB NAS VOIP VOIP Small Big Mega (Giga)
QoS
radvd              
Repeater
RFlow        
Samba/CIFS client              
Security Log
SFTP                  
SIPatH/Milkfish                
SMTP Redirect
SNMP          
SPI Firewall/Iptables
Sputnik              
SSH  
Syslogd
tcpdump                          
Telnet
Tx power adjust
UPnP
USB              
VPNC                    
Wake On LAN
Wifidog                
WPA/WPA2 Per/Ent
Wiviz  

[edit] 注意

K26 版本不支持 MMC/SD。

[edit] 特别版本

Screenshot of a QoS version
Screenshot of a QoS version

Currently brainslayer offers a special version of DD-WRT with extended QoS capabilities:

  • set maximum bandwidth available per netmask/MAC address (v.24-SP1: even for different vlans)
  • set a default rule for any unconfigured netmask/MAC address

This version is always based on the current sources and atm only available for kernel 2.4 based units. The version is available from the DD-WRT Shop.
Updates for this special firmware version are provided in the special Customer Downloads & Updates forum.

Firmware releases customized to your corporate design are also available.

[edit] 基于 Intel IXP 的设备

[edit] 基于 Ralink 的设备

基于 Ralink 的设备通常每种型号只有一个固件版本。

[edit] 基于 x86 的设备