This section describes how to use user-defined parameter settings to configure Simple Network Management Protocol (SNMP) proxy on the middle-point device.
The system view is displayed.
The minimum SNMP password length is configured.
After this command is run, the length of a configured SNMP password must be longer than or equal to the minimum SNMP password length.
Configuration Task |
Command |
Description |
---|---|---|
Configure proxy rules for SNMP packets. |
|
To enable an NMS to effectively manage a managed device, perform this operation to configure attributes of the target hosts for receiving SNMP proxy packets so that the middle-point device can filter out SNMP packets that do not match the specified attributes, you must correctly configure proxy rules for SNMP packets and ensure that these proxy rules are unique on the middle-point device. If you specify neither authentication nor privacy, SNMPv3 packets are neither authenticated nor encrypted. |
Create an SNMP proxy community. |
snmp-agent proxy community { community-name | cipher cipher-name } remote-engineid remote-engineid [ acl { acl-number | acl-name } | alias alias-name ] * |
An SNMP proxy community defines administrative relationships between NMSs and managed devices. The community name acts like a password to regulate access to a managed device. An NMS can access a managed device only if the community name carried in the SNMP request sent by the NMS is the same as the community name configured on the managed device. This operation applies only to SNMPv1 and SNMPv2c. |
Configure attributes of the target hosts for receiving SNMP proxy packets. |
|
To enable the middle-point device to forward SNMP requests from the network management system (NMS) to the managed device and forward responses from the managed device to the NMS.
|
Create an SNMP proxy user. |
snmp-agentremote-engineidremote-engineid-nameusm-user v3user-namegroup-nameauthentication-mode { md5 | sha | sha2 } password privacy-mode { des56 | 3des168 | aes128 | aes192 | aes256 } password[ acl { acl-number | acl-name } ] |
SNMPv1 and SNMPv2c use community names for authentication, whereas SNMPv3 uses usernames for authentication. Unlike SNMPv1 or SNMPv2c, SNMPv3 can implement access control, identity authentication, and data encryption using the local processing model and user-based security model (USM). SNMPv3 provides better security and encryption mechanisms than SNMPv1 and SNMPv2c, and is therefore widely used. This operation applies only to SNMPv3. |
(Optional) Configure the priority of SNMP packets. |
snmp-agent packet-priority { snmp | trap } priority-level |
Change the priority of SNMP packets in the following scenarios if necessary:
|
Configure SNMP proxy for receiving and responding to requests from the CCU. |
|
To allow data to be managed in a unified manner, you can specify the source interface/IPv6 source address for the SNMP proxy to receive and respond to requests from the CCU or enable the function that allows all interfaces/IPv6 source addresses to be used by the SNMP proxy to receive and respond to requests from the CCU. |
The configuration is committed.