两款交换机的命令基本一致(S5120-V3 为 Comware 7,S5500-V3 若是 EI/SI 老版本则为 Comware 5,个别参数略有差异)。
system-view
# 1. 密码控制 password-control enable password-control length 10 password-control composition type-number 3 type-length 1 password-control aging 90 password-control history max-record-num 5 password-control login-attempt 5 exceed lock-time 10 # 2. 安全日志文件 info-center security-logfile enable info-center security-logfile frequency 600 info-center security-logfile size-quota 10 info-center security-logfile directory flash:/seclog # 3. 普通日志文件 info-center logfile enable info-center logfile frequency 86400 info-center logfile size-quota 10 info-center logfile directory flash:/logfile quit save force验证:
display password-control display security-logfile summary display logfile summary
.【高】Password control: Disabled →密码控制功能 2.【高】Security log file: Disable →安全日志文件 3.【高】Log file: Disabled →普通日志文件
说明:S5120‑V3、S5500‑V3 属于 Comware V7 平台,命令完全通用H3C。
# 进入系统视图
<H3C> system-view
# ======================
# 1、开启 Password‑control 密码控制【等保高危项】
# ======================
[H3C] password-control enable
# 建议配套开启常用策略(密码老化、复杂度、长度、历史密码记录),不写也可以,enable后默认子项开启
[H3C] password-control aging enable
[H3C] password-control length enable
[H3C] password-control composition enable
[H3C] password-control history enable
# 可选调参示例(根据等保要求按需修改)
[H3C] password-control aging 90 #密码有效期90天
[H3C] password-control length 12 #最小密码长度12位
[H3C] password-control login-attempt 5 exceed lock #密码输错5次锁定账号
# ======================
# 2、开启 Log file(普通日志保存到flash日志文件)
# ======================
[H3C] info-center enable #确认信息中心全局开启,默认一般是开启
[H3C] info-center logfile enable #开启普通日志文件功能
#可选:日志文件最大10MB(默认10M,范围1‑10M)
[H3C] info-center logfile size-quota 10
# ======================
#3、开启 Security log file(安全日志文件,登录、改密码、AAA操作日志)
# ======================
[H3C] info-center security-logfile enable
#可选:安全日志文件大小、使用率告警阈值
[H3C] info-center security-logfile size-quota 10
[H3C] info-center security-logfile alarm-threshold 80
#保存配置
[H3C] save
#查看密码控制状态
<H3C> display password-control
#查看普通日志文件状态,看输出 Log file: Enabled
<H3C> display logfile summary
#查看安全日志文件状态,看输出 Security log file: Enabled
<H3C> display security-logfile summary
flash:/logfile;安全日志路径:flash:/seclog;display security‑logfile 需要账号绑定security‑audit安全审计角色,普通 network‑admin 无法读取安全日志内容,仅能看 summary 摘要状态,不影响等保扫描检测结果。[H3C] undo password-control enable
[H3C] undo info-center logfile enable
[H3C] undo info-center security-logfile enable
[H3C] save
暂无评论
暂无评论
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
暂无评论