Configuration Guide Configuring SNMP
Network devices can control the operation permission of users to access MIB objects. For example,
the user named user1 can read MIB objects under the system node (1.3.6.1.2.1.1) and can only write
MIB objects under the SysContact node (1.3.6.1.2.1.1.4.0).
Network devices can actively send authentication and encryption messages to the NMS.
Configure a MIB view and a MIB group. Create a MIB view “view1”, which includes the associated MIB
object (1.3.6.1.2.1.1); then create a MIB view “view2”, which includes the associated MIB object
(1.3.6.1.2.1.1.4.0). Create a group “g1”, select the version “v3”, set the security level to the
authentication and encryption mode “priv”, and configure permissions to read the view “view1” and
write the view “view2”.
Configure an SNMP user. Create a user named “user1” under group “g1”, select “v3” as the version,
and set the authentication mode to “md5”, authentication password to “123”, encryption mode to
“DES56”, and encryption password to “321”.
Configure the SNMP host address. Set the host address to 192.168.3.2, select “3” as the version, set
the security level to the authentication and encryption mode “priv”, and associate the user name
“user1”. Enable the agent to actively send a trap message to the NMS.
Set the IP address of the agent. Set the address of the Gi0/1 interface to 192.168.3.1/24.
Ruijie(config)#snmp-server view view1 1.3.6.1.2.1.1 include
Ruijie(config)#snmp-server view view2 1.3.6.1.2.1.1.4.0 include
Ruijie(config)#snmp-server group g1 v3 priv read view1 write view2
Ruijie(config)#snmp-server user user1 g1 v3 auth md5 123 priv des56 321
Ruijie(config)#snmp-server host 192.168.3.2 traps version 3 priv user1
Ruijie(config)#snmp-server enable traps
Ruijie(config)#interface gigabitEthernet 0/1
Ruijie(config-if-gigabitEthernet 0/1)#ip address 192.168.3.1 255.255.255.0
Ruijie(config-if-gigabitEthernet 0/1)#exit
1. Run the show running-config command to display configuration information of the device.
2. Run the show snmp user command to display the SNMP user.
3. Run the show snmp view command to display the SNMP view.
4. Run the show snmp group command to display the SNMP group.
5. Run the show snmp host command to display the host information configured by the user.
6. Install MIB-Browser.
Ruijie# show running-config
!
interface gigabitEthernet 0/1