登录设备:
telnet 172.16.1.254
admin
Admin@huawei.com
SNMP配置:
snmp-agent
snmp-agent sys-info version v2c
snmp-agent mib-view included View_ALL iso
snmp-agent community read cipher ynnk@123r mib-view View_ALL
snmp-agent community write cipher ynnk@123w mib-view View_ALL
snmp-agent target-host trap address udp-domain 172.16.1.250 params securityname ynnk@123t v2c
snmp-agent trap source Vlanif 10
snmp-agent trap enable
·············snmp-agent trap source MEth0/0/1
对二层端口up/down不进行上报
int range GigabitEthernet 1/0/1 to GigabitEthernet 1/0/48
undo enable snmp trap updown
int range GigabitEthernet 2/0/1 to GigabitEthernet 2/0/48
undo enable snmp trap updown