Configuration Files
Configuration file of the router
#
acl number 2001
rule 5 permit source 1.1.1.2 0
rule 6 deny source 1.1.1.1 0
#
interface Ethernet1/0/0
ip address 1.1.2.1 255.255.255.0
#
ospf 1
area 0.0.0.0
network 1.1.2.0 0.0.0.255
#
snmp-agent local-engineid 000007DB7FFFFFFF000004A7
snmp-agent sys-info contact call Operator at 010-12345678
snmp-agent sys-info version v3
snmp-agent group v3 testgroup privacy write-view dnsmib notify-view dnsmib acl
2001
snmp-agent target-host trap-hostname nms2 address 1.1.1.2 udp-port 162 trap-
paramsname trapnms2
snmp-agent target-host trap-paramsname trapnms2 v3 securityname testuser privacy
snmp-agent mib-view dnsmib include hwDnsMib
snmp-agent usm-user v3 testuser testgroup authentication-mode md5
B4B3D731A5006953EDFC9BB83F983497 privacy-mode des56
B4B3D731A5006953EDFC9BB83F983497
snmp-agent trap enable
snmp-agent trap queue-size 200
snmp-agent trap life 60
snmp-agent
#
return
Huawei AR150&200 Series Enterprise Routers
Configuration Guide - Network Management
1 SNMP Configuration
Issue 02 (2012-03-30)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
41