Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

SNMPv2c

Direct answer

SNMPv2c adds getbulk and informs but still authenticates with a plaintext community string; restrict it with ACLs or use SNMPv3 instead.

When to use this

Use it where a monitoring tool only supports v2c, and when deciding whether to migrate to SNMPv3.

First 30 seconds

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.

Operational verification

community configured RO with an ACL → only monitoring servers allowed → manager polls with the community → agent answers

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
Protocol standard + deployed implementation
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformProtocol standard · Cisco IOS / IOS XE
Scope / prerequisiteUse it where a monitoring tool only supports v2c, and when deciding whether to migrate to SNMPv3.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

2 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

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 references

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.

observation · 1
Command lookup Jump straight to Cisco syntax
Key points

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.

Key checks
  • 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

RiskDetail
Clear textThe community string travels unencrypted in every request
No user identityAnyone with the string has the same rights
rw communitiesAllow configuration changes (and in combination with other features, file transfer)
Default stringspublic and private are the first values attackers try

If v2c must be used

ControlCommand or practice
Read-only onlyNever configure rw
ACL per communitysnmp-server community <string> ro <acl>
Long, random stringsTreat them as passwords; rotate them
Management networkPoll over a management VRF or out-of-band network
Remove defaultsno 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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docProtocol standard + deployed implementation RFC 3411

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%
Confirmation

Confirm action

Continue?