snmp-server trap-source

Syntax

[no] snmp-server trap-source ipv4-addr loopback0-7

Description

Specifies the source IP address to be used for a trap PDU. To configure the switch to use a specified source IP address in generated trap PDUs, enter the snmp-server trap-source command. Defaults to the interface IP address in generated trap PDUs.

Parameters and options

no

The no form of the command resets the switch to the default behavior (compliant with rfc-1517.)

dst-ip-of-request

Destination IP address of the SNMP request PDU that is used as the source IP address in an SNMP response PDU.

ipv4–addr

User-defined interface IPv4 address that is used as the source IP address in generated traps. IPv6 addresses are not supported.

loopback 0-7

IP address configured for the specified loopback interface that is used as the source IP address in a generated trap PDU. If multiple loopback IP addresses are configured, the lowest alphanumeric address is used.