Creating a password policy

The following example defines a password policy that places restrictions on minimum length and enforces character restrictions and account lockout.

  1. In privileged EXEC mode, use the configure terminal command to enter global configuration mode.
  2. Enter the password-attributes command with the specified parameters.
    device# configure terminal
    Entering configuration mode terminal
    device(config)# password-attributes min-length 8 max-retry 4 character-restriction lower 2 upper 1 numeric 1 special-char 1  max-lockout-duration 5000