??????????????
????????????192.168.1.1??????豸172.16.1.1???й????????
??????????“ruijie”
?????豸?????trap?????
????????????????
???????????????
???????????????Community????????????Read ??Write??
????????SNMP ??????????????Agent ????????Trap ????????
?????豸????????????????????????????£??????????????豸??
??????????ò???
????1)???y?????????????????
????Ruijie>enable
????Ruijie#configure terminal
????Ruijie(config)#interface vlan 1
????Ruijie(config-if-VLAN 1)#ip address 172.16.1.1255.255.255.0
????Ruijie(config-if-VLAN 1)#exit
????Ruijie(config)#ip default-gateway 172.16.1.254   ------>????????????????
????2?????????????Community?ruijie????????????Write????д??
????Ruijie(config-if-VLAN 1)#exit
????Ruijie(config)#snmp community ruijie rw
????3??????SNMP ??????????????Agent ????????Trap ????????
????Ruijie(config)#snmp host 192.168.1.1 traps version 2 ruijie
????4 )????????
????Ruijie(config)#end
????Ruijie#write       ------>????????????????????????????????????????
?????塢???????
Ruijie#show snmp
Chassis: 60FF60
0 SNMP packets input
0 Bad SNMP version errors
0 Unknown community name
0 Illegal operation for community name supplied
0 Encoding errors
0 Number of requested variables
0 Number of altered variables
0 Get-request PDUs
0 Get-next PDUs
0 Set-request PDUs
0 SNMP packets output
0 Too big errors (Maximum packet size 1472)
0 No such name errors
0 Bad values errors
0 General errors
0 Response PDUs
0 Trap PDUs
SNMP global trap: disabled
SNMP logging: disabled
SNMP agent: enabled