O'Reilly logo

Cisco IOS in a Nutshell, 2nd Edition by James Boney

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required