User Manual

Table Of Contents
SWX3220(config)#snmp-server user admin1 admins auth sha passwd1234 priv aes
passwd1234
Create "user1" as a user. According to the specified group and the security level prescribed for that group, specify the protocol
(SHA) and password (passwd5678) used for authentication and encryption.
SWX3220(config)#snmp-server user user1 users auth sha passwd5678
4.13.10 IP address restrictions for clients that can access the SNMP server
[Syntax]
snmp-server access action info [community community]
no snmp-server access [action info [community community]]
[Keyword]
community : Specify a community
[Parameter]
action : Specify behavior for access conditions
Setting value Description
permit "Permit" the condition
info : Sets the sending source IPv4/IPv6 address information used as a condition
Setting value Description
A.B.C.D Specifies an IPv4 address (A.B.C.D)
A.B.C.D/M
Specifies an IPv4 address (A.B.C.D) with a
subnet mask length (Mbit)
X:X::X:X Specifies an IPv6 address (X:X::X:X)
X:X::X:X/M
Specifies an IPv6 address (X:X::X:X) with a
subnet mask length (Mbit)
any Specifies all IPv4/IPv6 addresses
community : Community name (up to 32 characters)
Community to which the access conditions apply
If the community specification is omitted, the access conditions will apply to all communities
When both ends are enclosed in "" or '', the "" and '' at both ends are not included in the number of
characters.
[Initial value]
None
[Input mode]
global configuration mode
[Description]
Restrict client terminals that are permitted to access the SNMP server by IPv4/IPv6 address.
Up to 32 items can be set with this command, and those applied first are given priority.
When this command is set, all access that does not meet the registered conditions is denied.
However, if this command is not set, all access is permitted.
If this command is executed with the "no" syntax, the specified setting is cleared.
If community is omitted in the “no” syntax, all settings for the specified info are cleared.
If all parameters are omitted in the “no” syntax, all settings are cleared.
[Note]
The access restrictions of this command apply only to SNMPv1 and SNMPv2c access.
Command Reference | Maintenance and operation functions | 77