liveBook · Manning

Community string

As explained in Acing the CCNA Exam: Volume 2 Advanced Networking and Security

A community string is a shared password-like value used by SNMPv1 and SNMPv2c to authenticate management operations.

A community string is a shared, password-like value that authenticates SNMPv1 and SNMPv2c operations between an NMS and managed device. SNMPv1 and SNMPv2c send it in plaintext, so it provides limited security rather than encryption. section 6.3 section 6.3.2

Use community strings to control which SNMP operations an NMS may perform:

  • Read-only (RO) permits Get, GetNext, and GetBulk requests but rejects Set requests. section 6.3.1
  • Read-write (RW) permits both reading with Get-family requests and modifying the device with Set. section 6.3.1
  • An ACL can restrict each community string to permitted NMS sources. section 6.3.1
  • SNMPv3 replaces community strings with users, integrity checks, optional authentication, and optional encryption. section 6.3.2

Cisco IOS configuration

R1(config)# snmp-server community password123 RO R1(config)# snmp-server community password456 RW These commands allow Gets using either string, but allow Sets only with password456. To send notifications, enable traps and identify the NMS: R1(config)# snmp-server enable traps R1(config)# snmp-server host 192.168.1.10 version 2c password789 section 6.3.1 section 6.4

Table 6.2 SNMP versions (view table figure)

Version

Message types

Authentication

Encryption

SNMPv1

Get, GetNext, Set, Trap, Response

Community strings

No

SNMPv2c

Get, GetNext, Set, Trap, Response, GetBulk, Inform

Community strings

No

SNMPv3

Get, GetNext, Set, Trap, Response, GetBulk, Inform

Hash-based authentication with username/password

Yes

Compare SNMPv1, SNMPv2c, and SNMPv3 by message types, authentication method, and encryption support. section 6.3

How Acing the CCNA Exam: Volume 2 Advanced Networking and Security covers it

How deep it goes
Defines RO/RW behavior, Cisco IOS commands, ACLs, and traps, but stops short of requiring detailed configuration knowledge for the CCNA exam.
Examples
Uses Cisco IOS RO/RW commands, an ACL option, trap configuration, and contrasting Get and Set requests.
What you can do after
Operate/configure Cisco IOS community access, distinguish RO from RW permissions, and recognize plaintext security limitations.
How it connects
Connects SNMP, NMS, managed devices, ACLs, traps, informs, and SNMPv3 security.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Acing the CCNA Exam: Volume 2 Advanced Networking and Security. The section links point to the parts of the book it draws on.