The IF-MIB complies with RFC 2233 and provides SNMP support for subinterfaces. Additionally, you can configure SNMP to use
either the existing Cisco implementation of linkUp or linkDown traps or the IF-MIB implementation consistent with IETF standards.
Refer to RFC 2233 for information about linkUp and linkDown traps.
Starting with Cisco IOS Release 12.1(2)T/12.0(21)S3, you can configure your router to begin using the new RFC 2233 IETF standards-based
implementation by using the snmp-server trap link ietf command. This command enables notification support for subinterfaces and is disabled by default to allow you to continue
using the earlier Cisco implementation of linkUp/linkDown traps if you so choose.
However, please note that when using the earlier Cisco object definitions, an arbitrary value is used for the locIfReason
object in linkUp/linkDown traps for subinterfaces, which may give you unintended results. This is because the locIfReason
object is not defined for subinterfaces in the current Cisco implementation, which uses OLD-CISCO-INTERFACES-MIB.my.
If you do not enable this functionality, the link trap varbind list will consist of {ifIndex, ifDescr, ifType, locIfReason}.
After you enable this functionality with the snmp-server trap link ietf command, the varbind list will consist of {inIndex, ifAdminStatus, ifOperStatus, if Descr, ifType}. The locIfReason
object will also be conditionally included in this list depending on whether meaningful information can be retrieved for that
object. A configured subinterface will generate retrievable information. On non-HWIDB interfaces, there will be no defined
value for locIfReason
, so it will be omitted from the trap message.
Other updates to the IF-MIB module have also been made to comply with RFC2233. These changes include the addition of the ifCounterDiscontinuityTime
object, and the addition of basic support for ifTableLastChange. Updated Online Insertion and Removal (OIR) drivers are planned
in a future release for full ifTableLastChange support.