Snmpv1/snmpv2c configuration example, Network requirements, Configuration procedure – H3C Technologies H3C WX6000 Series Access Controllers User Manual

Page 101

Advertising
background image

7-9

SNMPv1/SNMPv2c Configuration Example

Network requirements

z

As shown in

Figure 7-3

, the NMS connects to the agent, an AC, through an Ethernet.

z

The IP address of the NMS is 1.1.1.2/24.

z

The IP address of the agent is 1.1.1.1/24.

z

The NMS monitors and manages the agent using SNMPv1 or SNMPv2c. The agent reports errors

or faults to the NMS.

Figure 7-3 Network diagram for SNMPv1/SNMPv2c

Configuration procedure

1) Configuring

AC

# Configure the IP address of the agent as 1.1.1.1/24 and make sure that the agent and the NMS can

reach each other. (The configuration procedure is omitted here)

# Configure the SNMP basic information, including the version and community name.

<AC> system-view

[AC] snmp-agent sys-info version v1 v2c

[AC] snmp-agent community read public

[AC] snmp-agent community write private

# Configure the contact person and physical location information of the AC.

[AC] snmp-agent sys-info contact Mr.Wang-Tel:3306

[AC] snmp-agent sys-info location telephone-closet,3rd-floor

# Enable SNMP traps, set the NMS at IP address 1.1.1.2/24 as an SNMP trap destination, and use

public as the community name. (To ensure that the NMS can receive traps, specify the same SNMP

version in the snmp-agent target-host command as on the NMS.)

[AC] snmp-agent trap enable

[AC] snmp-agent target-host trap address udp-domain 1.1.1.2 udp-port 5000 params securityname

public v1

2) Configuring the SNMP NMS

With SNMPv1/SNMPv2c, specify the read only community, the read and write community, the timeout

time, and the number of retries. The user can inquire and configure the device through the NMS.

The configurations on the agent and the NMS must match.

3) Verify the configuration

Advertising