snmp-server trap-source — global
interfaceno snmp-server trap-source
SNMP agent; trap behavior
The router uses the closest interface to the destination
This command specifies the interface (and consequently the IP address) that should be used to send SNMP traps. If you have a separate network for management tasks (a good idea), you can use this command to ensure that traps are sent only over the management network.
The following command tells the router that all SNMP traps should be sent via the
snmp-server trap -source ethernet0