Some cisco basic command to secure your device against logins.
You should execute this command always on your routers/switches.
DonĀ“t forget to replace the “cisco” password!
Set a console password to cisco:
1 2 3 | Router(config)#line con 0 Router(config-line)#login Router(config-line)#password cisco |
Set a telnet password:
1 2 3 | Router(config)#line vty 0 4 Router(config-line)#login Router(config-line)#password cisco |
Stop console timing out:
1 2 | Router(config)#line con 0 Router(config-line)#exec-timeout 0 0 |
Set the enable password to cisco:
1 2 3 4 | Router(config)#enable password cisco Router(config)#enable secret class # No Plain-Text passwords more Router(config)#service password-encryption |