Add an SNMPv1 and SNMPv2 community
You can add an SNMPv1 and SNMPv2 community, which allows both SNMPv1 and SNMPv2 access.
To add an SNMPv1 and SNMPv2 community:
- Open a web browser and log in to the switch. For more information, see Log in to the main UI with a known IP address.
The System Information page displays.
- Select System > SNMP > SNMP V1/V2 > Community Configuration.
The Community Configuration page displays.
- In the Community Name field, enter a name for a new community.
The name can be up to 16 characters.
- Specify the client IP address and client IP mask:
-
Client Address: Enter the IP address of the client.
-
Client IP Mask: Enter the IP mask of the client.
The client IP address and client IP mask together denote a range of IP addresses from which SNMP clients can use the community to access the switch.
If either the client IP address or client IP mask is 0.0.0.0, access is allowed from any IP address. Otherwise, every client’s IP address is ANDed with the mask, as is the client IP address. If the values are equal, access is allowed.
For example, if the client IP address and client IP mask are 192.168.1.0/255.255.255.0, any client with an IP address in the range from 192.168.1.0 to 192.168.1.255 (inclusive) is allowed access. To allow access from only one station, use a management station IP mask value of 255.255.255.255, and use that computer’s IP address as the client address.
-
- From the Access Mode menu, select the access level for this community, which is either Read-Write or Read-Only.
- From the Status menu, select to enable or disable the community:
-
Enable: The community is enabled.
-
Disable: The community is configured but disabled.
-
- Click the Add button.
The community is added.
- To save the settings to the running configuration, click the Save icon.