Dlink DIR-868L Lost Credentials - Unable to log in

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Author Message
Aberlake
DD-WRT Novice


Joined: 29 Mar 2021
Posts: 4

PostPosted: Mon Mar 29, 2021 10:35    Post subject: Dlink DIR-868L Lost Credentials - Unable to log in Reply with quote
Hi,
Wondering if anyone else has come across this issue or if / what I am doing wrong in the reset process. Here's the scenario - I decided to re-use my DIR-868L Rev B which had a 2017 build on it (running stock CFE) as my main WiFi router so that I was independent of the ISP's WiFi. It wasn't great coverage and I know from using the DIR-868L previously that it was pretty good - especially with DD-WRT on it.

I fell at the first hurdle - I can't remember the credentials I set to log into it!

Checking the forum pages it appears that for this particular router you need to do an "nvram erase && reboot" from a serial session. So after ordering the pins, solder, desolder wick etc I eventually was able to log in to CFE. Issued nvram erase && reboot and up it came. Still with same router name and not prompting for new user name Crying or Very sad

So far here's what I've tried:

1. nvram erase, Reload Dlink firmware, factory reset, reload factory-to-ddwrt from latest (March 2021) build via Dlink recovery. Still can't login to allow me to complete the DD-WRT update Sad

2. nvram erase then immediate power off. Still original router name persists and can't login

Am I missing something blindingly obvious here? It's almost as if the nvram erase isn't doing anything! Just FYI erase nvram isn't supported in this (stock) CFE.

Any / all suggestions gratefully received!

Richard
Sponsor
blkt
DD-WRT Guru


Joined: 20 Jan 2019
Posts: 5690

PostPosted: Mon Mar 29, 2021 11:09    Post subject: Reply with quote
Pale Moon, Waterfox (3rd Gen 78 or Classic 56), Firefox ESR 78 Portable or Firefox ESR Legacy (68/52/45)

Why are you doing an immediate power off with the new command? Erasing NVRAM.

https://www.dlink.com.sg/how-do-i-reset-my-dir-868l-router-to-factory-defaults-5/

Also, CFE commands are different.
feliciano
DD-WRT Guru


Joined: 24 Oct 2008
Posts: 1079
Location: Latin America

PostPosted: Tue Mar 30, 2021 14:17    Post subject: Re: Dlink DIR-868L Lost Credentials - Unable to log in Reply with quote
Aberlake wrote:
Am I missing something blindingly obvious here? It's almost as if the nvram erase isn't doing anything!

Have you tried user=admin, passwork=(blank)?

Normally D-Link set one of these user/passwords by default.

_________________
If you want support, please read first the announcements and forum rules.
Si usted desea ayuda, por favor lea primero los anuncios y las reglas del foro.
Aberlake
DD-WRT Novice


Joined: 29 Mar 2021
Posts: 4

PostPosted: Tue Mar 30, 2021 16:15    Post subject: Reply with quote
blkt wrote:
Pale Moon, Waterfox (3rd Gen 78 or Classic 56), Firefox ESR 78 Portable or Firefox ESR Legacy (68/52/45)

Why are you doing an immediate power off with the new command? Erasing NVRAM.

https://www.dlink.com.sg/how-do-i-reset-my-dir-868l-router-to-factory-defaults-5/

Also, CFE commands are different.


Hi. Thanks for taking time to reply Very Happy

Why I tried the immediate power off after nvram erase was following Kong's post https://forum.dd-wrt.com/phpBB2/viewtopic.php?p=1151834#1151834

Resetting the router to factory defaults hasn't made any difference. I reloaded stock DLink firmware and carried this out. It reset password within the DLink interface butr as soon as I reloaded DD-WRT it retrieved the previous settings from somewhere! Even after an nvram erase && reboot from the CFE interface! This is really bugging me now Very Happy
blkt
DD-WRT Guru


Joined: 20 Jan 2019
Posts: 5690

PostPosted: Tue Mar 30, 2021 17:28    Post subject: Reply with quote
Aberlake wrote:
Why I tried the immediate power off after nvram erase was following Kong's post https://forum.dd-wrt.com/phpBB2/viewtopic.php?p=1151834#1151834
Read it again, as he was talking about the old erase nvram command until the last sentence.
Aberlake wrote:
Resetting the router to factory defaults hasn't made any difference. I reloaded stock DLink firmware and carried this out. It reset password within the DLink interface butr as soon as I reloaded DD-WRT it retrieved the previous settings from somewhere! Even after an nvram erase && reboot from the CFE interface! This is really bugging me now Very Happy
Hard reset button for 10 seconds does nothing? Again, nvram erase is DD-WRT CLI (Telnet) and not CFE.
Aberlake
DD-WRT Novice


