分类: 网络与安全
2013-06-05 09:53:22
原文地址:SNMP V3应用实验 作者:xuxic
Model |
Level |
Authentication |
Encryption |
What Happens |
v1 |
noAuthNoPriv |
Community String |
No |
Uses a community string match for authentication. |
v |
noAuthNoPriv |
Community String |
No |
Uses a community string match for authentication. |
v3 |
noAuthNoPriv |
Username |
No |
Uses a username match for authentication. |
v3 |
authNoPriv |
MD5 or SHA |
No |
Provides authentication based on the HMAC-MD5 or HMAC-SHA algorithms. |
v3 |
authPriv |
MD5 or SHA |
DES/AES |
Provides authentication based on the HMAC-MD5 or HMAC-SHA algorithms. Provides DES 56-bit encryption in addition to authentication based on the DES/AES standard. |
config t snmp-server view view-mib mib-2 included //配置view-mib访问范围为整个mib-2 snmp-server view view-sys system included snmp-server view view-int interfaces included |
SNMPv2-MIB::sysDescr.0 = STRING: Cisco IOS Software, 7200 Software (C7200-ADVSECURITYK9-M), Version 12.4(11)T, RELEASE SOFTWARE (fc2) Technical Support: Copyright (c) 1986-2006 by Cisco Systems, Inc. Compiled Sun 19-Nov-06 01:10 by prod_rel_team SNMPv2-MIB::sysObjectID.0 = OID: SNMPv2-SMI::enterprises.9.1.222 DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (203915) 0:33:59.15 ...... IF-MIB::ifDescr.1 = STRING: FastEthernet0/0 IF-MIB::ifDescr.3 = STRING: Null0 IF-MIB::ifType.1 = INTEGER: ethernetCsmacd(6) IF-MIB::ifType.3 = INTEGER: other(1) IF-MIB::ifMtu.1 = INTEGER: 1500 IF-MIB::ifMtu.3 = INTEGER: 1500 ...... |
SNMPv2-MIB::sysDescr.0 = STRING: Cisco IOS Software, 7200 Software (C7200-ADVSECURITYK9-M), Version 12.4(11)T, RELEASE SOFTWARE (fc2) Technical Support: Copyright (c) 1986-2006 by Cisco Systems, Inc. Compiled Sun 19-Nov-06 01:10 by prod_rel_team SNMPv2-MIB::sysObjectID.0 = OID: SNMPv2-SMI::enterprises.9.1.222 DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (225422) 0:37:34.22 SNMPv2-MIB::sysContact.0 = STRING: SNMPv2-MIB::sysName.0 = STRING: Router SNMPv2-MIB::sysLocation.0 = STRING: SNMPv2-MIB::sysServices.0 = INTEGER: 78 SNMPv2-MIB::sysORLastChange.0 = Timeticks: (0) 0:00:00.00 SNMPv2-MIB::sysORLastChange.0 = No more variables left in this MIB View (It is past the end of the MIB tree) |
IF-MIB::interfaces = No more variables left in this MIB View (It is past the end of the MIB tree) |
IF-MIB::ifNumber.0 = INTEGER: 2 IF-MIB::ifIndex.1 = INTEGER: 1 IF-MIB::ifIndex.3 = INTEGER: 3 IF-MIB::ifDescr.1 = STRING: FastEthernet0/0 IF-MIB::ifDescr.3 = STRING: Null0 IF-MIB::ifType.1 = INTEGER: ethernetCsmacd(6) IF-MIB::ifType.3 = INTEGER: other(1) IF-MIB::ifMtu.1 = INTEGER: 1500 IF-MIB::ifMtu.3 = INTEGER: 1500 IF-MIB::ifSpeed.1 = Gauge32: 100000000 IF-MIB::ifSpeed.3 = Gauge32: 4294967295 ...... |
SNMPv2-MIB::system = No Such Object available on this agent at this OID |
五、实验中碰到的问题
在cisco7206上做好设置后,用snmpwalk进行验证,总是报错。在cisco7206上debug snmp packets发现有如下报错:
*Dec 1 23:16:51.635: SNMP: Response, reqid 1661718226, errstat 16, erridx 0 interfaces = NULL TYPE/VALUE |