Table 15: OSPF traps and associated MIB objects
OSPF trap name
MIB object
interface-authentication-failure
ospflfAuthFailure
interface-config-error
ospflfConfigError
interface-receive-bad-packet
ospflfrxBadPacket
interface-retransmit-packet
ospfTxRetransmit
interface-state-change
-
neighbor-state-change
ospfNbrStateChange
originate-lsa
ospfOriginateLsa
originate-maxage-lsa
ospfMaxAgeLsa
virtual-interface-authentication-
failure
-
virtual-interface-config-error
ospfVirtlfConfigError
virtual-interface-state-change
ospfVirtlfStateChange
virtual-neighbor-state-change
ospfVirtNbrStateChange
virtual-interface-receive-bad-packet
ospfVirtlfRxBad Packet
virtual-interface-retransmit-packet
ospfVirtlfTxRetransmit
Example
Enabling OSPF traps
If you wanted to monitor the neighbor-state-change and interface-receive-bad-packet traps, you would use the
following commands to configure the routing switch to enable the desired trap. The
show
command verifies the
resulting OSPF trap configuration.
switch(ospf)# trap neighbor-state-change
switch(ospf)# trap interface-receive-bad-packet
switch(ospf)# show ip ospf traps
OSPF Traps Enabled
==================
Neighbor State Change
Interface Receive Bad Packet
Adjusting performance by changing the VLAN or subnet
interface settings
Optional: For more information, see
Adjusting performance by changing the VLAN or subnet interface
on page 260.
Indicating the cost per-interface
Syntax:
ip ospf [ip-address | all] cost 1-65535
Chapter 11 Open Shortest Path First Protocol (OSPF)
211