zeldor.biz

Linux, programming and more

Copyright © 2025
Log in

Secure Cisco devices

October 19, 2010 by Igor Drobot Leave a Comment

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

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

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

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

Router(config)#enable password cisco Router(config)#enable secret class # No Plain-Text passwords more Router(config)#service password-encryption

Filed Under: Cisco Tagged With: Cisco Router Security, Secure Telnet

Yeaaah Cookie! We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.Ok