Name

snmp-server trap-source — global

Synopsis

snmp-server trap-source interface
no snmp-server trap-source

Configures

SNMP agent; trap behavior

Default

The router uses the closest interface to the destination

Description

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.

Example

The following command tells the router that all SNMP traps should be sent via the ethernet0 interface:

snmp-server trap-source ethernet0

Get CISCO IOS in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.