Changes between Version 5 and Version 6 of NSM2021/Agenda/SNMP-Hands-on
- Timestamp:
- May 16, 2021, 7:02:56 AM (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
NSM2021/Agenda/SNMP-Hands-on
v5 v6 87 87 }}} 88 88 89 ===== SNMPv 2Configuration =====89 ===== SNMPv1 and SNMPv2c Configuration ===== 90 90 Below shows how to configure SNMPv2 for the Cisco router. 91 91 {{{ … … 94 94 95 95 ===== SNMPv3 Configuration ===== 96 {{{97 96 Below shows how to configure SNMPv2 for the Cisco router. 97 {{{ 98 98 Router(config)# snmp-server group GroupR v3 priv access 99 99 99 Router(config)# snmp-server user admin GroupR v3 auth sha NetAdmin@1 priv des NetPrivacy@1 … … 109 109 === Cisco Switch === 110 110 {{{ 111 Router(config)# access-list 99 permit 192.248.6.0 255.255.255.0 111 Switch(config)# access-list 99 permit 192.248.4.0 0.0.0.255 112 112 Switch(config)# snmp-server group GroupR v3 auth access 99 113 113 Switch(config)# snmp-server community NetCommunity ro 99 114 Switch(config)# snmp-server user admin GroupR v3 auth sha NetAdmin 114 Switch(config)# snmp-server user admin GroupR v3 auth sha NetAdmin@1 115 115 Switch(config)# snmp-server contact Lalantha <lalantha@learn.ac.lk> 116 116 Switch(config)# snmp-server location ICT-Center, Peradeniya … … 123 123 }}} 124 124 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 125 Add 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 ===== 133 Below shows how to configure SNMPv2 for the HP router. 134 {{{ 129 135 [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 ===== 140 Below shows how to configure SNMPv2 for the Cisco router. 141 {{{ 131 142 [Router]snmp-agent sys-info version all 132 [Router]snmp-agent group v3 ReadGroup authenticationacl 2000133 [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 134 145 }}} 135 146