1-9
Figure 1-3
Network diagram for SNMPv1/v2c
Configuration procedure
1) Configuring the SNMP agent
# Configure the IP address of the agent as 1.1.1.1/24 and make sure that there is a route between the
agent and the NMS. (The configuration procedure is omitted here)
# Configure the SNMP basic information, including the version and community name.
<Sysname> system-view
[Sysname] snmp-agent sys-info version v1 v2c
[Sysname] snmp-agent community read public
[Sysname] snmp-agent community write private
# Configure the contact person and physical location information of the switch.
[Sysname] snmp-agent sys-info contact Mr.Wang-Tel:3306
[Sysname] snmp-agent sys-info location telephone-closet,3rd-floor
# Enable the sending of traps to the NMS with an IP address of 1.1.1.2/24, using
public
as the
community name.
[Sysname] snmp-agent trap enable
[Sysname] snmp-agent target-host trap address udp-domain 1.1.1.2 udp-port 5000 params
securityname public
2) Configuring the SNMP NMS
With SNMPv2c, the user needs to specify the read only community, the read and write community, the
timeout time, and number of retries. The user can inquire and configure the device through the NMS.
The configurations on the agent and the NMS must match.
SNMPv3 Configuration Example
Network requirements
z
As shown in
Figure 1-4
, the NMS connects to the agent 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 interface status of the agent using SNMPv3. The agent
reports errors or faults to the NMS. The inbound port for traps on the NMS is 5000.
Содержание S5810 Series
Страница 307: ...ii Configured Multicast Group Policy Fails to Take Effect 1 32...
Страница 648: ...1 8 Return to the upper directory Sysname cd Display the current working directory Sysname pwd flash...
Страница 812: ...1 7 Role Slave Sysname stack_3 DeviceD Device type S5810 50S MAC address 000f e200 1003...