Got it

SNMP ACL

Created: Jan 21, 2020 14:03:39Latest reply: Nov 16, 2021 15:01:46 809 4 0 0 0
  Rewarded HiCoins: 0 (problem resolved)

Hello friends,

When configuring the SNMP ACL, what is the difference between the snmp-agent community ACL command and the snmp-agent ACL command? 

Thank you!


Featured Answers
Popeye_Wang
Admin Created Jan 21, 2020 14:11:20

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!


View more
  • x
  • convention:

All Answers

Hello,

Configure SNMP access control based on ACL.

  • Configure ACL rules.

  • Specify ACL rules for the SNMP agent, community name,.


  • Run the snmp-agent acl acl-number command to configure the SNMP ACL. Only the NMS matching the rule can access the switch through the SNMP user.

  • Run the snmp-agent community { read | write } { community-name | cipher community-name } acl acl-number command to specify the ACL for SNMP community name. After the command is executed, only the NMS using the specified community name and matching the ACL can access the switch.

Thanks

View more
  • x
  • convention:

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!


View more
  • x
  • convention:

E.DR_91
E.DR_91 MVE Author Created Jan 21, 2020 14:15:05

snmp-agent ACL command:
By default, the SNMP agent function is disabled. Executing the snmp-agent command can enable the SNMP agent function no matter whether parameters are specified in the command.

snmp-agent community ACL
The community name is set.
By default, no community name exists in the system. The community name will be saved in encrypted format in the configuration file.
By default, the device checks complexity of community names. If the check fails, the community name is failed to be configured.
For more info please check below:
https://support.huawei.com/enterprise/en/doc/EDOC1000047422?section=j005
View more
  • x
  • convention:

Good answer
View more
  • x
  • convention:

Comment

You need to log in to comment to the post Login | Register
Comment

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.