358
C
HAPTER
33: SNMP C
ONFIGURATION
Thus, the NMS is able to access Switch A and receive the trap messages sent by
Switch A.
Network diagram
Figure 107
Network diagram for SNMP configuration
Network procedure
# Enable SNMP agent, and set the SNMPv1 and SNMPv2c community names.
<4210> system-view
[4210] snmp-agent
[4210] snmp-agent sys-info version all
[4210] snmp-agent community read public
[4210] snmp-agent community write private
# Set the access right of the NMS to the MIB of the SNMP agent.
[4210] snmp-agent mib-view include internet 1.3.6.1
# For SNMPv3, set:
■
SNMPv3 group and user
■
security to the level of needing authentication and encryption
■
authentication protocol to HMAC-MD5
■
authentication password to passmd5
■
encryption protocol to DES
■
encryption password to cfb128cfb128
[4210] snmp-agent group v3 managev3group privacy write-view internet
[4210] snmp-agent usm-user v3 managev3user managev3group authentication
-mode md5 passmd5 privacy-mode des128 cfb128cfb128
# Set the VLAN-interface 2 as the interface used by NMS. Add port Ethernet 1/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.
[4210] vlan 2
[4210-vlan2] port Ethernet 1/0/2
[4210-vlan2] quit
[4210] interface Vlan-interface 2
[4210-Vlan-interface2] ip address 10.10.10.2 255.255.255.0
[4210-Vlan-interface2] quit
# Enable the SNMP agent to send Trap messages to the NMS whose IP address is
10.10.10.1. The SNMP community name to be used is "public".
Ethernet
10.10.10.1
NMS
10 .10 .10 .2
Switch A
Summary of Contents for Switch 4210 9-Port
Page 22: ...20 CHAPTER 1 CLI CONFIGURATION ...
Page 74: ...72 CHAPTER 3 CONFIGURATION FILE MANAGEMENT ...
Page 84: ...82 CHAPTER 5 VLAN CONFIGURATION ...
Page 96: ...94 CHAPTER 8 IP PERFORMANCE CONFIGURATION ...
Page 108: ...106 CHAPTER 9 PORT BASIC CONFIGURATION ...
Page 122: ...120 CHAPTER 11 PORT ISOLATION CONFIGURATION ...
Page 140: ...138 CHAPTER 13 MAC ADDRESS TABLE MANAGEMENT ...
Page 234: ...232 CHAPTER 17 802 1X CONFIGURATION ...
Page 246: ...244 CHAPTER 20 AAA OVERVIEW ...
Page 270: ...268 CHAPTER 21 AAA CONFIGURATION ...
Page 292: ...290 CHAPTER 26 DHCP BOOTP CLIENT CONFIGURATION ...
Page 318: ...316 CHAPTER 29 MIRRORING CONFIGURATION ...
Page 340: ...338 CHAPTER 30 CLUSTER ...
Page 362: ...360 CHAPTER 33 SNMP CONFIGURATION ...
Page 368: ...366 CHAPTER 34 RMON CONFIGURATION ...
Page 450: ...448 CHAPTER 39 TFTP CONFIGURATION ...
Page 451: ......
Page 452: ...450 CHAPTER 39 TFTP CONFIGURATION ...
Page 470: ...468 CHAPTER 40 INFORMATION CENTER ...
Page 496: ...494 CHAPTER 44 DEVICE MANAGEMENT ...