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


Ignore:
Timestamp:
May 16, 2021, 7:02:56 AM (4 years ago)
Author:
admin
Comment:

--

Legend:

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

    v5 v6  
    8787}}}
    8888
    89 ===== SNMPv2 Configuration =====
     89===== SNMPv1 and SNMPv2c Configuration =====
    9090Below shows how to configure SNMPv2 for the Cisco router.
    9191{{{
     
    9494
    9595===== SNMPv3 Configuration =====
    96 {{{
    9796Below shows how to configure SNMPv2 for the Cisco router.
     97{{{
    9898Router(config)# snmp-server group GroupR v3 priv access 99
    9999Router(config)# snmp-server user admin GroupR v3 auth sha NetAdmin@1 priv des NetPrivacy@1
     
    109109=== Cisco Switch ===
    110110{{{
    111 Router(config)# access-list 99 permit 192.248.6.0 255.255.255.0
     111Switch(config)# access-list 99 permit 192.248.4.0 0.0.0.255
    112112Switch(config)# snmp-server group GroupR v3 auth access 99
    113113Switch(config)# snmp-server community NetCommunity ro 99
    114 Switch(config)# snmp-server user admin GroupR v3 auth sha NetAdmin
     114Switch(config)# snmp-server user admin GroupR v3 auth sha NetAdmin@1
    115115Switch(config)# snmp-server contact Lalantha <lalantha@learn.ac.lk>
    116116Switch(config)# snmp-server location ICT-Center, Peradeniya
     
    123123}}}
    124124
    125 Add the following configurations
    126 {{{
    127 [Router]acl number 2000
    128 [Router-acl-basic-2000]rule 0 permit source 192.248.6.0 0.0.0.255
     125Add the following to create an ACL. This also can be used in both SNMPv2c and SNMPv3 configurations.
     126{{{
     127[Router]acl basic 2000
     128[Router-acl-ipv4-basic-2000]rule 0 permit source 192.248.4.0 0.0.0.255
     129[Router-acl-ipv4-basic-2000]rule 5 deny
     130}}}
     131
     132===== SNMPv1 and SNMPv2c Configuration =====
     133Below shows how to configure SNMPv2 for the HP router.
     134{{{
    129135[Router]snmp-agent
    130 [Router]snmp-agent community read <class passowrd>
     136[Router]snmp-agent community read NetCommunity acl 2000
     137}}}
     138
     139===== SNMPv3 Configuration =====
     140Below shows how to configure SNMPv2 for the Cisco router.
     141{{{
    131142[Router]snmp-agent sys-info version all
    132 [Router]snmp-agent group v3 ReadGroup authentication acl 2000
    133 [Router]snmp-agent usm-user v3 admin ReadGroup authentication-mode sha <class passowrd>
     143[Router]snmp-agent group v3 GroupR privacy acl 2000
     144[Router]snmp-agent usm-user v3 admin GroupR simple authentication-mode sha NetAdmin@1 privacy-mode des56 NetPrivacy@1
    134145}}}
    135146