交换机配置SNMP
华为
acl 2000 #仅允许指定源访问
rule permit source 172.16.100.201 0
rule deny
snmp-agent acl 2000 #配置SNMP的访问控制列表,限制访问交换机的网管
snmp-agent sys-info version v2c
snmp-agent community read cipher superman@123 acl 2000
snmp-agent trap enable #配置向网管发送告警
华三
acl basic 2000
rule 0 permit source 172.16.100.201 0
rule 5 deny
snmp-agent
snmp-agent community read simple superman@123 acl 2000
snmp-agent sys-info version v2c
snmp-agent trap enable