Initialen











Change color to default
Change color to red
Change color to blue
Change color to green
Change color to yellow
Change color to cyan
Change color to magenta
Change color to orange
Change color to b/w

fuschlberger.net - OpenWRT on Linksys WRT54GL

Change color to default
Change color to red
Change color to dark red
Change color to blue
Change color to dark blue
Change color to green
Change color to dark green
Change color to yellow
Change color to dark yellow
Change color to cyan
Change color to dark cyan
Change color to magenta
Change color to dark magenta
Change color to magenta
Change color to dark orange
Change color to grey
Change color to b/w

Printme!

OpenWRT on Linksys WRT54G / WRT54GL


This is my private collection of useful stuff for OpenWRT (in my case running on a Linksys WRT54GL) so I don't have to ask google or search the various wikis everytime I need these things. I hope somebody else will find it useful, too.


Firmware update with TFTP

tftp 192.168.1.1
binary
rexmt 1
timeout 60
trace
Packet tracing on.

plug the Linksys in
as soon as the DMZ LED is blinking, run
put openwrt-xxx-x.x-xxx.bin

Don't plug it off then, it will reboot as soon as the firmware update is finished.
telnet to the linksys to set a password (if you have changed the IP-address before it is possible that this setting survived the firmware update, so use this IP-address instead)
telnet -l root 192.168.1.1
passwd
logout

as soon as a passwort is set (only) the ssh-server can be used to login
ssh 192.168.1.1


You can listen for messages from the OpenWRT for entering failsafe-mode on port 4919 UDP:
nc -l -p 4919 -u
The IP-Address of the computer should be in the 192.168.1.* subnet.

Firmware upgrade from the command line on the linksys itself:
copy the .trx-file to /tmp/ with scp or wget
then run e.g.
mtd -r write openwrt-brcm-2.4-sqashfs.trx linux

With kamikaze (recent version of OpenWRT)

#### VLAN configuration
config switch eth0
    option vlan0 "0 1 2 3 5*"
    option vlan1 "4 5"


#### Loopback configuration
config interface loopback
    option ifname "lo"
    option proto static
    option ipaddr 127.0.0.1
    option netmask 255.0.0.0


#### LAN configuration
config interface lan
    option type bridge
    option ifname "eth0.0"
    option proto static
    option ipaddr 192.168.6.1
    option netmask 255.255.255.0


#### WAN configuration
config interface wan
    option ifname "eth0.1"
    option proto dhcp

With white russian (old version of OpenWRT)

Interface configuration (bridge LAN - WLAN)

lan_ifname=br0
lan_ifnames=vlan0 eth1
lan_ipaddr=192.168.3.99
lan_ifnames=vlan0 eth1
vlan0hwname=et0
vlan0ports=3 2 1 0 5*
vlan1hwname=et0
vlan1ports=4 5

wifi_ifname=eth1
wifi_ipaddr=192.168.3.99
wifi_netmask=255.0.0.0
wifi_proto=static
wl0_ifname=eth1

wan_device=vlan1
wan_ifname=vlan1
wan_ipaddr=192.168.1.99

Clean up nvram variables

cd /tmp
export http_proxy=http://192.168.X.X; wget http://downloads.openwrt.org/people/kaloz/nvram-clean.sh
chmod a+x /tmp/nvram-clean.sh
/tmp/nvram-clean.sh
nvram commit

ipkg.conf

option http_proxy http://192.168.X.X:3128/

Links


Written 2006-06-17 - last update 2007-11-11


Change color to defaultChange color to redChange color to blueChange color to greenChange color to yellowChange color to cyanChange color to magentaChange color to orangeChange color to b/w

© by wf
webslave (at) fuschlberger.net
Medieninhaber:
Wolfgang Fuschlberger, Salzburg