
86
Step
Command
Remarks
v2c
}
user-name group-name
[
acl
acl-number
|
acl
ipv6
ipv6-acl-number
] *
9.
(Optional.) Create an
SNMP context.
snmp-agent context
context-name
By default, no SNMP context is
configured on the device.
10.
(Optional.) Map an
SNMP community to
an SNMP context.
snmp-agent community-map
community-name context context-name
By default, no mapping between
an SNMP community and an
SNMP context exists on the
device.
11.
(Optional.) Configure
the maximum SNMP
packet size (in bytes)
that the SNMP agent
can handle.
snmp-agent packet max-size
byte
-
count
By default, the maximum SNMP
packet size that the SNMP agent
can handle is 1500 bytes.
If the packet size of the requests
and responses that contain MIB
node information exceeds the
maximum packet size that the
agent can handle, operations from
the NMS fail. For the NMS to
access the agent successfully,
configure a bigger packet size that
the agent can handle.
12.
Specify the UDP port
for receiving SNMP
packets.
snmp-agent port port-number
By default, the device uses UDP
port 161 for receiving SNMP
packets.
Configuring SNMPv3 basic parameters
SNMPv3 users are managed in groups. All SNMPv3 users in a group share the same security model,
but can use different authentication and privacy key settings. To implement a security model for a
user and avoid SNMP communication failures, make sure the security model configuration for the
group and the security key settings for the user are compliant with
on the NMS.
Table 16 Basic security setting requirements for different security models
Security model
Security model
keyword for the
group
Security key
settings for the user
Remarks
Authentication with
privacy
privacy
Authentication key,
privacy key
If the authentication key
or the privacy key is not
configured, SNMP
communication will fail.
Authentication without
privacy
authentication
Authentication key
If no authentication key is
configured, SNMP
communication will fail.
The privacy key (if any)
for the user does not take
effect.
No authentication, no
privacy
Neither
authentication
nor
privacy
None
The authentication and
privacy keys, if
configured, do not take
effect.
To configure SNMPv3 basic parameters: