![Huawei Quidway S9300 Configuration Manual - Network Management Download Page 41](http://html.mh-extra.com/html/huawei/quidway-s9300/quidway-s9300_configuration-manual-network-management_169487041.webp)
Procedure
Step 1
Run:
system-view
The system view is displayed.
Step 2
Run:
acl
acl-number
A basic ACL is created.
Step 3
Run:
rule
[
rule-id
] {
deny
|
permit
} [
fragment
|
source
{
source-address source-
wildcard
|
any
} |
time-range
time-name
]
*
ACL rules are defined.
----End
1.5.4 Applying the ACL
This part describes how to configure ACLs to enable a specific NM Station to access the device.
Context
Do as follows on the switch enabled with the SNMP agent.
Procedure
Step 1
Run:
system-view
The system view is displayed.
Step 2
Run:
snmp-agent community
{
read
|
write
}
community-name
acl
acl-number
The ACL is applied.
----End
1.5.5 Checking the Configuration
After community-name-based access control in SNMPv1 is configured, you can view
configurations of SNMP and ACLs.
Prerequisite
The configurations of the Community-Name-based Access Control in SNMPv1 are complete.
Procedure
l
Run the
display acl
acl-number
command to view the rules of the configured ACL.
l
Run the
display snmp-agent community
command to view the community name of the
agent.
Quidway S9300 Terabit Routing Switch
Configuration Guide - Network Management
1 SNMP Configuration
Issue 03 (2010-09-20)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
1-13