life ideas

November 9, 2006

bridge

Filed under: Uncategorized — manoftoday @ 7:19 am

Part A) flash with dd-wrt

Flashing the Buffalo WHR-G54S, WHR-HP-G54 and WZR-RS-G54

Normally, most companies let you upload firmware directly from the user interface. Buffalo unfortunately encrypts their firmware, and they’ll only accept encrypted firmware in their web interface. So the easiest way to replace the firmware turns out to be the same way you would “de-brick” a router with corrupt firmware.

Namely, all the broadcom routers enter a special mode in the first few seconds after power is applied that allows a tftp transfer to directly program the flash rom with new firmware. So what you need to do is get everything ready to go, power up the router, and then send it the new firmware quickly.

It turns out to be easier then it sounds.

Gotchas: The special mode uses the default IP address of the router. So if you’ve changed the ip address of the router since you got it you need to set everything up on the old IP address not the new one. You also need to do this with a wired connection, not a wireless connection. This means that you need to give yourself a static IP address on the wired network (i.e. set your computer to use 192.168.11.2 instead of using DHCP).
Use only v23 SP1 final or later. Older releases may cause trouble!

  1. For thoroughness, reset to factory defaults by holding the reset button while plugging in the router. Hold for at least 30 seconds. Unplug the router.
  2. Connect your computer directly to one of the LAN ports on the router. (You can use a regular cable or crossover).
  3. Because the Buffalo starts up with 192.168.11.1(or 192.168.12.1 for WZR-RS-G54), your computer’s IP needs to be in the 192.168.11.0/24 subnet (e.g. 192.168.11.2, mask 255.255.255.0 or 192.168.12.2, mask 255.255.255.0 for WZR-RS-G54). You will have to set a static IP. A static IP is critical for the tftp procedure to work; a dynamic IP won’t work even if the dynamic IP is currently set in the proper subnet. For Windows XP, the following screen shots should help. After selecting “Internet Protocol (TCP/IP),” click on the Properties button to open the next screen. Then enter the info as shown and click ‘OK’. Leave Default Gateway blank.LAN_Properties_-_XP.jpg
  4. Open a command window. Go to Start->Run->”cmd”.
  5. Change your directory to the folder containing the firmware image. (Ex. cd "C:\Documents and Settings\All Users\Desktop" (if you saved the .bin file to the Desktop)
  6. Type tftp -i 192.168.11.1 PUT (file name of firmware image) like: tftp -i 192.168.11.1 PUT dd-wrt.v23_generic.bin. (For WZR-RS-G54 use 192.168.12.1 as the router IP.) Do not press enter yet.
  7. Grab the power cable to the router (should be unplugged), now, hit Enter to start the TFTP transfer and immediately connect the power to the Buffalo.
  8. All port LEDs will illuminate.
  9. The LED on the LAN port will flash rapidly for about 6 seconds. The command will complete with a success printout, like Transfer successful: 3502080 bytes in 5 seconds, 700416 bytes/s
  10. The router will reboot and then boot DD-WRT, wait until the bridge/diagnostic light turns off.
  11. At this point, the router is ready to use. There is no need to reboot it (unplug/plug), although this is a safe precaution.
  12. The router will be now be accessible on 192.168.1.1 netmask 255.255.255.0. You will need to change your IP to this range to access it for configuration. (For the WB2-G54, the router is still accessible at 192.168.11.1).
  13. The username is ‘root’ and the password is ‘admin’.

Part B) bridge

Setup

  1. Makesure the laptop is use predefined static IP as previous defined like 192.168.1.5 Log into the Secondary Router. (We will only be altering the Secondary Router!)
  2. This step is not needed if we just flashed with DD-WRT image as in part A.    Administration Tab – Factory Defaults Subtab
    1. Restore Factory Defaults: Yes
    2. Click “Save Settings” – triggers reboot.
    3. Router’s IP will now be 192.168.1.1 if it wasn’t already.
      This was a very important step – I have run this process 3 times now as a trial, and the instructions are written assuming you have a “clean” router.
  3. Setup Tab – Basic Setup Subtab
    1. Connection Type: Disable
    2. STP: Disable
    3. Local IP: 192.168.1.2 (it was initially 192.168.1.1)
    4. Assign WAN Port To Switch: Checked
    5. DHCP Server: Disable
    6. Click “Save Settings” – triggers reboot.
      I had an error along the lines of “Can’t connect to 192.168.1.1” – This is because it’s now 192.168.1.2 – close and restart the browser to avoid authentification problems and connect to the new IP address and retype your username and password.
  4. Security Tab – Firewall Subtab
    1. SPI Firewall: Disable
    2. Click “Save Settings”
  5. Wireless Tab – Basic Settings Subtab
    1. Wireless Mode: Client Bridge
    2. Wireless Network Name (SSID): Match your primary router.
    3. Wireless Channel: Match your primary router.
    4. Wireless SSID Broadcast: Disable
    5. Click “Save Settings”
  6. Wireless Tab – Wireless Security Subtab
    1. Security Mode: WEP (I have not tried anything but 128bit WEP!) wpa-psk works as well -guyonphone; wpa-psk even works if original router is wpa2 mixed -mcoope3; v2.3_sp2 in client bridge mode currently doesn’t support wpa2-psk, but only wpa2-psk mixed mode, so the AP has to be set to mixed and not wpa2-only mode (it can be either AES or TKIP).-zevnik   (I choose WPA-PSK with AES)
    2. Encryption: Match your primary router.
    3. Key 1: Match your primary router.
    4. Click “Save Settings”
  7. Wireless Tab – Advanced Settings Subtab
    1. Authentication Type: Shared Key
    2. Click “Save Settings”
      This seems like a VERY important step – it DID NOT work until I did this!
  8. Status Tab – Wireless Subtab
    1. Click Site Survey and join the appropriate wireless network. Access Point table should show the MAC address of your Primary Router, along with signal strength. At this point it was working 100% for me.
      If that worked, then:
  9. Administration Tab – Backup Subtab
    1. Click “Backup”
      (SAVE this config before doing anything else to your router, just in case!)
  10. Makesure the laptop is now changed to use DHCP, now I have full access to both routers – which runs contrary to a lot of the notes concerning Client Bridge mode. One router is http://192.168.1.1 – and the other is http://192.168.1.2 – and I can access both from either side of the bridge. I will also be able to access outside world.

Pictorial

Download Hi-res Version

Enlarge

Download Hi-res Version

Advertisements

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Blog at WordPress.com.

%d bloggers like this: