beautypg.com

6 snmp configuration example, 1 snmp configuration example, I. network requirements – H3C Technologies H3C S3100 Series Switches User Manual

Page 454: Ii. network diagram, Iii. network procedure, 6 snmp configuration example -9, 1 snmp configuration example -9

background image

Operation Manual – SNMP and RMON

H3C S3100-52P Ethernet Switch

Chapter 1 SNMP Configuration

1-9

1.6 SNMP Configuration Example

1.6.1 SNMP Configuration Example

I. Network requirements

z

An NMS and Switch A are connected through the Ethernet. The IP address of the
NMS is 10.10.10.1 and that of the VLAN interface on Switch A is 10.10.10.2.

z

Perform the following configuration on Switch A: setting the community name and
access permission, administrator ID, contact and switch location, and enabling the
switch to sent trap packets.

II. Network diagram

Ethernet

NMS

10.10.10 .2

Ethernet

NMS

10.10.10.1

Ethernet

NMS

10.10.10 .2

Ethernet

NMS

10.10.10.1

Figure 1-2

Network diagram for SNMP configuration

III. Network procedure

# Set the community name, group name and user.

system-view

[H3C] snmp-agent

[H3C] snmp-agent sys-info version all

[H3C] snmp-agent community write public

[H3C] snmp-agent mib-view include internet 1.3.6.1

[H3C] snmp-agent group v3 managev3group write-view internet

[H3C] snmp-agent usm-user v3 managev3user managev3group

# Set the VLAN-interface 2 as the interface used by NMS. Add port Ethernet1/0/2,
which is to be used for network management, to VLAN 2. Set the IP address of
VLAN-interface 2 as 10.10.10.2.

[H3C] vlan 2

[H3C-vlan2] port Ethernet 1/0/2

[H3C-vlan2] quit

[H3C] interface Vlan-interface 2

[H3C-Vlan-interface2] ip address 10.10.10.2 255.255.255.0