Enter
all
to enable or disable link-change traps on all ports on the switch.
Readable interface names in traps
The SNMP trap notification messages for linkup and linkdown events on an interface includes IfDesc and IfAlias
var-bind information.
Source IP address for SNMP notifications
The switch uses an interface IP address as the source IP address in IP headers when sending SNMP
notifications (traps and informs) or responses to SNMP requests.
For multi-netted interfaces, the source IP address is the IP address of the outbound interface of the SNMP reply,
which may differ from the destination IP address in the IP header of the received request. For security reasons, it
may be desirable to send an SNMP reply with the IP address of the destination interface (or a specified IP
address) on which the corresponding SNMP request was received.
To configure the switch to use the source IP address on which an SNMP request was received in SNMP
notification or traps and replies, enter the
snmp-server response-source
and
snmp-server trap-
source
commands (For more information, see
Configuring the source IP address for SNMP notifications
).
Configuring the source IP address for SNMP notifications (CLI)
For more information, see
Source IP address for SNMP notifications
Syntax:
[no] snmp-server response-source [dst-ip-of-request | [
ipv4-addr
|
ipv6-addr
] | loopback <0-7>]
Specifies the source IP address of the SNMP response PDU. The default SNMP response PDU uses the IP
address of the active interface from which the SNMP response was sent as the source IP address.
The
no
form of the command resets the switch to the default behavior (compliant with rfc-1517).
(Default: Interface IP address)
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
|
ipv6-addr
]
User-defined interface IP address that is used as the source IP address
in an SNMP response PDU. Both IPv4 and IPv6 addresses are
supported.
loopback <0-7>
IP address configured for the specified loopback interface that is used as
the source IP address in an SNMP response PDU. If multiple loopback IP
addresses are configured, the lowest alphanumeric address is used.
To use the IP address of the destination interface on which an SNMP request was received as the source IP
address in the IP header of SNMP traps and replies, enter the following command:
switch(config)# snmp-server response-source dst-ip-of-request
Syntax:
[no] snmp-server trap-source [
ipv4-addr
| loopback <0-7>]
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.
Chapter 7 Configuring for Network Management Applications
205