Changes between Version 2 and Version 3 of NSM2021/Agenda/SNMP-Hands-on


Ignore:
Timestamp:
May 10, 2021, 2:10:11 PM (3 years ago)
Author:
admin
Comment:

--

Legend:

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

    v2 v3  
    7373== Configuration of SNMP Agent on Routers and Switches ==
    7474
    75 ==== Cisco ====
     75==== Cisco Router ====
    7676
    7777connect to your router and go to configure mode.
     
    8484{{{
    8585Router(config)# access-list 99 permit 192.248.6.0 255.255.255.0
    86 Router(config)# snmp-server community <class passowrd> ro 99
    87 Router(config)# snmp-server group ReadGroup v3 auth access 99
    88 Router(config)# snmp-server user admin ReadGroup v3 auth sha <Class Password>
     86Router(config)# snmp-server community NetCommunity ro 99
     87Router(config)# snmp-server group GroupR v3 auth access 99
     88Router(config)# snmp-server user admin GroupR v3 auth sha <Class Password>
    8989Router(config)# snmp-server ifindex persist
    90 Now let's exit and save this new configuration to the routers permanent config.
     90
     91After all make sure to save the configuration to the router.
    9192
    9293Router(config)# exit
     
    9596}}}             
    9697
    97 ==== HP ====
     98=== Cisco Switch ===
     99{{{
     100Router(config)# access-list 99 permit 192.248.6.0 255.255.255.0
     101Switch(config)# snmp-server group GroupR v3 auth access 99
     102Switch(config)# snmp-server community NetCommunity ro 99
     103Switch(config)# snmp-server user admin GroupR v3 auth sha NetAdmin
     104Switch(config)# snmp-server contact Lalantha <lalantha@learn.ac.lk>
     105Switch(config)# snmp-server location ICT-Center, Peradeniya
     106
     107==== HP Router ====
    98108Connect to the Router and go to config mode
    99109{{{
     
    112122}}}
    113123
     124=== HP Aruba/Procurve ===
     125{{{
     126Switch-HP#conf
     127Switch-HP(config)# snmpv3 enable
     128SNMPv3 Initialization process.
     129Creating user 'initial'
     130Authentication Protocol: MD5
     131Enter authentication password: ********
     132Privacy protocol is DES
     133Enter privacy password: ********
     134User 'initial' has been created
     135Would you like to create a user that uses SHA? [y/n] y
     136Enter user name: admin
     137Authentication Protocol: SHA
     138Enter authentication password: ********
     139Privacy protocol is DES
     140Enter privacy password: ********
     141User creation is done. SNMPv3 is now functional.
     142Would you like to restrict SNMPv1 and SNMPv2c messages to have read only
     143access (you can set this later by the command 'snmp restrict-access')? [y/n] n
     144}}}
     145
     146Now you can add the user to the group GroupR,
     147{{{
     148Switch-HP(config)# snmpv3 group GroupR user admin sec-model ver3
     149}}}
     150
     151Later you can remove initial user,
     152{{{
     153Switch-HP(config)#no snmpv3 user initial 
     154}}}
     155
    114156== Testing SNMP ==
    115157Now we have both a SNMP Manager and SNMP Agent. To check that your SNMP installation works, run the snmpstatus command on the SNMP Manager host.