Configuring SNMP & RMON Notification Configurations
Configuration Guide  
  717
Step 2 interface {fastEthernet 
port 
| range fastEthernet 
port-list 
| gigabitEthernet 
port 
| range 
gigabitEthernet 
port-list 
| ten-gigabitEthernet 
port 
| range ten-gigabitEthernet 
port-list 
]
Configure notification traps on the specified ports.
port/port-list:
 The number or the list of the Ethernet ports that you desire to configure 
notification traps.
Step 3 snmp-server traps link-status
Enable SNMP extended linkup and linkdown traps. By default, it is disabled.
Step 4 end
Return to privileged EXEC mode.
Step 5 copy running-config startup-config
Save the settings in the configuration file.
The following example shows how to configure the switch to enable link-status trap:
Switch#configure
Switch(config)#interface gigabitEthernet 1/0/1
Switch(config-if)#snmp-server traps link-status
Switch(config-if)#end
Switch#copy running-config startup-config