SNMP (Simple Network Management Protocol) is a widely used protocol for monitoring and managing network devices. SNMPv3 is the most secure version of SNMP, offering authentication, encryption, and access control features. Configuring SNMPv3 on Cisco switches enables administrators to monitor network performance, collect data, and proactively manage network devices. In this article, we will guide you through the step-by-step process of configuring SNMPv3 on Cisco switches, along with the necessary commands.

Step 1: Enable SNMPv3

To enable SNMPv3 on a Cisco switch, access the switch’s configuration mode and enter the following commands:

configure terminal
snmp-server enable traps
snmp-server engineID local <engine-id>
snmp-server group <group-name> v3 priv
snmp-server user <username> <group-name> v3 auth sha <auth-password> priv aes 128 <priv-password>
snmp-server host <host-ip> version 3 auth <username>

  • <engine-id>: Unique identifier for the SNMPv3 engine.
  • <group-name>: Name of the SNMPv3 group.
  • <username>: Username for SNMPv3 authentication.
  • <auth-password>: Password for SNMPv3 authentication (use strong password).
  • <priv-password>: Password for SNMPv3 privacy (encryption) (use strong password).
  • <host-ip>: IP address of the SNMP manager (monitoring system).

Step 2: Define SNMP Access Control

To define access control for SNMPv3, use the following commands:

configure terminal
snmp-server view <view-name> <oid-tree> included
snmp-server group <group-name> v3 auth context vlan- match prefix
snmp-server view <view-name> internet included
snmp-server view <view-name> system included
snmp-server view <view-name> interfaces included

  • <view-name>: Name for the SNMPv3 view.
  • <oid-tree>: OID (Object Identifier) tree specifying the scope of the view (e.g., 1.3.6.1.2.1).

Step 3: Configure SNMP Notifications

To configure SNMPv3 notifications, use the following commands:

configure terminal
snmp-server enable traps <trap-type>
snmp-server host <host-ip> version 3 auth <username>

  •  <trap-type>: Type of SNMP trap to be enabled (e.g., link-down, link-up).

Step 4: Verify SNMPv3 Configuration

To verify the SNMPv3 configuration, use the following command:

show snmp user

This command displays the configured SNMPv3 users and associated groups.