Previous section   Next section

Recipe 17.18 Disabling Link Up/Down Traps per Interface

17.18.1 Problem

You want to disable link up/down traps for specific interfaces.

17.18.2 Solution

To disable SNMP link status-change traps for a particular interface, use the following configuration command:

Router#configure terminal 
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#interface Serial0/0
Router(config-if)#no snmp trap link-status 
Router(config-if)#end
Router#

17.18.3 Discussion

By default, the router forwards SNMP link up or down traps whenever an interface changes states. Normally, you want to receive traps when an interface changes states, because that could indicate a serious problem. But there are times when it is useful to disable these types of traps. For instance, dial interfaces may cycle up and down throughout the day without cause for concern. In these cases, you will probably want to suppress these types of traps to prevent network management staff from needlessly chasing meaningless failure reports.

It is also useful to disable SNMP traps for link up and down messages when you are troubleshooting, testing, or enabling interfaces to prevent extraneous failure reports.

This command will work only on physical interfaces and loopback interfaces. It will not allow you to disable link status traps on subinterfaces.

17.18.4 See Also

Recipe 17.13


  Previous section   Next section
Top