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