The problem
I changed nothing here.wanProtocol: DHCPBridge interfaces: uncheckedInterface: eth0.1Zone: wan
My local network subnet is 172.18.0/24 so I placed the LAN interface within that subnet. By doing this, I can telnet into the router without needing to specially configure a machine to talk to it.lanProtocol: staticBridge interfaces: checkedEnable STP: uncheckedInterface: eth0.0Zone: lanIPv4-Address: 172.18.0.11IPv4-Netmask: 255.255.255.0IPv4-Gateway: 172.18.0.1DNS-Server (added): 172.18.0.1Click Save.
Device wl0enable: checkedChannel: autoTransmit Power (dBm): 70802.11h (added): checkedWMM Mode (added): checkedInterfacesESSID: KWABNetwork: lanMode: ClientEncryption: WPA2-PSKKey: ******* (I’m not giving that up!! 😉 )Click Save.
The Linksys WRT54GS v.4 uses slightly different VLAN ports than other routers. Basically, the WAN port is #0, whereas most other routers it is #4. I updated accordingly.ETH0ethX.0: 0 1 2 3 5*ethX.1: 4 5Click Save.
DHCP is enabled by default. It must be disabled. Uncheck the Dynamic DHCP option.Click Save.
Once the settings are applied, the router should be pingable at 172.18.0.11 and the normal network should also be accessible using normal means (in my case DHCP). I have noticed that the router sometimes gets confused at this point, and a simple reboot [by pulling the plug] fixes that.
By default, the network interfaces do not support the full set of multicasting required for Bonjour and mDNS to work (two things I can’t live without with my Macs). To get them going, we need a quick shell script.Edit the /etc/firewall.user script, and add these lines to it:# enable full multicasting
for iface in br-lan eth0 eth0.0 eth0.1 wl0; do
ifconfig ${iface} allmulti
doneRun the script to setup the multicasting. In case you were wondering, Tte script will be executed automatically by the firewall script on subsequents boots.
- Placed a copy of OpenWrt in my ~/Downloads folder
- Changed to my ~/Downloads folder
$ cd ~/Downloads - Set a static IP on my laptop to 192.168.1.2
- Added a manual ARP entry (needed later for TFTP) to 192.168.1.2 (valid for OS X 10.5/10.6)
$ sudo arp -s 192.168.1.1 00:16:b6:1e:a2:3f - Telnetted into the router. For this to work, you must be plugged into the LAN portion of the router (the switch section) and not the WAN port (the Internet port).
$ telnet 192.168.1.1 - Erased the flash on the router
# mtd erase linux - Pulled the power out of the router
- Started TFTP on my laptop
-
$ tftp 192.168.1.1
tftp> mode binary
tftp> rexmt 1
tftp> timeout 90
tftp> trace
Packet tracing on.
tftp> put openwrt-wrt54gs_v4-squashfs.bin - Plugged the router back in
- Waited for the firmware to flash. You should see something similar to this if the upload works:
sent DATA
received ACK
sent DATA
received ACK
...
sent DATA
received ACK
Sent 2166816 bytes in 61.9 secondsThe number of blocks will of course be different for the release of OpenWrt you use.