Home | 简体中文 | 繁体中文 | 杂文 | Search | ITEYE 博客 | OSChina 博客 | Facebook | Linkedin | 作品与服务 | Email

第 9 章 FAQ

目录

9.1. SNMP
9.1.1. SNMP v2
9.1.2. SNMP v3
9.2. switchport trunk encapsulation dot1q 提示 invaild input at^marker.

9.1. SNMP

9.1.1. SNMP v2

enable
config terminal
snmp-server community public RO
snmp-server trap-source FastEthernet0/0
snmp-server contact [你的联系人EMAIL地址]
snmp-server enable traps
			

9.1.2. SNMP v3

## global config mode ##
enable
config terminal

ip access-list standard SNMP_ACL
permit 192.168.1.100
permit 192.168.1.100

## global config mode ##
## With ACL ##
snmp-server group v3Group v3 auth access SNMP_ACL
 
## Without ACL ##
snmp-server group v3Group v3 auth

snmp-server user v3user v3Group v3 auth md5 snmpv3pass priv aes 128 snmpv3pass
			

Test

### privileged EXEC mode ##
show snmp user			
			

使用snmpwalk获取SNMP信息

snmpwalk -u snmpv3user -A snmpv3pass -a MD5 -l authnoPriv 192.168.1.3 -v3			
			
comments powered by Disqus