2.9SNMP网管的配置
【Router】
当前路由器提示视图
依次输入的配置命令,重要的命令红色突出显示
简单说明
!
适用版本vrp1.74及1.44
[Router]
!
[Router]
interface Ethernet0
[Router-Ethernet0]
ip address 10.0.0.1 255.255.255.0
!
[Router]
interface Serial0
[Router-Serial0]
link-protocol ppp
!
[Router]
interface Bri0
[Router-Bri0]
link-protocol ppp
[Router-Bri0]
dialer in-band
!
quit
[Router]
snmp-agent
使能snmp服务
[Router]
snmp-agent local-engineid 800007DB0300E0FC0F6256
全网唯一设备引擎ID
[Router]
snmp-agent community read isPublic
设置读团体名:isPublic
[Router]
snmp-agent community write isPrivate
设置写团体名:isPrivate
[Router]
snmp-agent sys-info version all
选择网管snmpv1/v2/v3
[Router]
snmp-agent sys-info contact 010-12345678
联系电话:010-12345678
[Router]
snmp-agent target-host trap address 10.0.0.10 port 69 parameters v1 securityname aaa
设置trap接收主机10.0.0.10
[Router]
snmp-agent sys-info location Huawei Tech. Beijing, China
路由器位置
[Router]
snmp-agent trap enable standard authentication coldstart linkdown linkup warmstart
Trap的内容standard authentication coldstart linkdown linkup warmstart
[Router]
snmp-agent trap enable system
Trap的内容system
!
『注重』
1.网管的community name应该与路由器上配置一致
2.缺省配置下community read name为public, community write name为private
路由器基本维护-snmp网管的配置.doc