mac

66
no snmp-server trap-source {<ipv4-address> | <ipv6-address>}
Function: Set the source IPv4 or IPv6 address which is used to send trap packet, the no
command deletes the configuration.
Parameter: <ipv4-address>: IPv4 address is used to send trap packet in dotted decimal
notation
<ipv6-address>: IPv6 address is used to send trap packet in colon
hexadecimal.
Command Mode: Global Mode.
Usage Guide: If there is no configuration, select the source address according to the
interface address sent by actual trap packet, when configure the IP address, adopt the
configured source address as the source address of trap packet.
Example:
Set the IP address which is used to send trap packet.
Switch(config)#snmp-server trap-source 1.1.1.5
Delete the configured source address which is used to send IPv6 trap packet.
Switch(config)#no snmp-server trap-source 2001::1
1.4.21 snmp-server user
Command: snmp-server user <use-string> <group-string> [{authPriv | authNoPriv}
auth {md5 | sha} <word>] [access {<num-std>|<name>}] [ipv6-access
{<ipv6-num-std>|<ipv6-name>}]
no snmp-server user <user-string> [access {<num-std>|<name>}]
[ipv6-access {<ipv6-num-std>|<ipv6-name>}]
Function: Add a new user to an SNMP group; the "no‖ form of this command deletes this
user.
Command Mode: Global Mode.
Parameter: <user-string> is the user name containing 1-32 characters.
<group-string> is the name of the group the user belongs to, containing 1-32
characters.
authPriv use DES for the packet encryption.
authNoPriv not use DES for the packet encryption.
auth perform packet authentication.
md5 packet authentication using HMAC MD5 algorithm.
sha packet authentication using HMAC SHA algorithm.
<word > user password, containing 8-32 character.
<num-std> is the access-class number for standard numeric ACL, ranging
between 1-99;