Changes between Version 4 and Version 5 of NSM2021/Agenda/SNMP-Hands-on


Ignore:
Timestamp:
May 16, 2021, 6:40:02 AM (3 years ago)
Author:
admin
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • NSM2021/Agenda/SNMP-Hands-on

    v4 v5  
    8181Router# configure terminal
    8282}}}
    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
     83Now 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{{{
     86Router(config)# access-list 99 permit 192.248.4.0 0.0.0.255
     87}}}
     88
     89===== SNMPv2 Configuration =====
     90Below shows how to configure SNMPv2 for the Cisco router.
     91{{{
    8692Router(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{{{
     97Below shows how to configure SNMPv2 for the Cisco router.
     98Router(config)# snmp-server group GroupR v3 priv access 99
     99Router(config)# snmp-server user admin GroupR v3 auth sha NetAdmin@1 priv des NetPrivacy@1
     100}}}
    90101
    91102After all make sure to save the configuration to the router.
    92 
     103{{{
    93104Router(config)# exit
    94105Router# write memory