The snmp-agent acl command configures an SNMP ACL.
The undo snmp-agent acl command deletes the configured SNMP ACL.
By default, no SNMP ACL is configured.
snmp-agent acl { acl-number | acl-name }
snmp-agent acl-ipv4 { acl-number | acl-name } [ acl-ipv6 { acl-number | acl-name } ]
snmp-agent acl-ipv6 { acl-number | acl-name }
undo snmp-agent acl
Parameter | Description | Value |
---|---|---|
acl |
Specifies an ACL that takes effect on both IPv4 and IPv6 networks. |
- |
acl-ipv4 |
Specifies an ACL that takes effect on only IPv4 network. |
- |
acl-ipv6 |
Specifies an ACL that takes effect on only IPv6 network. |
- |
acl-number |
Specifies the number of an ACL. |
The value is an integer ranging from 2000 to 3999. |
acl-name |
Specifies the name of a basic or an advanced Named ACL. |
The value is a string of 1 to 64 case-sensitive characters without spaces. The value must start with a letter. |
Usage Scenario
When using the NMS to manage devices, you can run the snmp-agent acl command to configure an SNMP ACL on the devices and restrict the NMS's access to the devices to enhance network security.
Precautions