The configuration of SNMP on H3C 5600 switch
I Requirement for the diagram
1. NMS and switchA connect each other via Ethernet. The ip address of NMS is 10.10.10.1, and the ip address of switchA’s VLAN interface is 10.10.10.2.
2. The configuration of switchA: set community name and access right and the id of administrator and permit switch send trap message.
II Network topology.
III Steps of configuration
1. Set community and group and user.
<SwitchA> system-view
[SwitchA] snmp-agent
[SwitchA] snmp-agent sys-info version all
[SwitchA] snmp-agent community write public
[SwitchA] snmp-agent mib-view include internet 1.3.6.1
[SwitchA] snmp-agent group v3 managev3group write-view internet
[SwitchA] snmp-agent usm-user v3 managev3user managev3group
2. Set NMS’s interface is VLAN2, and add the port Ethernet1/0/2 to VLAN2. Ip address of VLAN2 interface is 10.10.10.2.
[SwitchA] vlan 2
[SwitchA-vlan2] port Ethernet 1/0/2
[SwitchA-vlan2] quit
[SwitchA] interface Vlan-interface 2
[SwitchA-Vlan-interface2] ip address 10.10.10.2 255.255.255.0
[SwitchA-Vlan-interface2] quit
3. permit NMS send trap message and community name is public
[SwitchA] snmp-agent trap enable standard authentication
[SwitchA] snmp-agent trap enable standard coldstart
[SwitchA] snmp-agent trap enable standard linkup
[SwitchA] snmp-agent trap enable standard linkdown
[SwitchA] snmp-agent target-host trap address udp-domain 10.10.10.1 udp-port 5000 params securityname public
IV Key notes in the configuration
1. SNMP V3 adopt user name and password authentication mode. You should set user name and corresponding security level on NMS.
2. Security level include “authentication” “encryption” and “authentication and encryption”.
该案例暂时没有网友评论
✖
案例意见反馈
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作