密碼策略:
[switch] password-control enable //開啟密碼策略
[switch] password-control aging 7 //7天有效
[switch] password-control length 10 //長度為10
[switch] password-control composition type-number 3 type-length 1 //密碼復雜度(3個字符)
[switch] password-control complexity user-name check //密碼中不能包含用戶名
[switch] password-control complexity same-character check //禁止連續3個同樣的字符
[switch] password-control alert-before-expire 1 //提前1天提示修改密碼
[switch] undo password-control history en //禁止記住歷史密碼
[switch] password-control login-attempt 5 ex lock-time 1 //密碼輸入錯誤5次后,鎖定1分鍾
