Ccie lab exam SNMP protocol basic configuration
With the increasing scale of the network, the number of devices in the existing networks is increasing.When these devices fail, the device cannot report faults and the network administrator cannot locate and rectify the faults in time. As a result, the network maintenance efficiency is reduced and the maintenance workload is greatly increased.In order to solve this problem, the device manufacturer has already provided network management functions in some devices, so that the network management can remotely check the status of the device, and the device can also issue a warning to the network management workstation when a specific type of event occurs.
The Simple Network Management Protocol (SNMP) consists of a set of network-managed standards, including an application layer protocol, a database schema, and a set of resource objects.The protocol can support the network management system to monitor whether the devices connected to the network have any management concerns. Ccie lab exam.It belongs to the application layer protocol in the TCP/IP Layer 5 protocol and is used for network management protocols.SNMP is mainly used for management of network devices. There are three roles of Network Management Station (NMS), Agent Process (Agent) and managed device when using SNMP protocol.
NMS: sends various query messages to the managed device and accepts warnings sent by the managed device;
Agent: is an agent process on the managed device, used to maintain the information data of the managed device and correspondingly request from the NMS.
Managed equipment: accepts the management of the network management, generates and actively reports the police.
Two PCs are used to simulate the NMS, and one router is used to simulate the Agent. Simply complete an experiment.
The basic configuration is shown in the figure.
PC1:10.1.1.1 255.255.255.0
PC2:10.1.1.2 255.255.255.0
R1:10.1.1.254 255.255.255.0
Start the Agent service: Configure on the router:
[huawei]snmp-agent
View SNMP information: display snmp-agent sys-info
The SNMP versions that are displayed by default are V1, V2, and V3.
Configure the SNMP version:
[Huawei]snmp-agent sys-info version v3
View:
The running version is displayed as V3.
Configuration management permissions:
If there is more than one common user in the network, different access rights can be configured for different users. According to the topology diagram, we only allow PC2 to manage the device.ccie lab exam
Configure an ACL to allow PC2 to manage devices, while PC1 does not.
[Huawei]acl 2000
[Huawei-acl-basic-2000]rule 5 permit source 10.1.1.2 0.0.0.255
[Huawei-acl-basic-2000]rule 10 deny source 10.1.1.1 0.0.0.255
Configure the user group as group, the user name as user, and bind ACL2000.
[Huawei]snmp-agent usm-user v3 user group acl 2000
View SNMPv3 user information:
Configure to output trap information to the SNMP agent:
Configure the agent to send traps. The NMS for receiving messages is named PC2, the destination address is 10.1.1.2, and the UDP port is specified to receive this message. Ccie lab exam .The name of the sending parameter information list of the Trap message is trappc2.
[Huawei]snmp-agent target-host trap-hostname pc2 address 10.1.1.2 udp-port 9991 trap-paramsname trappc2
Enable the device's alarm switch:
[Huawei]snmp-agent trap enable
Info: All switches of SNMP trap/notification will be open. Continue? [Y/N]:y
Configure the length of the alarm message as 200,
[Huawei]snmp-agent trap queue-size 200
Set the message message save time 240s:
[Huawei]snmp-agent trap life 240
Configuration administrator contact information: 11111, address Xi'an
[Huawei]snmp-agent sys-info contact call admin 11111
[Huawei]snmp-agent sys-info location xian china
View related information:
View information about the SNMP agent output network management:
The configuration is complete
Publisher:IE LAB
publish Website: http://ielab.network
WhatsApp: +8617782638871
Skype:live:ielab.anna
Comments
Post a Comment