Installation openWRT auf Linksys WRT54GL

Vorbereitungen

Reset to Factory Defaults

aus dem linksys forum

To reset your router to factory defaults, use the following procedure:

  1. Power down all computers, the router, and the modem, and unplug them from the wall.
  2. Disconnect all wires from the router.
  3. Power up the router and allow it to fully boot (1-2 minutes).
  4. Press and hold the reset button for 30 seconds, then release it, then let the router reset and reboot (2-3 minutes).
  5. Power down the router.
  6. Connect one computer by wire to port 1 on the router (NOT to the internet port).
  7. Power up the router and allow it to fully boot (1-2 minutes).
  8. Power up the computer (if the computer has a wireless card, make sure it is off).
  9. Try to ping the router. To do this, click the “Start” button > All Programs > Accessories > Command Prompt. A black DOS box will appear. Enter the following: “ping 192.168.1.1” (no quotes), and hit the Enter key. You will see 3 or 4 lines that start either with “Reply from ... " or “Request timed out.” If you see “Reply from ...”, your computer has found your router.
  10. Open your browser and point it to 192.168.1.1. This will take you to your router’s login page. Leave the user name blank, and in the password field, enter “admin” (with no quotes). This will take you to your router setup page. Note the version number of your firmware (usually listed near upper right corner of screen). Exit your browser.

If you get this far without problems, try the setup disk (or setup the router manually, if you prefer), and see if you can get your router setup and working.

If you cannot get “Reply from ...” in step 9 above, your router is dead.

If you get a reply in step 9, but cannot complete step 10, then either your router is dead or the firmware is corrupt. In this case, use the Linksys tftp.exe program to try to reload your router with the latest firmware. After reloading the firmware, repeat the above procedure starting with step 1.

If you need additional help, please state your ISP, the make and model of your modem, your router’s firmware version, and the results of steps 9 and 10. Also, if you get any error messages, copy them exactly and report back.

=) Diese Prozedur hat für mich glücklicherweise funktioniert, ich musste sie anwenden, da ich leider das admin Passwort für den Router vergessen hatte.

First Steps

  • Konfiguration WAN Interface als DHCP
  • Konfiguration interne Interfaces als DHCP-Server
  • Upgrade Firmware via Webinterface
    • openwrt-wrt54g-squashfs.bin

Erster Login auf openWRT

test openwrt

$ ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
64 bytes from 192.168.1.1: icmp_seq=1 ttl=64 time=1.78 ms

--- 192.168.1.1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 1.784/1.784/1.784/0.000 ms

$ telnet 192.168.1.1
Trying 192.168.1.1...
Connected to 192.168.1.1.
Escape character is '^]'.
 === IMPORTANT ============================
  Use 'passwd' to set your login password
  this will disable telnet and enable SSH
 ------------------------------------------


BusyBox v1.00 (2007.01.30-11:42+0000) Built-in shell (ash)
Enter 'help' for a list of built-in commands.

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 WHITE RUSSIAN (0.9) -------------------------------
  * 2 oz Vodka   Mix the Vodka and Kahlua together
  * 1 oz Kahlua  over ice, then float the cream or
  * 1/2oz cream  milk on the top.
 ---------------------------------------------------
root@OpenWrt:/# nvram get boot_wait
off
root@OpenWrt:/# nvram set boot_wait=on
root@OpenWrt:/# nvram get boot_wait
on
root@OpenWrt:/# nvram commit
root@OpenWrt:/# passwd
Changing password for root
Enter the new password (minimum of 5 characters)
Please use a combination of upper and lower case letters and numbers.
Enter new password:
Bad password: too simple.

Warning: weak password (continuing).
Re-enter new password:
Password changed.

SSH auf openWRT

ssh

$ ssh 192.168.1.1
Warning: Permanently added '192.168.1.1' (RSA) to the list of known hosts.
root@192.168.1.1's password:


BusyBox v1.00 (2007.01.30-11:42+0000) Built-in shell (ash)
Enter 'help' for a list of built-in commands.

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 WHITE RUSSIAN (0.9) -------------------------------
  * 2 oz Vodka   Mix the Vodka and Kahlua together
  * 1 oz Kahlua  over ice, then float the cream or
  * 1/2oz cream  milk on the top.
 ---------------------------------------------------
root@OpenWrt:~#  

TCPdump beim Booten des Geräts

  • UDP // Ress reset now to enter Failsafe
  • BOOTP/DHCP, Request from 00:1c:10:12:63:4a (3x)
22:20:41.314268 IP 192.168.1.1.2048 > 192.168.1.255.4919: UDP, length 1001
        0x0000:  4500 0405 0000 4000 4011 b297 c0a8 0101  E.....@.@.......
        0x0010:  c0a8 01ff 0800 1337 03f1 8b2b dead 5072  .......7...+..Pr
        0x0020:  6573 7320 7265 7365 7420 6e6f 772c 2074  ess.reset.now,.t
        0x0030:  6f20 656e 7465 7220 4661 696c 7361 6665  o.enter.Failsafe
        0x0040:  2100 0000 0000 0000 0000 0000 0000 0000  !...............
        0x0050:  0000                                     ..
22:20:54.765333 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from 00:1c:10:12:63:4a, length: 278
        0x0000:  4500 0132 0000 0000 4011 79bc 0000 0000  E..2....@.y.....
        0x0010:  ffff ffff 0044 0043 011e 157b 0101 0600  .....D.C...{....
        0x0020:  36ee 9a6b 0000 0000 0000 0000 0000 0000  6..k............
        0x0030:  0000 0000 0000 0000 001c 1012 634a 0000  ............cJ..
        0x0040:  0000 0000 0000 0000 0000 0000 0000 0000  ................
        0x0050:  0000                                     ..
22:20:56.759340 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from 00:1c:10:12:63:4a, length: 278
        0x0000:  4500 0132 0000 0000 4011 79bc 0000 0000  E..2....@.y.....
        0x0010:  ffff ffff 0044 0043 011e 157b 0101 0600  .....D.C...{....
        0x0020:  36ee 9a6b 0000 0000 0000 0000 0000 0000  6..k............
        0x0030:  0000 0000 0000 0000 001c 1012 634a 0000  ............cJ..
        0x0040:  0000 0000 0000 0000 0000 0000 0000 0000  ................
        0x0050:  0000                                     ..
22:20:58.759308 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from 00:1c:10:12:63:4a, length: 278
        0x0000:  4500 0132 0000 0000 4011 79bc 0000 0000  E..2....@.y.....
        0x0010:  ffff ffff 0044 0043 011e 157b 0101 0600  .....D.C...{....
        0x0020:  36ee 9a6b 0000 0000 0000 0000 0000 0000  6..k............
        0x0030:  0000 0000 0000 0000 001c 1012 634a 0000  ............cJ..
        0x0040:  0000 0000 0000 0000 0000 0000 0000 0000  ................
        0x0050:  0000                                     ..
 
wissen/openwrt/installation-openwrt-auf-cisco-linksys-router-wrt54gl-de.txt · Zuletzt geändert: 05.09.2010 20:31
 
Recent changes RSS feed Donate Valid XHTML 1.0 Valid CSS Recent cached RSS feed cacert-signed web site: inhalt.serviert.de