How to force a minimum password length on a router By David Bombal 

Saturday, March 06, 2010 10:58:13 PM

You can by default set a password of a single character on a router, or a very short password. This is obviously a security risk. It would be better to force a password of a minimum length of 8 or more characters.

This command was introduced in IOS version 12.3(1). The default length is 6 characters.

To set a minimum password length, enter the following commands:

         Router>enable
         Router#configure terminal
         Router(config)#security passwords min-length 8

If a user now attempts to set the enable password to cisco for example, the following happens:

         Router(config)#enable password cisco
         % Password too short - must be at least 8 characters. Password configuration failed
         Router(config)#

OR

        Router(config)#username david password cisco
        % Password too short - must be at least 8 characters. Password configuration failed
        Router(config)#

Recommended that you do this to insure better security

Comments are closed on this post.
Site Map | Printable View | © 2008 - 2010 Routeadmin.com | Powered by mojoPortal | HTML 5 | CSS | Design by mitchinson