Table Of ContentSveasoft Manual
Alchemy Firmware
For the Linksys WRT54G and WRT54GS
wireless routers
Sveasoft Firmware Guide for WRT54G 4
Hardware 4
Net Diagram of the WRT54G 4
The GUI 10
Basic Configuration 11
WAN (Internet) Supported Connections 11
Router 13
DHCP 14
Time Settings 15
MAC Address Cloning 17
Cloning the MAC Address 17
Finding the MAC Address 17
Advanced Routing 19
Wireless Settings 20
Basic Settings 20
Security 21
MAC Filter 23
Advanced Settings 24
WDS 26
WDS Quick Setup Guide 27
Security and VPN Settings 32
Firewall 32
VPN 33
Application and Gaming 34
Port Range Forwarding 34
DMZ 35
Administration 36
Management 36
Log 37
Diagnostics 38
Factory Defaults 39
2
Firmware Upgrade 40
Status 41
Router Information 41
Internet 42
Local Network 43
Wireless 44
Part 2: The Command Line Shell 45
3
Sveasoft Firmware Guide for WRT54G
Hardware
Net Diagram of the WRT54G
(Thanks to pribeiro @net.ipl.pt) Here is a comment on the above diagram by the author:
http://www.seattlewireless.net/index.cgi/LinksysWrt54g#head-
7eb5292f6d828986548ff4e8f574eae34d47cda6 "Here goes my view of the network architecture of
the WRT54G (and other clones) A hardware switch with 5 ports, 4 are the external lan ports (1 to
4), the fifth is connected to the "router" module that has 3 ports (eth0, eth1 and eth2, in Linux
terms), eth0 made the connection to the switch module, eth1 is the WAN port that connects to the
outside world (ADSL, CABLE, etc.) and finally eth2 connect to the wireless module ... Have you
missed something ??? I hope so, if you question is "eth2 and eth0 aren't in the same layer2 lan ?",
that's the right point! eth2 and eth0 seem to be software bridged by the Linux kernel an act as a
unique L3 interface as "br0". This is a nice thing, in the future we probably can split the wireless
(eth2) and the switch (eth0) and do a better control of the traffic (iptables) between them. PS: Sorry
for my bad English! -- pribeiro @net.ipl.pt "
Note #1: the default configuration for this device is to have a bridge between the wireless
(WLAN)(eth2) and the switch (LAN)(eth0). This means the WLAN and LAN will be using the
same IP subnet and DHCP server (unless you manually change from the linux command line).
Note #2: the WAN(Wide Area Networking)(eth1) port is labelled "Internet" on the v1 and v2
WRT54G's
Four versions of the router exist: version 1.0, version 1.1, version 2.0, and WRT54GS v2.0S. The
firmware is binary compatible with the first three versions. The WRT54GS's firmware in its default
configuration is too big to fit in the EEPROM inside the earlier three versions, although Sveasoft
4
has managed to modify it to fit. More info and discussion:
http://www.sveasoft.com/modules/phpBB2/viewtopic.php?t=742
5
WRT54G V1.0
• BCM4702 MIPS CPU
• BCM4306 802.11a/b/g MAC processor
• BCM2050 802.11b/g radio transceiver
• MAC processor and radio unit on separate mini-PCI card
• 125 MHz MIPS processor
• 4MB Flash EEPROM
• 16MB RAM
• integrated 5 port Ethernet switch (4 external ports, 1 connected internally)
• 1 external Internet/WAN port
• 5 volt 2 amp power supply (10 watts)
• internal photos http://seattlewireless.net/mattw/photos/linksyswrt54g/gallery/
WRT54G V1.1
• BCM4702
• BCM4306
• All chips on main board
• 125 MHz MIPS processor
• 4MB Flash EEPROM
• 16MB RAM
• integrated 5 port Ethernet switch (4 external ports, 1 connected internally)
• 1 external Internet/WAN port
• 12 volt 1 amp power supply (12 watts)
WRT54G V2.0
• BCM4702, BCM4306, BCM2050 into one chip (BCM4712)
• ADM6996L controller datasheet
• 200 MHz MIPS processor
• 4MB Flash EEPROM
• 16MB RAM
• integrated 5 port Ethernet switch (4 external ports, 1 connected internally)
• 1 external Internet/WAN port
• wireless lan interface eth1 - vlan0
• wired lan interface eth0 - vlan1
• onboard pinouts for serial (2 ports)
• LED's handled with a bitmask write to /dev/gpio
• 12 volt 1 amp power supply (12 watts)
WRT54GS V2.0S
• BCM4712, Speedbooster chipset
• ADM6996L controller (datasheet link)
• 200 MHz MIPS processor
• 8MB Flash EEPROM
• 32MB RAM
• integrated 5 port Ethernet switch (4 external ports, 1 connected internally)
6
• 1 external Internet/WAN port
• Onboard pinouts for serial (2 ports)
• 12 volt 1 amp power supply (12 watts)
7
Identifying the Router Model Number
There are a few ways to find your model number:
1.) via the web interface. Point your browser to
http://your.WRT54G's.ip/SysInfo.htm i.e. http://192.168.1.1/SysInfo.htm
You should then see something like this with hardware info at the bottom (version 1 and 1.1 may
report as 1.x, while 2.0 reports as 2.0):
Vendor:LINKSYS
ModelName:WRT54G
Firmware Version:Satori-pre3-2 v2.02.2.7sv , Mar 21 2004
#:000
Boot Version:v1.5
CodePattern:W54G
Country:US
RF Status:enabled
RF Firmware Version:Satori-pre3-2 v2.02.2.7sv
RF Domain:US (channel 1~11)
RF Channel:1
RF SSID:() XXX
-----Dynamic Information
RF Mac Address:00:0C:41:E3:XX:XX
LAN Mac Address:00:0C:41:E3:XX:XX
WAN Mac Address:00:0C:41:E3:XX:XX
Hardware Version:1.x
8
2.) look at the sticker on the bottom of the router. Be aware that the packaging box it came in may
indicate a different version. You can identify the router version based on the serial number on the
box. " http://www.dslreports.com/forum/remark,9471112mode=flat and
http://www.dslreports.com/forum/remark,9463214mode=flat state that the version 2 would also
come in a version 1.1 box." The version would be recognizable by the serial number:
CDF5XXXX is version 2
CDF4XXXX and lower are v1.1 or version 1"
CDF1XXXX is version 1
Reference:
http://groups.yahoo.com/group/WRT54G/message/1581
(I (hkazemi) personally bought a WRT54G v2.0 and it came in a box with packaging labelled v1.1.
I also have a v1.0 and its serial number began with CDF1XXXX.)
3.) via the command line (shell) interface you can look at the results of the 'ifconfig' command. If
you see a vlan0 and vlan1 interface then you have a v2, not a v1.0/v1.1.
4.) via the command line (shell) interface you can look at the results of the 'dmesg' command. You
can look at the cpu speed and memory size information to identify whether you have a v1/v1.1, v2,
or GS.
References:
http://www.sveasoft.com/modules/phpBB2/viewtopic.php?t=974 (Thanks to Trix who pointed out
this method!)
http://www.dslreports.com/forum/remark,9664195mode=flat
http://www.dslreports.com/forum/remark,9325788mode=flat?hilite=WRT54G+version
http://www.smallnetbuilder.com/ProductOpinions-WRT54G.php
Eth interface differences between the versions: v1.0/1.1 and v2.0 'et' distinction
http://sveasoft.com/modules/phpBB2/viewtopic.php?t=191
Power supply info references:
http://www.sveasoft.com/modules/phpBB2/viewtopic.php?t=967
http://www.sveasoft.com/modules/phpBB2/viewtopic.php?t=482
More detailed information is on the Seattle Wireless WRT54g page.
9
The GUI
The Sveasoft firmware is based on various versions of Linksys firmware, and as such the GUI/web
interface is also a derivative of the standard version. Hence some of what is mentioned in the GUI
section may be very similar to what is provided in the built-in router documentation.
• Basic configuration information (WAN settings, IP addresses, etc.)
! WAN (Internet) Supported Connections: Basic configuration (WAN/Internet, IP
addresses, etc.)
! Router: IP Gateway Setup
! DHCP: IP Allocation
! Time Setting: Router Time Zone
! DDNS: Dynamic DNS (a persistent hostname that automatically points to your
dynamic IP)
! Mac Address Cloning: Configure your WRT54G to spoof your current MAC
(required by some ISPs)
! Advanced Routing: Advanced Internet routing (OSPF, static routes, etc)
• Wireless Settings related to wireless networking (network ID, encryption, WDS, etc.)
! Basic Settings: Basic wireless network settings, required to operate (network ID,
channel, etc)
! Security: Settings that control wireless encryption and authentication
! MAC Filter: Additional security settings allowing one to limit access to a few
specific wireless cards
! Advanced Settings: Miscellaneous settings that govern the wireless system (antenna
diversity, transmission power, etc)
! WDS: Settings that control the Wireless Distribution System, allowing you to
connect wirelessly to other access points to extend your network footprint
• Security and VPN settings
! Firewall: Enable and configure the built in firewall
! VPN: Enable the VPN pass-through for different protocols
• Application & Gaming: Port forwarding and DMZ configuration
! Port Range Forwarding: Forward external ports to computers on your LAN
! DMZ: Make the router forward all the ports to any computer on your LAN
• Administration: WRT54G management (system options, firmware upgrades, etc.)
! Management: Enable and configure advanced features
! Log: Enable different logging options on the router
! Diagnostics: Run command shell commands
! Factory Defaults: Reset your router to the factory defaults
! Firmware Upgrade: Upgrade your router's firmware
• Status: Current system status (and client listings)
! Router: Router and Internet connection status
! LAN: LAN interface and DHCP status
! Wireless: Wireless related information such as Channel, mode, signal strength, etc.
10
Description:If your Internet connection has been terminated due Status - The status of the DDNS service connection is displayed here. 17 MAC Address Cloning