Joined: 29 Mar 2021
Posts: 4

PostPosted: Wed Mar 31, 2021 10:45    Post subject: Dlink DIR-868L Lost Credentials - Unable to log in Reply with quote
blkt wrote:
Aberlake wrote:
Why I tried the immediate power off after nvram erase was following Kong's post https://forum.dd-wrt.com/phpBB2/viewtopic.php?p=1151834#1151834
Read it again, as he was talking about the old erase nvram command until the last sentence.
Aberlake wrote:
Resetting the router to factory defaults hasn't made any difference. I reloaded stock DLink firmware and carried this out. It reset password within the DLink interface butr as soon as I reloaded DD-WRT it retrieved the previous settings from somewhere! Even after an nvram erase && reboot from the CFE interface! This is really bugging me now Very Happy
Hard reset button for 10 seconds does nothing? Again, nvram erase is DD-WRT CLI (Telnet) and not CFE.


@blkt Thanks again so just to clarify for me when you access NVRAM via CFE you are not accessing the same section of NVRAM as via the DD-WRT interface / SSH?

That would explain a lot! Especially the restore to factory firmware then reload DD-WRT scenario where the old configuration keeps returning.

So how can I totally reset the DD-WRT configuration when I can't log in to any of SSH, Web interface or Serial console? The "hold reset in for 10s" doesn't seem to have any effect i.e. the router doesn't reboot when I do this and root / admin doesn't work to log in to SSH or web interface, but holding reset while powering on does work to force it into restore mode - so the button is physically working.

Thanks again for your help and for the DD-WRT education Very Happy I honestly thought I'd read and understood just about every post here on the DIR-868L but I've obviously screwed up a bit on the "understanding" part! Wish I'd picked a slightly more conventional router than this one!

Just as an after thought would flashing an older version and making use of the earlier bug / exploit where shell commands could be fed into the browser URL get me out of this Catch-22 situation by feeding it 'nvram set http_passwd= '?

Richard
blkt
DD-WRT Guru


Joined: 20 Jan 2019
Posts: 5690

PostPosted: Wed Mar 31, 2021 12:44    Post subject: Reply with quote
Does the CFE miniweb server have a button to restore NVRAM? https://www.bigxd.com/2020/09/778.html

CFE help erase corrupt show set etc. https://forum.dd-wrt.com/phpBB2/viewtopic.php?p=1107280#1107280
Aberlake
DD-WRT Novice


Joined: 29 Mar 2021
Posts: 4

PostPosted: Wed Mar 31, 2021 16:53    Post subject: Reply with quote
blkt wrote:
Does the CFE miniweb server have a button to restore NVRAM? https://www.bigxd.com/2020/09/778.html

CFE help erase corrupt show set etc. https://forum.dd-wrt.com/phpBB2/viewtopic.php?p=1107280#1107280


Hi,

Unfortunately no it doesn't - certainly not on the standard CFE however the link you posted to updated version of CFE did look promising, but I did manage to finally get in to the router - by miraculously remembering the credentials I had set Sad

Just for laughs (and after I'd backed up the CFE!) I decided to try the 'nvram corrupt' option in CFE and it actually worked! Got the same message as reported in your link and after a reboot I got the "set user" web interface so happy days!

Thanks for your suggestions as it does seem to be the only way you can rescue a DIR-868L if you can't get logged in to it! So for any other DD-WRT noobs like me that lose their credentials three pieces of advice.

Firstly use a password manager and record the login details!

Secondly CFE nvram is not the same as DD-WRT nvram - even though the commands are identical.

Finally if you do lose your creds you've got nothing left to lose by soldering some header pins onto the board, connecting a USB/TTL cable and issuing an 'nvram corrupt' command - however YMMV Very Happy

Now to figure out how to set it all up again Rolling Eyes
blkt
DD-WRT Guru


Joined: 20 Jan 2019
Posts: 5690

PostPosted: Wed Mar 31, 2021 17:25    Post subject: Reply with quote
Aberlake wrote:
Secondly CFE nvram is not the same as DD-WRT nvram - even though the commands are identical.

In name only, two environments CFE & DD-WRT CLI, commands and their functions are completely different.
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum