Datasheet
Lab – Configuring SNMP
© 2013 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 4 of 20
Note: If prompted to discover available SNMP agents, click No and continue to next part of the lab.
Step 2: Configure an SNMP agent.
a. On R1, enter the following commands from the global configuration mode to configure the router as an
SNMP agent. In line 1 below, the SNMP community string is ciscolab, with read-only privileges, and the
named access list SNMP_ACL defines which hosts are allowed to get SNMP information from R1. In lines
2 and 3, the SNMP manager location and contact commands provide descriptive contact information.
Line 4 specifies the IP address of the host that will receive SNMP notifications, the SNMP version, and
the community string. Line 5 enables all default SNMP traps, and lines 6 and 7 create the named access
list, to control which hosts are permitted to get SNMP information from the router.
R1(config)# snmp-server community ciscolab ro SNMP_ACL
R1(config)# snmp-server location snmp_manager
R1(config)# snmp-server contact ciscolab_admin
R1(config)# snmp-server host 192.168.1.3 version 2c ciscolab
R1(config)# snmp-server enable traps
R1(config)# ip access-list standard SNMP_ACL
R1(config-std-nacl)# permit 192.168.1.3