Operation Manual – SNMPH3C S9500 Series Routing Switches Chapter 1 SNMP Configuration1-101.4 SNMP Configuration Examples1.4.1 Common SNMP Configuration ExampleI. Network requirementsNetwork Management Station and the switch are connected through the Ethernet. TheIP address of Network Management Station is 129.102.149.23 and that of the VLANinterface on the switch is 129.102.0.1. Perform the following configurations on theswitch: setting the community name and access authority, administrator ID, contact andswitch location, and enabling the switch to send trap packets.II. Network diagramFigure 1-2 Network diagram for SNMP configurationIII. Configuration procedure# Enter the system view. system-view# Set the community name, group and user.[H3C] snmp-agent sys-info version all[H3C] snmp-agent community read public[H3C] snmp-agent mib include internet 1.3.6.1[H3C] snmp-agent group v3 managev3group write internet[H3C] snmp-agent usm v3 managev3user managev3group# Set VLAN-interface 2 as the interface for network management. Add portGigabitEthernet 2/1/3 to VLAN 2. This port will be used for network management. Setthe IP address of VLAN-interface 2 as 129.102.0.1.[H3C] vlan 2[H3C-vlan2] port gigabitethernet 2/1/3[H3C-vlan2] interface vlan 2[H3C-Vlan-interface2] ip address 129.102.0.1 255.255.0.0# Enable SNMP agent to send the trap to network management station whose IPaddress is 129.102.149.23. The SNMP community is public.[H3C] snmp-agent trap enable standard authentication[H3C] snmp-agent trap enable standard coldstart[H3C] snmp-agent trap enable standard linkup[H3C] snmp-agent trap enable standard linkdown