ComTech: IT Support Stirling

How to configure basic passwords and a hostname on a Cisco switch

ComTech: IT Support Stirling

Today I will show you how to configure basic passwords and a hostname on a Cisco switch.  For this tutorial you are going to have to open up a console session to your switch.

First we need to set an enable password:


Switch#configure terminal

Switch(config)#enable secret c7ed2bd92a (sets enable password)


Now we need to set the hostname of the switch:

Switch(config)#hostname Comtech1 (sets the switch hostname to Comtech1)


Next we need to configure console access:

Comtech1(config)#line console 0

Comtech1(config-line)#password bob2 (sets console password to bob2)




We will now set passwords for ssh and telent access to the switch:

Comtech1(config)#line vty 0 15

Comtech1(config-line)#password BigBlue (sets ssh and telnet password to BigBlue)




For the changes to take effect we have to save them in the startup-config file so:

Comtech1#copy running-config startup-config

And that’s it.  Next time you connect to your switch either through a console, shh or telnet session you will be asked for the relevant passwords.

About the Author


Hi I’m Chris Wakefield the owner of ComTech IT Support. I provide Windows, Mac and Linux based IT Support to small businesses in Stirling, Alloa and Falkirk.

Follow @Comtech247 on Twitter



Leave a comment

Your email address will not be published.


Get every new post delivered to your Inbox

Join other followers

WordPress SEO fine-tune by Meta SEO Pack from Poradnik Webmastera
WP Like Button Plugin by Free WordPress Templates