Network technologies and trends

Dec 12 2009   7:12AM GMT

How to configure a minimum password length in a Cisco Router?

Yasir Irfan Yasir Irfan Profile: Yasir Irfan

 

As we all know by default there are no limitations on the size of password length in a Cisco router. Sometimes this may leads to a security risk. You can also configure a password with a single character in a Cisco Router.

 

  

Cisco Systems introduced a command to force the minimum length of password starting with an IOS version 12.3 (1). By default the length should be 6 characters, but you can change the default length.

 

To configure the minimum password length in your Cisco Router, use the following commands.


ITKERouter01#configure terminal
ITKERouter01 (config)#security passwords min-length 8

 

After entering the above command if you try to configure the enable secret to itke as shown the below, following error message will be displayed in your Cisco Router

 


 ITKERouter01 (config)#enable secret itke

 % Password too short – must be at least 8 characters. Password configuration failed
 ITKERouter01 (config)#

Even if you try to configure the local username and password you find the same error.


ITKERouter01 (config)#username yasir secret cisco

 % Password too short – must be at least 8 characters. Password configuration failed
 ITKERouter01 (config)#

 

I would recommed you to enable this feautre in your Cisco Router for better security.

 Comment on this Post

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when other members comment.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to: