No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

Configuration Guide - Network Management and Monitoring

CloudEngine 12800 and 12800E V200R005C10

This document describes the configurations of Network Management and Monitoring, including SNMP, RMON, LLDP, NQA, Service Diagnosis, Mirroring, Packet Capture, sFlow, and NETCONF.
Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Configuring Basic SNMPv3 Functions

Configuring Basic SNMPv3 Functions

Context

The security name, authentication and encryption parameters, and port number on the network management side must be the same as the user name, authentication and encryption parameters, and port number on the device side, and the SNMP version on the network management side must be enabled on the device; otherwise, the NMS cannot connect to the device.

Procedure

  1. Run system-view

    The system view is displayed.

  2. (Optional) Run snmp-agent

    The SNMP agent is enabled.

    By default, the SNMP agent is disabled. Executing the snmp-agent command can enable the SNMP agent, even if no parameter is specified in the command.

  3. (Optional) Run snmp-agent udp-port port-num

    The port number of the SNMP agent is changed.

    The default port number of the SNMP agent is 161.

    This command enhances device security. After the number of the port on SNMP agent connecting to the NMS is changed, ensure that the port number on the NMS is the same as the changed port number; otherwise, the SNMP agent cannot connect to the NMS.

  4. (Optional) Configure NMS filtering based on SNMP agent.
    1. Configure the basic ACL.

      For instructions on how to create an ACL, see "ACL Configuration" in the CloudEngine 12800 and 12800E Series Switches Configuration Guide-Security.

    2. Run snmp-agent acl { acl-number | acl-name }

      An ACL is configured for SNMP.

      By default, no ACL is configured for SNMP.

  5. (Optional) Run snmp-agent sys-info version v3

    The SNMP version is set.

    By default, the device supports SNMPv3.

  6. (Optional) Run undo snmp-agent local-user password complexity-check disable

    The device is configured to check the complexity of user authentication password and encryption password.

    By default, the device checks the complexity of user authentication password and encryption password. If the check fails, the password cannot be configured. To ensure system security, you are advised to enable password complexity check.

  7. (Optional) Run snmp-agent password min-length min-length

    The minimum length of SNMP password is set.

    By default, the minimum length of SNMP password is 8.

    After this command is run, the authentication or encryption password of the SNMPv3 local user cannot be shorter than the minimum length of SNMP password.

  8. Run snmp-agent local-user v3 user-name { authentication-mode { md5 | sha } privacy-mode { 3des168 | aes128 | aes192 | aes256 | des56 } | authentication-mode { md5 | sha } cipher password privacy-mode { 3des168 | aes128 | aes192 | aes256 | des56 } cipher password }

    The information about an SNMPv3 user is configured.

    By default, no SNMPv3 local user is configured.

    When the NMS and device are in an insecure network environment, for example, a network prone to attacks, it is recommended that you configure different authentication password and encryption password to improve security.

    After an SNMPv3 local user is configured, configure the authentication password and encryption password for the user, which can be different from the passwords of AAA local user. When an AAA local user is deleted, the corresponding SNMPv3 user is also deleted; however, the deletion of an SNMPv3 local user does not affect the corresponding AAA local user.

    An SNMPv3 local user and an SNMPv3 USM user can use the same name. The name of an SNMPv3 USM user has a higher priority than an SNMPv3 local user. That is, when an SNMPv3 user and an SNMPv3 UMS user have the same name but different authentication or encryption password, the authentication and encryption passwords of the SNMPv3 USM user are used for login.

    To ensure high security, do not use the MD5 algorithm for SNMPv3 authentication or use the DES56 or 3DES168 algorithm for SNMPv3 encryption.

  9. (Optional) Configure the switch to listen on the source interface or source IPv6 address of SNMP request packets sent from the NMS.

    • On an IPv4 network, run the snmp-agent protocol source-interface interface-type interface-number command to configure the interface used to receive SNMP packets from and send SNMP packets to the NMS.

      By default, the interface used to receive SNMP packets from and send SNMP packets to the NMS is not configured.

      After SNMP is bound to the source interface, SNMP listens only this interface, through which the NMS communicates with the device. If the source interface or its IP address is deleted, SNMP will stop receiving IP packets, and therefore communication between the NMS and devices will interrupt. After the source interface's IP address is changed, the NMS can communicate with devices only through the new IP address.

    • On an IPv6 network, run the snmp-agent protocol ipv6 source-ip ipv6-address command to configure the device to listen on the IPv6 addresses of SNMP request packets from the NMS.

      By default, no source IPv6 address is configured. A switch can use any reachable IPv6 address in communication with other devices.

  10. (Optional) Run snmp-agent protocol [ ipv6 ] { vpn-instance vpn-instance-name | public-net }

    A switch is configured to receive and respond to the SNMP request packets from VPN or public network.

    By default, a switch receives and responds to the SNMP request packets from the global VPN instances and public network.

  11. (Optional) Run snmp-agent protocol server [ ipv4 | ipv6 ] disable

    The SNMP IPv4 or IPv6 listening port is disabled.

    By default, the SNMP IPv4 or IPv6 listening port is disabled.

    After you disable the SNMP IPv4 or IPv6 listening port using this command, SNMP no longer processes SNMP packets. Exercise caution when running this command.

  12. (Optional) Run snmp-agent protocol get-bulk timeout time

    The delay after which the device returns information in response to the get-bulk operation of the NMS is set.

    By default, the device returns information 2s after the NMS performs a get-bulk operation.

    The default delay 2s is recommended. If you need to change the value, ensure that the value must be smaller than the timeout interval set on the NMS.

  13. (Optional) Run snmp-agent sys-info { contact contact | location location }

    The device administrator's contact information or location is configured.

    By default, the device administrator's contact information is "R&D Beijing, Huawei Technologies Co.,Ltd." and location is "Beijing China."

    This step is required for the NMS administrator to view contact information and locations of the device administrator when the NMS manages many devices. This helps the NMS administrator to contact the device administrator for fault location and rectification.

  14. Run commit

    The configuration is committed.

Translation
Download
Updated: 2019-04-20

Document ID: EDOC1100075344

Views: 29757

Downloads: 29

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next