How To Configure Cisco Routers and Switches Password
Hi, today we will look to configure cisco routers and switches with password. It may be seen trivial but very important for security, because a lot of issues a password related.
Network devices use a lot of protocols to work and this protocols needs security. Authentication resides in security and the first rule of authentication is real check.For example if you connect a switch with telnet you should give your credentials to gain rights to manage switch or you need to gain more rights to change switch configuration.
Create login username and password and set them. Using secret is more secure, password is old usage, if you have secret option use it. With secret option password is saved as hashed value as you can see below.
12345 R1(config)#username ismail secret baydanR1(config)#username ismail1 password baydanusername ismail secret 4 uUNrmVJMWAlh9CUpKbtDkBsRIuWSKIcDf5PTx4bbBdIusername ismail1 password baydan
To set password for global configuration mode. Here you can use password option too but as I said before secret is more secure.
1 R1(config)#enable secret baydan
Set password for vtys which are vitual terminals.
123 R1(config-line)#password ismailR1(config-line)#loginR1(config-line)#login local