Home | 簡體中文 | 繁體中文 | 雜文 | 打賞(Donations) | ITEYE 博客 | OSChina 博客 | Facebook | Linkedin | 知乎專欄 | Search | 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