Hands-On Lab: Configuring SNMPv3

This hands-on lab configures SNMPv3 with full authentication and encryption on a router, verifying successful polling using proper credentials and confirming an SNMPv2c-style plaintext community string no longer works at all, addressing the security gap identified in an earlier SNMP lab.

SNMPv3 ConfigurationauthPriv Security LevelUSM Group and User

~3 دقیقه مطالعه · آخرین به‌روزرسانی ۴ مهر ۱۴۰۵

Lab Objective

Configure SNMPv3 with a user requiring both authentication and encryption, verify a management station can successfully poll the device using the correct credentials, and confirm the vulnerability identified in an earlier SNMPv2c lab — plaintext community strings — no longer applies.

Lab Purpose

The SNMPv2c lab covered earlier in this series specifically noted that its community string travels in plaintext, vulnerable to interception, and recommended SNMPv3 wherever genuine security matters. This lab implements that recommendation directly, configuring SNMPv3's User-based Security Model (USM) with authPriv, the highest security level combining both authentication and encryption.

Lab Topology

R1 ---- Gi0/0: 192.168.95.1/24

SNMP management station: 192.168.95.50/24
(same topology as the earlier SNMPv2c lab)

Task 1: Create an SNMPv3 Group with authPriv Security

Configure an SNMP group requiring authentication and privacy (encryption).

Task 2: Create an SNMPv3 User in That Group

Configure a user with SHA authentication and AES encryption, assigned to the group.

Task 3: Verify SNMPv3 Polling Succeeds with Correct Credentials

From the management station, poll R1 using the correct SNMPv3 username, authentication password, and encryption password.

Task 4: Verify Polling Fails with an Incorrect Authentication Password

Attempt to poll using the correct username but a wrong authentication password and confirm it is rejected.

Task 5: Confirm Plaintext SNMPv2c Access No Longer Works

Remove the SNMPv2c community string from the previous lab and confirm SNMPv2c-style polling now fails entirely.

Solution and Verification

R1(config)# snmp-server group SECURE-GROUP v3 priv

-- "v3 priv" specifies SNMPv3 with the
-- authPriv security level -- both
-- authentication and encryption required,
-- the strongest of SNMPv3's three levels
-- (noAuthNoPriv, authNoPriv, authPriv)

R1(config)# snmp-server user secureadmin SECURE-GROUP v3 auth sha AuthPass2026 priv aes 128 PrivPass2026

-- SHA for authentication integrity, AES
-- for encrypting the actual SNMP payload --
-- a stark contrast to SNMPv2c's single
-- plaintext community string

ManagementStation> snmpget -v3 -u secureadmin -l authPriv \
  -a SHA -A AuthPass2026 -x AES -X PrivPass2026 \
  192.168.95.1 sysDescr.0

SNMPv2-MIB::sysDescr.0 = STRING: Cisco IOS Software, ...
-- Successful poll, with the SNMP payload
-- itself now encrypted in transit, unlike
-- the earlier SNMPv2c lab

ManagementStation> snmpget -v3 -u secureadmin -l authPriv \
  -a SHA -A WrongPassword999 -x AES -X PrivPass2026 \
  192.168.95.1 sysDescr.0

Authentication failure (incorrect password, community
or key)
-- Rejected immediately -- the authentication
-- check fails before any data would even
-- be considered for release

R1(config)# no snmp-server community ReadOnlyStr123 RO 30

ManagementStation> snmpget -v2c -c ReadOnlyStr123 192.168.95.1 sysDescr.0

Timeout: No Response from 192.168.95.1
-- SNMPv2c access is now completely gone --
-- the community string configured in the
-- earlier lab no longer exists, and only
-- the properly authenticated and encrypted
-- SNMPv3 path remains functional

Key Takeaway

SNMPv3's authPriv level directly closes the plaintext exposure inherent to SNMPv2c's community string, discussed as a known limitation in the earlier SNMP lab — both the authentication credential and the actual polled data travel encrypted, and unlike an ACL restriction which only limits which hosts can attempt access, SNMPv3 ensures that even a host on the permitted list cannot succeed without presenting genuinely correct cryptographic credentials.

نوشته و پژوهش‌شده توسط دکتر شاهین صیامی

مقالات مرتبط

Hands-On Lab: Final Comprehensive CCNP Troubleshooting Challenge (BGP, DMVPN, and QoS Integration)

This hands-on lab presents a complex multi-layer failure across an integrated BGP-over-DMVPN topology combined with QoS marking, requiring systematic diagnosis of a route reflector misconfiguration, an NHRP registration failure, and an incorrectly applied QoS policy simultaneously affecting the same network.

ادامه

Hands-On Lab: Configuring BGP over DMVPN

This hands-on lab runs iBGP as the routing protocol across the same DMVPN hub-and-spoke topology used in the two previous labs, configuring the hub as a route reflector so spokes learn each other's routes without a full iBGP mesh, combining two previously separate concepts into one integrated design.

ادامه

Hands-On Lab: Configuring OSPF over DMVPN

This hands-on lab runs OSPF as the dynamic routing protocol across the same DMVPN hub-and-spoke topology, configuring the tunnel interface as an OSPF point-to-multipoint network type to correctly handle the hub-and-spoke adjacency pattern without requiring the broadcast network type's DR/BDR election.

ادامه

Hands-On Lab: Configuring EIGRP over DMVPN

This hands-on lab runs EIGRP as the dynamic routing protocol across the DMVPN hub-and-spoke topology built in earlier labs, verifying neighbor relationships form correctly across the multipoint tunnel and routes propagate without requiring per-spoke static configuration on the hub.

ادامه

Hands-On Lab: Configuring HSRP MD5 Authentication

This hands-on lab configures MD5 authentication on an HSRP group, verifying two routers with matching authentication strings form a normal active/standby relationship while a router with a mismatched string is excluded from the group entirely.

ادامه

Hands-On Lab: Configuring Cisco Umbrella-Style DNS Security via DNS Forwarding Redirection

This hands-on lab configures a router to redirect all client DNS queries toward a security-focused DNS resolver using DNS forwarding interception, approximating cloud-delivered DNS security enforcement without requiring per-client configuration changes.

ادامه