D-Link DIR-868L

From DD-WRT Wiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 01:47, 22 April 2024 (edit)
Kernel-panic69 (Talk | contribs)
(Known Issues - (fix links))
← Previous diff
Revision as of 02:16, 22 April 2024 (edit) (undo)
Kernel-panic69 (Talk | contribs)
(Installation Instructions - (update installation instructions, add upgrade instructions))
Next diff →
Line 31: Line 31:
=Installation Instructions= =Installation Instructions=
 +'''<span style="color:#000000; background:#ffff00">&nbsp;**CAUTION**:&nbsp;</span> Do not upgrade through wireless connection unless the router is limited to only a wireless connection.'''<br>
 +'''<span style="color:#ffffff; background:#ff0000">&nbsp;**WARNING**:&nbsp;</span> Turning off power during the upgrade process may cause permanent damage to the device.'''<br>
 +'''<span style="color:#ffffff; background:#ff0000">&nbsp;**WARNING**:&nbsp;</span> DO NOT PERFORM A 30/30/30 VIA RESET BUTTON ON ANY BROADCOM ARM ROUTERS, YOU WILL BRICK IT!!!'''<br>
 +'''<span style="color:#ffffff; background:#000080">&nbsp;**NOTE**:&nbsp;</span> SEE [[Index:FAQ#Which_router_should_I_buy.3F|Where do I download firmware?]] for information on where to download firmware files.'''<br>
 +'''<span style="color:#ffffff; background:#000080">&nbsp;**NOTE**:&nbsp;</span> It is recommended to use a factory-to-ddwrt.bin firmware between[https://ftp.dd-wrt.com/dd-wrtv2/downloads/betas/2015/01-20-2015-r25974/dlink-dir868l/ 01-20-2015-r25974] .. [https://ftp.dd-wrt.com/dd-wrtv2/downloads/betas/2015/05-28-2015-r27096/dlink-dir868l/ 05-28-2015-r27096] for initial flash.'''<br>
 +'''<span style="color:#ffffff; background:#000080">&nbsp;**NOTE**:&nbsp;</span> builds since [https://ftp.dd-wrt.com/dd-wrtv2/downloads/betas/2015/06-05-2015-r27240/ 06-05-2015-r27240 contain different folders for REV A1, B1, and C1 models.'''<br>
 +
 +Download the prescribed factory-to-ddwrt.bin and current release dir868[a|b|c]-webflash.bin
 +
