User guide
set snmpauth
204 Chapter 2 Command Descriptions
set snmpauth
Device support This command is supported in all devices.
Purpose Configures or displays access permissions for Simple Network
Management Protocol (SNMP) sets and gets.
To produce the intended configuration results, follow these principles:
• The default for SNMP is unlimited access (assuming a valid SNMP
community).
• You can configure a new default by removing the default entry in the
snmpauth table (the entry that specifies an IP address of 0.0.0.0 and
mask of 0.0.0.0). Then, the default becomes no access for any IP
address. You can then use the command to permit access for particular
IP addresses.
• To limit SNMP access to a single IP address, specify that IP address
with “mask=255.255.255.255.”
• To specify a range of IP addresses, specify an IP address that is in that
range, and a mask that has a binary 1 for every bit of the IP address
that must match perfectly with the address specified in the “ip” option.
The snmpauth table is limited to 20 entries.
Required
privileges
Normal users can display information. Root privileges are required to
change snmpauth table entries.
Syntax Configure SNMP access permissions
set snmpauth ip=ip-addr [mask=mask]
Display SNMP access permissions
set snmpauth [range=range]
Options ip
The IP address of the device to which this “set snmpauth” command
applies.
mask
Specifies an IP mask used to extend the scope of this set snmpauth
command to a range of IP addresses.
Examples Display entire snmpauth table
set snmpauth
Display a range of entries in snmpauth table
set snmpauth range=1-2