Security
password <password>
Set the line password that 'login' checks. Shown as 'password 7 …' once 'service password-encryption' is on.
Works on: Router, Firewall, Switch, Access pointMode: line
Watch out
Configuration only here: nothing prompts for it.
Run this command live
Don't just read it — type password <password> in a real network simulator in your browser and watch it take effect. No install, no account needed to start.
Frequently asked
What does the "password <password>" command do?
Set the line password that 'login' checks. Shown as 'password 7 …' once 'service password-encryption' is on.
What's the common gotcha with "password <password>"?
Configuration only here: nothing prompts for it.
More Security commands
access-list <10-99> {permit|deny} <src> <wild>ip access-list extended <name>ip access-group <acl> in|outswitchport port-securityswitchport port-security maximum <n>switchport port-security violation {shutdown|restrict|protect}switchport port-security mac-address {<H.H.H>|sticky}ip dhcp snoopingip arp inspection vlan <id>line vty 0 4line console 0login