Configuring the Source Address for All SNMP Traps by Using the Interface IP Address

You can use the snmp-server trap-source command to specify the interface whose IP address is used as the source address for all SNMP traps.

Note: When there are multiple IP addresses configured on the IP interface that is chosen as the SNMP trap source, the SNMP agent automatically uses the primary IP address of the interface as the SNMP source address on SNMP traps.

To specify the interface whose IP address is used as the source address for all SNMP traps:

Related Documentation