Monday, September 23, 2013

Basic setup of OpenWRT on DIR-601 B1 with cable modem


How to install OpenWRT on DIR 601 B1 router and set up a basic network

Internet service provider: TWC
Modem: DOCSIS 2.0 (no wireless)
Router connected to modem.

Note:
It appears that LuCI cannot be installed on this router because there is not enough space available on the device, although it might work if you build own firmware image.

All of the following information is readily available on other websites. I just combined and posted it here for convenience.
  1. Download the latest OpenWRT image:     http://downloads.openwrt.org/snapshots/trunk/ar71xx/openwrt-ar71xx-generic-dir-601-b1-squashfs-factory.bin
  2. Flash according to these instructions: http://wiki.openwrt.org/toh/d-link/dir-600
    Briefly, set PC IP address to 192.168.0.2, press reset button, power up router, use web UI at 192.168.0.1 to upload new image
  3. Login using putty via telnet protocol to 192.168.1.1
  4. Use passwd to change password
  5. Login using putty via ssh protocol
  6. Edit /etc/config/wireless via CLI:
    1. Change ssid (network name) from "OpenWRT" to your network name:
      
      uci set wireless.@wifi-iface[0].ssid="NetworkName"
      
    2. Change "encryption" to "psk2"
      
      uci set wireless.@wifi-iface[0].encryption="psk2"
      
    3. Change "key" to "yourpassword"
      
      uci set wireless.@wifi-iface[0].key="yourpassword"
      
  7. Enable wifi, commit changes, restart wireless interface:
    
    uci set wireless.@wifi-device[0].disabled=0; uci commit wireless; wifi
    
  8. Plug in router to modem, power cycle cable modem
If you have DSL, you would also need to install pppoe packages and include your username and password to the config files.