User Manual

Table Of Contents
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.
It does not apply to SNMPv3 access.
[Example]
Permit SNMP server access only from the 192.168.100.0/24 segment.
SWR2310(config)#snmp-server access permit 192.168.100.0/24
Restrict access to only 192.168.100.0/24 hosts with the ‘public’ community name and to only 192.168.100.12 hosts with the
'private’ community name.
SWR2310(config)#snmp-server access permit 192.168.100.0/24 community public
SWR2310(config)#snmp-server access permit 192.168.100.12 community private
4.12.11 Show SNMP community information
[Syntax]
show snmp community
[Input mode]
unprivileged EXEC mode, privileged EXEC mode
Command Reference | Maintenance and operation functions | 67