Hello Sprout,
The SNMP access process is as follows:
Step 1: When other devices access the local through SNMP, the traffic policy on the interface is preferentially matched. No SNMP alarm is generated no matter whether the ACL policy on the interface denies or permits the access.
Step 2: If the traffic policy on the interface permits the traffic or no policy is configured, the traffic matches the SNMP ACL(the snmp-agent ACL command). In this case, if the access is denied by the ACL, an alarm is generated.
Step 3: When the SNMP ACL permits the traffic, the community name and password are verified. If the password is incorrect, an alarm is generated.
Step 4: If the password is correct, the system checks the ACL configured for the community name(the snmp-agent community ACL command ). If the community name is denied by the ACL, an alarm is generated.
From this process, you can see that the ACL matching order in these two commands is different.
Any further questions, let us know!