Hooked up unit and opened winbox.
User : admin
Password :
“Wrong Password”
Huh?
Winbox tells me that the router has RouterOS 7.6 on it.
Ok, someone must have returned this thing. They probably logged in and were forced to set a password. No problem… Let’s hard reset the unit with the button.
After several attempts… I keep getting “Wrong Password”
Screw it. netinstall time
Get all the way down to netinstall. See the formatting. And unit finally takes the file and the reboot button appears. Hit reboot and wait.
Unit comes back up… But at 0.0.0.0.
That’s odd. Connect with winbox. Navigate to system and and select reset.
This should make the unit come up as a router, with no password.
Unit reboots and shows up at 192.168.88.1
Using winbox I hit connect… “Wrong Password”
What the…
Try a browser… Wrong Password.
When I get the unit back to the shop… Will try net install again. Then go digging I to files to see if something is “hiding out in there.”
I’ve seen some other reports of users having to revert to support to get the new random password because it was not on the sticker.
Already tried that ?
Hmmmm something to put in the custom-script, to revert this default script password setting? Set it to your own password ???
How to set that custom-script? Or must a custom (edited) default configuration be used with Netinstall?
What defines “$defconfPassword” ???
“You can run the command /system default-configuration print to see exact applied default configuration commands.”
.
.
.
:if (!($defconfPassword = "" || $defconfPassword = nil)) do={
/user set admin password=$defconfPassword
:delay 0.5
/user expire-password admin
}
}
#-------------------------------------------------------------------------------
# Revert configuration.
# these commands are executed if user requests to remove default configuration
#-------------------------------------------------------------------------------
:if ($action = "revert") do={
/user set admin password=""
.
.
.
custom-script:
The $defconfPassword is readed from factory flash zone.
IF is not null or empty is used as default password for admin, if you lost the sticker or is unreadable after some months on the sun…
It was introduced in 7. but couldn’t find it back right away in the release notes.
I do remember it was regarding compliance to EU rules stating vendors should not use a default password anymore.
Are all these predefined variables documented anywhere? How to list all their names and values (to copy-paste into a file, to have a backup when the sticker is lost)? Can I use them in my own scripts, or are they only accessible in the default config script?