Use it where a monitoring tool only supports v2c, and when deciding whether to migrate to SNMPv3.
SNMPv2c
SNMPv2c adds getbulk and informs but still authenticates with a plaintext community string; restrict it with ACLs or use SNMPv3 instead.
1. show running-config | include snmp-server community — any RW communities? Remove them.
2. Each community has an ACL limiting it to the monitoring servers?
3. Default strings (public/private) gone?
4. show snmp — bad community errors indicate scanning or a misconfigured manager.
5. Plan the move to SNMPv3 authPriv.
community configured RO with an ACL → only monitoring servers allowed → manager polls with the community → agent answers
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Verification & troubleshooting Narrow the fault
1. Verify manager-to-agent routing and UDP 161.
2. Verify version, credentials/user, view and ACL.
3. Poll one known OID.
4. Verify notification destination and UDP 162.
5. Correlate device and manager logs.
Step 2 Common mistakes Narrow the fault
- Default community strings.
- RW communities without ACLs.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
The community string is sent in clear text and works as a password — anyone who captures it can read (or, for RW, change) the device. If v2c must be used: read-only, a long random community, restricted with an ACL (snmp-server community <c> RO <acl>), and never RW. Prefer SNMPv3 authPriv.
show snmp— packets in/out and errors (bad community, unknown user, ACL drops).show snmp user/show snmp group— SNMPv3 users and security levels.show snmp host— trap and inform receivers.show running-config | include snmp-server— communities, views, ACLs.- From the manager:
snmpwalk -v3 -l authPriv -u <user> -a SHA -A <pw> -x AES -X <pw> <device> 1.3.6.1.2.1.1— test a read.
ReferenceWhat it is1 section · depth on demand
Risks and use
The community string is sent in clear text, and a read-write community lets anyone on the path change configuration. If v2c must be used: read-only, a long random community, an ACL limited to the NMS, and never the defaults "public"/"private". Prefer SNMPv3 with authPriv.
snmp-server community <long-random> RO SNMP-ACL
ReferenceWhy it matters1 section · depth on demand
Overview
SNMP versions 1 and 2c protect access only with a community string — effectively a shared password sent in clear text in every packet. Anyone who can capture traffic can read it, and a read-write community lets them change configuration. These versions should be limited to read-only access from specific hosts on legacy devices, while everything else moves to SNMPv3.
SNMPv2c uses community strings as passwords, sent in clear text; anyone capturing traffic can read them, and a write community gives configuration control.
snmp-server community <long-random> RO SNMP-ACL ! if v2c unavoidable
no snmp-server community public
no snmp-server community private
Only use v2c read-only with ACLs for legacy devices; migrate to SNMPv3. Never leave default communities public/private configured.
ReferenceImportant terms & boundaries2 sections · depth on demand
In depth
SNMPv2c: community strings, bulk retrieval, no encryption
The Catalyst 9300 SNMP guide explains that SNMPv1 and SNMPv2c both use community strings for access. SNMPv2c adds bulk retrieval (GETBULK) and better error reporting. Communities are read-only (ro) or read-write (rw), and an access list can limit which managers may use a community.
C9300(config)# ip access-list standard SNMP-RO
C9300(config-std-nacl)# permit host 10.10.50.20
C9300(config-std-nacl)# deny any log
C9300(config)# snmp-server community Xk9-ro-2026 ro SNMP-RO
C9300(config)# snmp-server host 10.10.50.20 version 2c Xk9-ro-2026
C9300# show snmp community
$ snmpbulkwalk -v2c -c Xk9-ro-2026 10.0.0.11 IF-MIB::ifHCInOctets
Risks of v2c
| Risk | Detail |
|---|---|
| Clear text | The community string travels unencrypted in every request |
| No user identity | Anyone with the string has the same rights |
rw communities | Allow configuration changes (and in combination with other features, file transfer) |
| Default strings | public and private are the first values attackers try |
If v2c must be used
| Control | Command or practice |
|---|---|
| Read-only only | Never configure rw |
| ACL per community | snmp-server community <string> ro <acl> |
| Long, random strings | Treat them as passwords; rotate them |
| Management network | Poll over a management VRF or out-of-band network |
| Remove defaults | no snmp-server community public |
Migration path
The guide lists SNMPv3 as the version that adds authentication and encryption. Run v3 users alongside the v2c community, move the NMS device by device, then remove the community. Check with show snmp community that none are left.
Documented example, not captured output.
Migrating to SNMPv3
1. Create v3 views, groups and users on devices (authPriv, SHA-2/AES where supported).
2. Add v3 credentials in the NMS and confirm polling works.
3. Remove v2c communities and restrict SNMP with ACLs.
4. Update trap destinations to v3 informs.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in IP Services → SNMP → SNMPv2c. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.rfc-editor.org/rfc/rfc3411.html · confidence 94%