Forgot password?
 Register now

Welcome to use this form to feedback your problems with Ruijie Community

The category of your feedback

Your Feedback

Your Email address (optional):

How to configure SNMPV1/V2? Reply

GTAC-Daisy

Level 1

How to configure SNMPV1/V2?
10159 1 2021-10-8 16:14:04
Original

I. Requirements

1. Only SNMP network manager (IP:192.168.1.2/24) can access switch SNMP service with community string "ruijie"

2. SNMP agent on switch sends SNMP trap to SNMP manager actively

3. SNMP manager can get basic information of switch ---location, contact method and chassis id


II. Network Topology

                                               


III. Configuration Tips

1. Set Read-Only community string and Read-Write community string on switch independently

2. Define ACL to allow authorized SNMP manager to access SNMP agent of switch only

3. Enable SNMP trap

4. Configure SNMP manager


IV. Configuration Steps

1.      Define an access-list named "abc" and an entry to permit IP address of SNMP manager

Ruijie(config)#ip access-list standard abc

Ruijie(config-std-nacl)#permit host 192.168.1.2

Ruijie(config-std-nacl)#exit


2.      Set read-write community string to "ruijie" and read-only community string to "public" , then associate both community strings with ACL to allow only the SNMP manager to access SNMP agent  of switch only

Ruijie(config)#snmp-server community ruijie rw abc

Ruijie(config)#snmp-server community public ro abc   


3.      SNMP agent  on switch actively sends trap to SNMP network manager

Ruijie(config)#snmp-server host 192.168.1.2 traps ruijie         ------>by default , SNMP trap version is version 1

Ruijie(config)#snmp-server host 1.1.1.1 version 2c ruijie        ------>set SNMP trap version to version 2c


4.      Enable trap feature

Ruijie(config)#snmp-server enable traps


5.      Set SNMP optional parameters

Set location

Ruijie(config)#snmp-server location fuzhou


Set contact method

Ruijie(config)#snmp-server contact ruijie.com.cn


Set chassis-id

Ruijie(config)#snmp-server chassis-id 1234567890


6.      Assign a management IP address to SVI 1

Ruijie(config)#interface vlan 1

Ruijie(config-if-VLAN 1)#ip address 192.168.1.1 255.255.255.0


7.      Save configuration

Ruijie(config-if-VLAN 1)#end

Ruijie#wr


V. Verification

1. This example shows how to verify SNMP agent status


Following example provides how to disable SNMP agent if snmp agent issue leads to heavy load of CPU :

Ruijie(config)#no enable service snmp-agent


2. This examples shows how to display SNMP host information


3. This example shows how to access the SNMP agent in a SNMP manager using "Mib-Browser"


4. Other SNMP manager except for 192.168.1.2 cannot access SNMP agent at the same time.



0 2022-4-26 11:59:00 View all replies
With the increase in the number of IoT devices and the demand for remote management, SNMP is one of the most popular network management protocols. venge io taming io


Related Posts
Product Model

Share this topic to

Cancel

This site contains user submitted content, comments and opinions and is for informational purposes only. Ruijie may provide or recommend responses as a possible solution based on the information provided; every potential issue may involve several factors not detailed in the conversations captured in an electronic forum and Ruijie can therefore provide no guarantee as to the efficacy of any proposed solutions on the community forums. Ruijie disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the Ruijie Community Terms of Use.

More ways to get help: Visit Support Videos, call us via Service Hotline, Facebook or Live Chat.

©2000-2023 Ruijie Networks Co,Ltd