Octet

What are the differences between SNMP v1, v2c and v3?

Show the answer

Say this first

All three share one model: a manager polls agents on UDP 161, and agents send notifications to the manager on UDP 162. v1 and v2c authenticate with a community string sent in clear text. v2c adds GetBulk, 64-bit counters and informs. v3 replaces communities with users and adds real security: authentication with HMAC (MD5 or SHA), encryption (DES or AES) and view-based access control. In production I use v3 with authPriv, and v2c only read-only, locked down with an ACL, on a management network.

Go deeper

v1v2cv3
Securitycommunity, clear textcommunity, clear textusers, authentication, encryption
Counters32-bit32-bit and 64-bit32-bit and 64-bit
Bulk retrievalnoGetBulkGetBulk
Notificationstraptrap, informtrap, inform

Operations

Get, GetNext, GetBulk (v2c and later), Set, Response, Trap, Inform, and Report (v3 error and discovery messages).

Read-write is dangerous

A write community or user can change the device. On Cisco, a Set against the config copy MIB can make the router send its whole configuration to a TFTP server. Avoid RW; if you need it, use v3 and a tight view.

A locked-down v2c baseline

Cisco IOS
ip access-list standard SNMP-MGRS
 permit 10.0.0.50
snmp-server community Oct3t-R0-2026 RO SNMP-MGRS

Where it is going

Streaming telemetry (model-driven, gNMI) pushes counters every few seconds instead of waiting to be polled. SNMP stays everywhere for inventory, basic counters and alarms.

Traps

  • Treating community strings as passwords that protect anything. They cross the wire in clear text.
  • Configuring RW communities just in case.
How did you do?Book 9.3 Infrastructure Applications