目錄
enable config terminal snmp-server community public RO snmp-server trap-source FastEthernet0/0 snmp-server contact [你的聯繫人EMAIL地址] snmp-server enable traps
## 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