Management and Configuration Guide K/KA/KB.15.15

(Default: Interface IP address)
Destination IP address of the SNMP request PDU that is used as the
source IP address in an SNMP response PDU.
dst-ip-of-request
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.
[ ipv4-addr | ipv6-addr ]
IP address configured for the specified loopback interface that is used
as the source IP address in an SNMP response PDU. If multiple
loopback 0-7
loopback IP addresses are configured, the lowest alphanumeric
address is used.
Example
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:
(HP_Switch_name#) snmp-server response-source dst-ip-of-request
Syntax
[no] snmp-server trap-source [ ipv4-addr | loopback0-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.
The no form of the command resets the switch to the default behavior (compliant with rfc-1517.)
(Default: Use the interface IP address in generated trap PDUs)
User-defined interface IPv4 address that is used as the source IP address in
generated traps. IPv6 addresses are not supported.
ipv4-addr
P 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.
loopback 0-7
NOTE: When you use the snmp-server response-source and snmp-server
trap-source commands, note the following behavior:
The snmp-server response-source and snmp-server trap-source commands
configure the source IP address for IPv4 interfaces only.
You must manually configure the snmp-server response-source value if you wish to
change the default user-defined interface IP address that is used as the source IP address in
SNMP traps (RFC 1517.)
The values configured with the snmp-server response-source and snmp-server
trap-source commands are applied globally to all interfaces that are sending SNMP
responses or SNMP trap PDUs.
Only the source IP address field in the IP header of the SNMP response PDU can be changed.
Only the source IP address field in the IP header and the SNMPv1 Agent Address field of the
SNMP trap PDU can be changed.
Verify the configuration for SNMP replies and traps
To verify the configuration of the interface IP address used as the source IP address in IP headers
for SNMP replies and traps sent from the switch, enter the show snmp-server command to
display the SNMP policy configuration, as shown in Figure 100 (page 212).
Verify the configuration for SNMP replies and traps 211