华为交换机SNMP协议网管配置

2025-04-09 17:37:12

1、第一步【使能SNMP Agent】<HUAWEI> system-view[~HUAWEI] snmp-agent

2、第二步【配置SNMP版本】配置SNMP的版本为SNMPv3[*HUAWEI] snmp-agent sys-info version v3说明:用户可以根据自己的需求配置对应的SNMP版本,但设备侧使用的SNMP协议版本必须和网管侧使用的SNMP版本保持一致,否则设备无法与网管连接。

3、第三步【配置用户访问权限】# 配置ACL,仅允许IP地址为192.168.1.10的网管访问设备。[*HUAWEI] acl 2001[*HUAWEI-acl桃轾庾殇4-basic-2001] rule permit source 192.168.1.10 0.0.0.0[*HUAWEI-acl4-basic-2001] quit

4、第四步【配置MIB】# 配置MIB视图为alliso,访问的视图包含iso。[*HUAWEI] snmp-agent mib-view include alliso iso

5、第五步【配置SNMPv3】#配置SNMPv3用户组名为huawei_group,用户名为huawei_user,安全级别都为privacy,矣喾动痞并应用访问控制。[*HUAWEI] snmp-agent group v3 huawei_group privacy write-view alliso acl 2001[*HUAWEI] snmp-agent usm-user v3 huawei_user group huawei_group[*HUAWEI] snmp-agent usm-user v3 huawei_user authentication-mode shaPlease configure the authentication password (8-255)Enter Password: //输入认证密码Confirm Password: //确认认证密码[*HUAWEI] snmp-agent usm-user v3 huawei_user privacy-mode aes256Please configure the privacy password (8-255)Enter Password: //输入加密密码Confirm Password: //确认加密密码

6、第六步【配置告警主机】[*HUAWEI] snmp-agent target-host trap address udp-domain 192.168.1.10 params securityname huawei_user v3 privacy[*HUAWEI] commit

声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
猜你喜欢