Basic config

username <user> [privilege N] secret <pwd>

Local user account for AAA/SSH/console login.

Works on: Router, Firewall, Switch, Access pointMode: config

Example

R1(config)# username admin privilege 15 secret netforge123
Watch out

Checked by 'login local' on the vty lines when someone telnets or sshes in. Privilege 15 lands straight in privileged EXEC (R1#).

Run this command live

Don't just read it — type username <user> [privilege N] secret <pwd> in a real network simulator in your browser and watch it take effect. No install, no account needed to start.

Open the lab

Frequently asked

What does the "username <user> [privilege N] secret <pwd>" command do?

Local user account for AAA/SSH/console login.

What's the common gotcha with "username <user> [privilege N] secret <pwd>"?

Checked by 'login local' on the vty lines when someone telnets or sshes in. Privilege 15 lands straight in privileged EXEC (R1#).

Example of "username <user> [privilege N] secret <pwd>"

R1(config)# username admin privilege 15 secret netforge123

More Basic config commands

← Back to the full command reference