Security
line vty 0 4
Configure the five VTY (telnet/SSH) lines.
Works on: Router, Firewall, Switch, Access pointMode: config
Watch out
Line settings are stored and shown in running-config, but this lab has no login prompt and ssh/telnet from a device doesn't open a session, so they are never enforced.
Run this command live
Don't just read it — type line vty 0 4 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 vty 0 4" command do?
Configure the five VTY (telnet/SSH) lines.
What's the common gotcha with "line vty 0 4"?
Line settings are stored and shown in running-config, but this lab has no login prompt and ssh/telnet from a device doesn't open a session, so they are never enforced.
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 console 0password <password>login