==Flash from OEM factory firmware== ==Flash from OEM factory firmware==
-DD-WRT can be flashed directly on the D-Link DIR-868L by using the D-Link web interface.+<ol>
-*'''For ''Upgrading DD-WRT'', skip the ''factory-to-ddwrt'' steps and use the ''webflash'' file'''+<li> Connect your PC via Ethernet cable to one of the LAN ports (Black) on the back of your router.</li>
-#[https://ftp.dd-wrt.com/betas/ Download] '''factory-to-ddwrt.bin''' and '''dir868[rev a|b|c]-webflash.bin''' (see [[Index:FAQ#Which_router_should_I_buy.3F|Where do I download firmware?]]): read forum build threads before flashing. Verify the correct revision file: ''dlink-dir868l-reva'' for HW/ver ''A1'', ''revb'' for ''B1'', etc.+<li> Launch/open a web browser and enter http://dlinkrouter.local or http://192.168.0.1 in the address bar.</li>
-#Open the D-Link web-interface (http://192.168.0.1) in a web browser, Log In, and go to Tools -> Firmware.+* A login page will display. Default login is admin/no password. It is recommended to reset your router to defaults.
-#*Warning: flash over an Ethernet cable or use [[https://wiki.dd-wrt.com/wiki/index.php/Installation#Method_3:_Flashing_with_Command_Line|CLI]]+<li> After you login to your router's user interface, click on the Tools tab at the top of the page.</li>
-#Select '''factory-to-ddwrt.bin''' and click the '"Upload'"-button. When the firmware has been successfully flashed, the router will reboot, this may take up to 3 mins. If the (top) Power-LED on the front of the router keeps blinking, see Recovery mode.+* Click on Firmware from the menu on the left-hand side.
-#The router address should now be changed into http://192.168.1.1. You may need to set your TCP/IPv4 settings manually using 192.168.1.1 as IP address and 255.255.255.0 as Subnet mask to access the router.+<li> Scroll down the page. Under Firmware Upgrade, click on the Browse button and select the previously downloaded ''factory-to-ddwrt.bin'' file and click Open.</li>
-#[[Installation#Upgrading_to_a_Newer_Version_of_DD-WRT|Upgrade the router]] to the full version using the appropriate '''dir-868[rev]-webflash.bin''' firmware.+<li> Click on Upload.</li>
-#* Note: The router doesn't support hard reset (30/30/30), select '''Reset to default''' in web gui or [[Hard_reset_or_30/30/30#Erasing_NVRAM|Erase NVRAM]] via command line instead.+'''<span style="color:#000000; background:#ffff00">&nbsp;**CAUTION**:&nbsp;</span> After you start the firmware update, do not try to go online, turn off the router, or do anything else to the router until it finishes restarting.'''
-#* Note: The router's reset button works for resetting the DD-WRT settings, to do this, while DD-WRT is running, press and hold the reset button on the router's bottom for 15 seconds till the router reset and reboots. You will see the LEDs goes all off then the power LED starts flashing (indicates the router has went into recovery mode). Power off the router and power on again to access DD-WRT if recovery is not needed at the moment.+<li>When the router has finished restarting, go to http://192.168.1.1 in your browser.</li>
 +*You should be greeted by the password change page of the DD-WRT webUI.
 +<li>Set username (optional, default username is root) and password (enter password twice, these '''*must*''' match and are case-sensitive).</li>
 +*You should be greeted by the System Info page of the DD-WRT webUI
 +<li>Click on ''Setup'', then ''Wireless'', then ''Basic Wireless Settings''.</li>
 +*You will be required to enter username and password previously set.
 +*'''You will want to set the regulatory domain under wireless settings and click ''Save'' at the bottom of the page.'''
 +<li>Click on ''Administration'', then ''Firmware Upgrade''
 +*Leave ''Do Not Reset'' selected for ''After Flashing''</li>
 +<li>Click on ''Browse'' and select the appropriate previously downloaded ''dir868[rev a|b|c]-webflash.bin'' file specific to your router model version.</li>
 +<li>Click ''Open''</li>
 +<li>Click ''Upgrade''</li>
 +*The firmware update starts and the router restarts. The firmware update process takes about five minutes.
 +'''<span style="color:#000000; background:#ffff00">&nbsp;**CAUTION**:&nbsp;</span> After you start the firmware update, do not try to go online, turn off the router, or do anything else to the router until it finishes restarting.'''
 +<li>If the webUI does not automatically go back to the ''Setup -> Basic Setup'' page, or does not stop at the progress bar page to allow you to click ''Continue'' after waiting at least five minutes (i.e. if you get a "Connection Reset" or other error page in your browser), enter http://192.168.1.1 (or whatever your router IP address is) manually or click and hold the "Back" button and select the appropriate history entry.</li>
 +<li>Click on ''Setup'' to begin configuration to your needs.</li>
 +*You will be required to enter username and password previously set.
 +<li>Click ''Save'' on each page (unless otherwise noted in a specific tutorial).</li>
 +<li>When finished, Click on ''Services'' or ''Administration'' tab and click ''Reboot''.</li>
 +</ol>
 +* Note: The router doesn't support hard reset (30/30/30), select '''Reset to default''' in webUI or [[Hard_reset_or_30/30/30#Erasing_NVRAM|Erase NVRAM]] via command line instead.
 +* Note: The router's reset button works for resetting the DD-WRT settings, to do this, while DD-WRT is running, press and hold the reset button on the router's bottom for 15 seconds till the router reset and reboots. You will see the LEDs goes all off then the power LED starts flashing (indicates the router has went into recovery mode). Power off the router and power on again to access DD-WRT if recovery is not needed at the moment.
 + 
 +=Upgrading (or Downgrading) DD-WRT=
 +'''<span style="color:#ffffff; background:#000080">&nbsp;**NOTE**:&nbsp;</span> Use the file named dir868[a|b|c]-webflash.bin.'''<br>
 +'''<span style="color:#ffffff; background:#ff0000">&nbsp;**WARNING**:&nbsp;</span> Do not use this file to go from Stock to DD-WRT.'''<br>
 +'''<span style="color:#ffffff; background:#000080">&nbsp;**NOTE**:&nbsp;</span> Reset to defaults is recommended if you are upgrading from a very old build (> 6 months).'''<br>
 +'''<span style="color:#ffffff; background:#000080">&nbsp;**NOTE**:&nbsp;</span> Do not restore a backup from one version to another version of DD-WRT, as nvram variable names may have changed.'''<br>
 +<ol>
 +<li>Connect your computer to your router with an Ethernet cable.</li>
 +<li>Enter http://192.168.1.1 (or whatever you set your router IP to) into a web browser.</li>
 +<li>Enter username and password as required.</li>
 +<li>Go to ''Administration -> Firmware Upgrade''</li>
 +*Leave ''Do Not Reset'' selected for ''After Flashing''</li>
 +<li>Click on ''Browse'' and select the appropriate previously downloaded ''tplink_archer-c7.bin'' file specific to your router model version.</li>
 +<li>Click ''Open''</li>
 +<li>Click ''Upgrade''</li>
 +*The firmware update starts and the router restarts. The firmware update process takes about five minutes.
 +'''<span style="color:#000000; background:#ffff00">&nbsp;**CAUTION**:&nbsp;</span> After you start the firmware update, do not try to go online, turn off the router, or do anything else to the router until it finishes restarting.'''
 +<li>If the webUI does not automatically go back to the ''Setup -> Basic Setup'' page, or does not stop at the progress bar page to allow you to click ''Continue'' after waiting at least five minutes (i.e. if you get a "Connection Reset" or other error page in your browser), enter http://192.168.1.1 (or whatever your router IP address is) manually or click and hold the "Back" button and select the appropriate history entry.</li>
 +</ol>
-==How to restore to factory firmware==+=How to restore to factory firmware=
# Follow steps of Recovery Mode. # Follow steps of Recovery Mode.
# When returned to factory firmware, navigate to '''Tools''' - '''System''' and select '''Restore Factory Settings'''. # When returned to factory firmware, navigate to '''Tools''' - '''System''' and select '''Restore Factory Settings'''.
-==Recovery Mode==+=Recovery Mode=
When the Power LED keeps blinking on boot, the router has entered the recovery mode. This usually happens when flashing a firmware went wrong, or the configuration has been corrupted. When the Power LED keeps blinking on boot, the router has entered the recovery mode. This usually happens when flashing a firmware went wrong, or the configuration has been corrupted.

Revision as of 02:16, 22 April 2024


Contents


Hardware Specifications

(D-Link DIR-868L rev A1 - Wireless Cat):

CPU Broadcom BCM4708
RAM 256 MB
Flash 128 MB
Switch BCM4708
Radio (2.4 GHz) BCM4331
Radio (5 GHz) BCM4360
Antenna Type Internal (Dual Band)

Installation Instructions

 **CAUTION**:  Do not upgrade through wireless connection unless the router is limited to only a wireless connection.
 **WARNING**:  Turning off power during the upgrade process may cause permanent damage to the device.
 **WARNING**:  DO NOT PERFORM A 30/30/30 VIA RESET BUTTON ON ANY BROADCOM ARM ROUTERS, YOU WILL BRICK IT!!!
 **NOTE**:  SEE Where do I download firmware? for information on where to download firmware files.
 **NOTE**:  It is recommended to use a factory-to-ddwrt.bin firmware between01-20-2015-r25974 .. 05-28-2015-r27096 for initial flash.
 **NOTE**:  builds since [https://ftp.dd-wrt.com/dd-wrtv2/downloads/betas/2015/06-05-2015-r27240/ 06-05-2015-r27240 contain different folders for REV A1, B1, and C1 models.

Download the prescribed factory-to-ddwrt.bin and current release dir868[a|b|c]-webflash.bin

Flash from OEM factory firmware

  1. Connect your PC via Ethernet cable to one of the LAN ports (Black) on the back of your router.
  2. Launch/open a web browser and enter http://dlinkrouter.local or http://192.168.0.1 in the address bar.
    • A login page will display. Default login is admin/no password. It is recommended to reset your router to defaults.
  3. After you login to your router's user interface, click on the Tools tab at the top of the page.
    • Click on Firmware from the menu on the left-hand side.
  4. Scroll down the page. Under Firmware Upgrade, click on the Browse button and select the previously downloaded factory-to-ddwrt.bin file and click Open.
  5. Click on Upload.
  6.  **CAUTION**:  After you start the firmware update, do not try to go online, turn off the router, or do anything else to the router until it finishes restarting.

  7. When the router has finished restarting, go to http://192.168.1.1 in your browser.
    • You should be greeted by the password change page of the DD-WRT webUI.
  8. Set username (optional, default username is root) and password (enter password twice, these *must* match and are case-sensitive).
    • You should be greeted by the System Info page of the DD-WRT webUI
  9. Click on Setup, then Wireless, then Basic Wireless Settings.
    • You will be required to enter username and password previously set.
    • You will want to set the regulatory domain under wireless settings and click Save at the bottom of the page.
  10. Click on Administration, then Firmware Upgrade
    • Leave Do Not Reset selected for After Flashing
  11. Click on Browse and select the appropriate previously downloaded dir868[rev a|b|c]-webflash.bin file specific to your router model version.
  12. Click Open
  13. Click Upgrade
    • The firmware update starts and the router restarts. The firmware update process takes about five minutes.

     **CAUTION**:  After you start the firmware update, do not try to go online, turn off the router, or do anything else to the router until it finishes restarting.

  14. If the webUI does not automatically go back to the Setup -> Basic Setup page, or does not stop at the progress bar page to allow you to click Continue after waiting at least five minutes (i.e. if you get a "Connection Reset" or other error page in your browser), enter http://192.168.1.1 (or whatever your router IP address is) manually or click and hold the "Back" button and select the appropriate history entry.
  15. Click on Setup to begin configuration to your needs.
    • You will be required to enter username and password previously set.
  16. Click Save on each page (unless otherwise noted in a specific tutorial).
  17. When finished, Click on Services or Administration tab and click Reboot.
  • Note: The router doesn't support hard reset (30/30/30), select Reset to default in webUI or Erase NVRAM via command line instead.
  • Note: The router's reset button works for resetting the DD-WRT settings, to do this, while DD-WRT is running, press and hold the reset button on the router's bottom for 15 seconds till the router reset and reboots. You will see the LEDs goes all off then the power LED starts flashing (indicates the router has went into recovery mode). Power off the router and power on again to access DD-WRT if recovery is not needed at the moment.

Upgrading (or Downgrading) DD-WRT

 **NOTE**:  Use the file named dir868[a|b|c]-webflash.bin.
 **WARNING**:  Do not use this file to go from Stock to DD-WRT.
 **NOTE**:  Reset to defaults is recommended if you are upgrading from a very old build (> 6 months).
 **NOTE**:  Do not restore a backup from one version to another version of DD-WRT, as nvram variable names may have changed.

  1. Connect your computer to your router with an Ethernet cable.
  2. Enter http://192.168.1.1 (or whatever you set your router IP to) into a web browser.
  3. Enter username and password as required.
  4. Go to Administration -> Firmware Upgrade
    • Leave Do Not Reset selected for After Flashing
  5. Click on Browse and select the appropriate previously downloaded tplink_archer-c7.bin file specific to your router model version.
  6. Click Open
  7. Click Upgrade
    • The firmware update starts and the router restarts. The firmware update process takes about five minutes.

     **CAUTION**:  After you start the firmware update, do not try to go online, turn off the router, or do anything else to the router until it finishes restarting.

  8. If the webUI does not automatically go back to the Setup -> Basic Setup page, or does not stop at the progress bar page to allow you to click Continue after waiting at least five minutes (i.e. if you get a "Connection Reset" or other error page in your browser), enter http://192.168.1.1 (or whatever your router IP address is) manually or click and hold the "Back" button and select the appropriate history entry.

How to restore to factory firmware

  1. Follow steps of Recovery Mode.
  2. When returned to factory firmware, navigate to Tools - System and select Restore Factory Settings.

Recovery Mode

When the Power LED keeps blinking on boot, the router has entered the recovery mode. This usually happens when flashing a firmware went wrong, or the configuration has been corrupted.

It is also possible to (force) boot into recovery mode to restore a (soft-)bricked router or flashing back to the factory firmware:

  1. Download the latest available firmware on the official D-Link website of the router revision.
  2. Unplug all cables (incl. power cable) from the router.
  3. Connect the router to the PC using one of the 4 switch ports.
  4. Set the PC TCP/IPv4 address to 192.168.0.2 and use 255.255.255.0 as the Subnet mask.
  5. Disable any running firewall(s), anti-virus, TCP/IPv6, etc.
  6. Power-on the router with a paperclip pushing the hidden reset button located on the bottom of the device for a few seconds, when the Power LED starts blinking, release the reset button.
  7. Open Mozilla FireFox (*other browsers doesn't seem to work correctly when trying to flash the firmware) and navigate to http://192.168.0.1.
  8. Upload the stock firmware, when completed the router should report to reboot.
  9. The router should now be running stock and accessible on the default address. (http://192.168.1.1).

Known Issues

Bad WiFi drivers

  • 5GHz band issue: this should be fixed in latest builds, however when the 5GHz band doesn't not pop up when you search for WiFi networks on your device or it will take a few seconds to show up (and disappear again), try to manually add the wireless network or change the Channel Width of the 5GHz interface to Wide HT40 instead of VHT80 (although this may affect performance).

OpenVPN

If using the inbuilt OpenVPN-server in tunnel-mode, you may need to use the following firewall rules:

iptables -A INPUT -i vlan2 -m state --state NEW -p udp --dport 1194 -j ACCEPT
iptables -A INPUT -i tun2 -j ACCEPT
iptables -A FORWARD -i tun2 -j ACCEPT
iptables -A FORWARD -i tun2 -o vlan2 -m state --state RELATED,ESTABLISHED -j ACCEPT
iptables -A FORWARD -i vlan2 -o tun2 -m state --state RELATED,ESTABLISHED -j ACCEPT
iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -o vlan2 -j MASQUERADE
  • Note 1: Verify that the interfaces are correct by running the ifconfig command
  • Note 2: You may need to adjust the above IP-address (& netmask)

The following Additional DNSMasq Options may also be needed, to stop DHCP(-service) on the tunnel-port:

interface=tun2 
no-dhcp-interface=tun2

D-Link DDNS

D-Link offers router owners a free dynamic DNS host name service (https://www.dlinkddns.com/). This service can also be enabled on the dd-wrt firmware:

DDNS Service DynDNS.org
Username Your username (no email-address)
Password Your Password
Hostname <hostname>.dlinkddns.com
Type Dynamic
IP Check Yes *only when needed

A working state should give verification messages, like this one:

Thu Jan 22 23:11:21 2015: INADYN: Started 'INADYN Advanced version 1.96-ADV' - dynamic DNS updater. 
Thu Jan 22 23:11:21 2015: INADYN: IP read from cache file is 'x.x.x.x'. No update required.