Security
line console 0
Configure the console line (the cable you're typed in on). 'line con 0' works too.
Works on: Router, Firewall, Switch, Access pointMode: config
Example
R1(config)# line con 0
R1(config-line)# password C0ns0le!
R1(config-line)# loginRun this command live
Don't just read it — type line console 0 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 "line console 0" command do?
Configure the console line (the cable you're typed in on). 'line con 0' works too.
Example of "line console 0"
R1(config)# line con 0 R1(config-line)# password C0ns0le! R1(config-line)# login
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 4password <password>login