Snmp 只支持标准ACL。
R1(config)#ip access-list standard ?
<1-99> Standard IPaccess-list number
<1300-1999> Standard IP access-list number(expanded range)
WORD Access-list name
R1(config)#access-list ?
<1-99> IP standard access list
<100-199> IP extendedaccess list
<1100-1199> Extended 48-bit MAC address access list
<1300-1999> IPstandard access list (expanded range)
<200-299> Protocoltype-code access list
<2000-2699> IPextended access list (expanded range)
<700-799> 48-bit MACaddress access list
dynamic-extended Extend the dynamic ACL absolute timer
hardware Modify behaviorof access-list hardware
rate-limit Simplerate-limit specific access list
snmp 只支持标准acl。 如果配置上扩展acl,扩展acl不生效。
snmp-servercommunity
access-list-number | (Optional) Integer from 1 to 99 that specifies a standard access list of IP addresses or a string (not to exceed 64 characters) that is the name of a standard access list of IP addresses allowed access to the SNMP agent. Alternatively, an integer from 1300 to 1999 that specifies a list of IP addresses in the expanded range of standard access list numbers that are allowed to use the community string to gain access to the SNMP agent. |