Mar 16, 2021
Overview
Cisco switches at factory default ask the user to change the login username and password on first connection. On older firmware, this process could be bypassed to leave the default settings of cisco/cisco.
Newer Cisco firmware has removed the ability to bypass, and now require the user to set a new username and password before allowing further configuration.
JADConfig v5.2.8.0 cannot currently bypass this prompt. You will need to apply either the webUI or CLI fix below before running JADConfig.
Affected Versions
- Cisco SG300/SG500/SG500X
- Firmware v1.4.5.02 and earlier do NOT have the problem
- Firmware v1.4.10.06 and later HAVE the problem
- Cisco SG350/SG550X
- Firmware v2.2.8.04 and earlier do NOT have the problem
- Firmware v2.5.0.90 HAS the problem
- Firmware v2.5.7.85 THIS PROCEDURE WON'T WORK as the Password Complexity Settings has been removed. Downgrade firmware or use a custom password.
Fix
Correct the username/password issue via either the webUI or CLI.
Via webUI
- Login to the default switch with username/password cisco/cisco
- Set new username of
hello
and password ofGoodbye007
on the window in the picture below. The actual username/password doesn't matter, as we will be removing it later.
- Once logged in, change the Display Mode to Advanced in the dropdown in the top-right corner
- On the left menu, select the Security tab and the Password Strength submenu.
- Uncheck Password Aging and Password Complexity Settings
- Click Apply
- On the left menu, select the Administration tab and the User Accounts submenu.
- In the User Account Table, click the Add button
- Create a User Name of
cisco
with a password ofcisco
and click Apply.
- Click the blinking Save button on the top bar to the left of the Display Mode and Language dropdown boxes. This will save the changes that have been made.
- Power-cycle the switch and run JADConfig. Done!
via CLI
- Connect to the switch with a console cable (same as the console connection used in JADConfig)
- Open PuTTY and connect to the switch at baud rate 115200
- Hit the enter key until the switch prompt reads
Username:
- Enter the commands below one by one, hitting enter between them, to create a temporary username, remove username/password restrictions, reapply the default username/password of cisco/cisco, and save changes.
cisco
cisco
hello
Goodbye007
Goodbye007
config
passwords aging 0
no passwords complexity enable
username cisco privilege 15 password cisco
no user hello
end
write
y
- Power-cycle the switch and close PuTTY.
- Run JADConfig as usual. Done!