Home | 简体中文 | 繁体中文 | 杂文 | 打赏(Donations) | ITEYE 博客 | OSChina 博客 | Facebook | Linkedin | 知乎专栏 | Search | Email

第 15 章 FAQ

目录

15.1. SNMP
15.1.1. SNMP v2
15.1.2. SNMP v3
15.2. switchport trunk encapsulation dot1q 提示 invaild input at^marker.

15.1. SNMP

15.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
			

15.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