Changes between Version 4 and Version 5 of NSM2021/Agenda/SNMP-Hands-on
- Timestamp:
- May 16, 2021, 6:40:02 AM (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
NSM2021/Agenda/SNMP-Hands-on
v4 v5 81 81 Router# configure terminal 82 82 }}} 83 Now we need to add an Access Control List rule for SNMP access, turn on SNMP, assign a read-only SNMP community string as well as a SNMPv3 group and user and tell the router to maintain SNMP information across reboots. To do this we do: 84 {{{ 85 Router(config)# access-list 99 permit 192.248.6.0 255.255.255.0 83 Now we need to add an Access Control List(ACL) for controlling SNMP access to the router. This ACL will be used in both SNMPv2c and SNMPv3 configurations. 84 85 {{{ 86 Router(config)# access-list 99 permit 192.248.4.0 0.0.0.255 87 }}} 88 89 ===== SNMPv2 Configuration ===== 90 Below shows how to configure SNMPv2 for the Cisco router. 91 {{{ 86 92 Router(config)# snmp-server community NetCommunity ro 99 87 Router(config)# snmp-server group GroupR v3 auth access 99 88 Router(config)# snmp-server user admin GroupR v3 auth sha <Class Password> 89 Router(config)# snmp-server ifindex persist 93 }}} 94 95 ===== SNMPv3 Configuration ===== 96 {{{ 97 Below shows how to configure SNMPv2 for the Cisco router. 98 Router(config)# snmp-server group GroupR v3 priv access 99 99 Router(config)# snmp-server user admin GroupR v3 auth sha NetAdmin@1 priv des NetPrivacy@1 100 }}} 90 101 91 102 After all make sure to save the configuration to the router. 92 103 {{{ 93 104 Router(config)# exit 94 105 Router# write memory