Home/Catalog/IF-MIB

IF-MIB

AI MIB Summary

The IF-MIB provides standardized access to interface statistics, including operational status, traffic counters, and error rates, for all network sub-layers across routers, switches, and hosts. It serves as the foundational mechanism for monitoring link state changes, throughput utilization, and packet loss events in SNMP-managed network devices.

The MIB module to describe generic objects for network interface sub-layers. This MIB is an updated version of MIB-II's ifTable, and incorporates the extensions defined in RFC 1229.
Main OID:
ifMIB.1.3.6.1.2.1.31
91
Objects
Active
Status
5
Dependencies

Imported Objects

Objects

91 total
Object Name
interfaces
OBJECT IDENTIFIER
.1.3.6.1.2.1.2
ifNumberro
Integer32
.1.3.6.1.2.1.2.1
ifTable
SEQUENCE OF IfEntry
.1.3.6.1.2.1.2.2
ifEntry
IfEntry
.1.3.6.1.2.1.2.2.1
ifIndexro
InterfaceIndex
.1.3.6.1.2.1.2.2.1.1
ifDescrro
DisplayString
.1.3.6.1.2.1.2.2.1.2
ifTypero
IANAifType (IANAifType-MIB)
.1.3.6.1.2.1.2.2.1.3
ifMturo
Integer32
.1.3.6.1.2.1.2.2.1.4
ifSpeedro
Gauge32
.1.3.6.1.2.1.2.2.1.5
ifPhysAddressro
PhysAddress (SNMPv2-TC)
.1.3.6.1.2.1.2.2.1.6
ifAdminStatusrw
Enumeration
.1.3.6.1.2.1.2.2.1.7
ifOperStatusro
Enumeration
.1.3.6.1.2.1.2.2.1.8
ifLastChangero
TimeTicks (SNMPv2-SMI)
.1.3.6.1.2.1.2.2.1.9
ifInOctetsro
Counter32
.1.3.6.1.2.1.2.2.1.10
ifInUcastPktsro
Counter32
.1.3.6.1.2.1.2.2.1.11
ifInNUcastPktsrodeprecated
Counter32
.1.3.6.1.2.1.2.2.1.12
ifInDiscardsro
Counter32
.1.3.6.1.2.1.2.2.1.13
ifInErrorsro
Counter32
.1.3.6.1.2.1.2.2.1.14
ifInUnknownProtosro
Counter32
.1.3.6.1.2.1.2.2.1.15
ifOutOctetsro
Counter32
.1.3.6.1.2.1.2.2.1.16
ifOutUcastPktsro
Counter32
.1.3.6.1.2.1.2.2.1.17
ifOutNUcastPktsrodeprecated
Counter32
.1.3.6.1.2.1.2.2.1.18
ifOutDiscardsro
Counter32
.1.3.6.1.2.1.2.2.1.19
ifOutErrorsro
Counter32
.1.3.6.1.2.1.2.2.1.20
ifOutQLenrodeprecated
Gauge32
.1.3.6.1.2.1.2.2.1.21
ifSpecificrodeprecated
OBJECT IDENTIFIER
.1.3.6.1.2.1.2.2.1.22
ifMIB
MODULE-IDENTITY
.1.3.6.1.2.1.31
ifMIBObjects
OBJECT IDENTIFIER
.1.3.6.1.2.1.31.1
ifXTable
SEQUENCE OF IfXEntry
.1.3.6.1.2.1.31.1.1
ifXEntry
IfXEntry
.1.3.6.1.2.1.31.1.1.1
ifNamero
DisplayString (SNMPv2-TC)
.1.3.6.1.2.1.31.1.1.1.1
ifInMulticastPktsro
Counter32
.1.3.6.1.2.1.31.1.1.1.2
ifInBroadcastPktsro
Counter32
.1.3.6.1.2.1.31.1.1.1.3
ifOutMulticastPktsro
Counter32
.1.3.6.1.2.1.31.1.1.1.4
ifOutBroadcastPktsro
Counter32
.1.3.6.1.2.1.31.1.1.1.5
ifHCInOctetsro
Counter64
.1.3.6.1.2.1.31.1.1.1.6
ifHCInUcastPktsro
Counter64
.1.3.6.1.2.1.31.1.1.1.7
ifHCInMulticastPktsro
Counter64
.1.3.6.1.2.1.31.1.1.1.8
ifHCInBroadcastPktsro
Counter64
.1.3.6.1.2.1.31.1.1.1.9
ifHCOutOctetsro
Counter64
.1.3.6.1.2.1.31.1.1.1.10
ifHCOutUcastPktsro
Counter64
.1.3.6.1.2.1.31.1.1.1.11
ifHCOutMulticastPktsro
Counter64
.1.3.6.1.2.1.31.1.1.1.12
ifHCOutBroadcastPktsro
Counter64
.1.3.6.1.2.1.31.1.1.1.13
ifLinkUpDownTrapEnablerw
Enumeration
.1.3.6.1.2.1.31.1.1.1.14
ifHighSpeedro
Gauge32
.1.3.6.1.2.1.31.1.1.1.15
ifPromiscuousModerw
TruthValue (SNMPv2-TC)
.1.3.6.1.2.1.31.1.1.1.16
ifConnectorPresentro
TruthValue (SNMPv2-TC)
.1.3.6.1.2.1.31.1.1.1.17
ifAliasrw
DisplayString
.1.3.6.1.2.1.31.1.1.1.18
ifCounterDiscontinuityTimero
TimeStamp (SNMPv2-TC)
.1.3.6.1.2.1.31.1.1.1.19
ifStackTable
SEQUENCE OF IfStackEntry
.1.3.6.1.2.1.31.1.2
ifStackEntry
IfStackEntry
.1.3.6.1.2.1.31.1.2.1
ifStackHigherLayer
InterfaceIndexOrZero
.1.3.6.1.2.1.31.1.2.1.1
ifStackLowerLayer
InterfaceIndexOrZero
.1.3.6.1.2.1.31.1.2.1.2
ifStackStatusrw
RowStatus (SNMPv2-TC)
.1.3.6.1.2.1.31.1.2.1.3
ifTestTabledeprecated
SEQUENCE OF IfTestEntry
.1.3.6.1.2.1.31.1.3
ifTestEntrydeprecated
IfTestEntry
.1.3.6.1.2.1.31.1.3.1
ifTestIdrwdeprecated
TestAndIncr (SNMPv2-TC)
.1.3.6.1.2.1.31.1.3.1.1
ifTestStatusrwdeprecated
Enumeration
.1.3.6.1.2.1.31.1.3.1.2
ifTestTyperwdeprecated
AutonomousType (SNMPv2-TC)
.1.3.6.1.2.1.31.1.3.1.3
ifTestResultrodeprecated
Enumeration
.1.3.6.1.2.1.31.1.3.1.4
ifTestCoderodeprecated
OBJECT IDENTIFIER
.1.3.6.1.2.1.31.1.3.1.5
ifTestOwnerrwdeprecated
OwnerString
.1.3.6.1.2.1.31.1.3.1.6
ifRcvAddressTable
SEQUENCE OF IfRcvAddressEntry
.1.3.6.1.2.1.31.1.4
ifRcvAddressEntry
IfRcvAddressEntry
.1.3.6.1.2.1.31.1.4.1
ifRcvAddressAddress
PhysAddress (SNMPv2-TC)
.1.3.6.1.2.1.31.1.4.1.1
ifRcvAddressStatusrw
RowStatus (SNMPv2-TC)
.1.3.6.1.2.1.31.1.4.1.2
ifRcvAddressTyperw
Enumeration
.1.3.6.1.2.1.31.1.4.1.3
ifTableLastChangero
TimeTicks (SNMPv2-SMI)
.1.3.6.1.2.1.31.1.5
ifStackLastChangero
TimeTicks (SNMPv2-SMI)
.1.3.6.1.2.1.31.1.6
ifConformance
OBJECT IDENTIFIER
.1.3.6.1.2.1.31.2
ifGroups
OBJECT IDENTIFIER
.1.3.6.1.2.1.31.2.1
ifGeneralGroupdeprecated
Unknown
.1.3.6.1.2.1.31.2.1.1
ifFixedLengthGroup
Unknown
.1.3.6.1.2.1.31.2.1.2
ifHCFixedLengthGroup
Unknown
.1.3.6.1.2.1.31.2.1.3
ifPacketGroup
Unknown
.1.3.6.1.2.1.31.2.1.4
ifHCPacketGroup
Unknown
.1.3.6.1.2.1.31.2.1.5
ifVHCPacketGroup
Unknown
.1.3.6.1.2.1.31.2.1.6
ifRcvAddressGroup
Unknown
.1.3.6.1.2.1.31.2.1.7
ifTestGroupdeprecated
Unknown
.1.3.6.1.2.1.31.2.1.8
ifStackGroupdeprecated
Unknown
.1.3.6.1.2.1.31.2.1.9
ifGeneralInformationGroup
Unknown
.1.3.6.1.2.1.31.2.1.10
ifStackGroup2
Unknown
.1.3.6.1.2.1.31.2.1.11
ifOldObjectsGroupdeprecated
Unknown
.1.3.6.1.2.1.31.2.1.12
ifCounterDiscontinuityGroup
Unknown
.1.3.6.1.2.1.31.2.1.13
linkUpDownNotificationsGroup
Unknown
.1.3.6.1.2.1.31.2.1.14
ifCompliances
OBJECT IDENTIFIER
.1.3.6.1.2.1.31.2.2
ifCompliancedeprecated
Unknown
.1.3.6.1.2.1.31.2.2.1
ifCompliance2deprecated
Unknown
.1.3.6.1.2.1.31.2.2.2
ifCompliance3
Unknown
.1.3.6.1.2.1.31.2.2.3
linkDown
NOTIFICATION-TYPE
.1.3.6.1.6.3.1.1.5.3
linkUp
NOTIFICATION-TYPE
.1.3.6.1.6.3.1.1.5.4

IF-MIB Technical Reference Overview

The IF-MIB SNMP MIB module published by Default defines 91 managed OID objects, including 73 scalar/column metrics, 5 SNMP tables, and 2 trap/notification events anchored at base OID .1.3.6.1.2.1.31. Key tabular structures include ifRcvAddressTable, ifStackTable, ifTable, ifTestTable, ifXTable. Monitored SNMP traps/notifications include linkDown, linkUp.

Key OID Definitions in IF-MIB

ifMIBMODULE-IDENTITYnot-accessible
.1.3.6.1.2.1.31

The MIB module to describe generic objects for network interface sub-layers. This MIB is an updated version of MIB-II's ifTable, and incorporates the extensions defined in RFC 1229.

ifRcvAddressTableSEQUENCEnot-accessible
.1.3.6.1.2.1.31.1.4

This table contains an entry for each address (broadcast, multicast, or uni-cast) for which the system will receive packets/frames on a particular interface, except as follows: - for an interface operating in promiscuous mode, entries are only required for those addresses for which the system would receive frames were it not operating in promiscuous mode. - for 802.5 functional addresses, only one entry is required, for the address which has the functional address bit ANDed with the bit mask of all functional addresses for which the interface will accept frames. A system is normally able to use any unicast address which corresponds to an entry in this table as a source address.

ifStackTableSEQUENCEnot-accessible
.1.3.6.1.2.1.31.1.2

The table containing information on the relationships between the multiple sub-layers of network interfaces. In particular, it contains information on which sub-layers run 'on top of' which other sub-layers, where each sub-layer corresponds to a conceptual row in the ifTable. For example, when the sub-layer with ifIndex value x runs over the sub-layer with ifIndex value y, then this table contains: ifStackStatus.x.y=active For each ifIndex value, I, which identifies an active interface, there are always at least two instantiated rows in this table associated with I. For one of these rows, I is the value of ifStackHigherLayer; for the other, I is the value of ifStackLowerLayer. (If I is not involved in multiplexing, then these are the only two rows associated with I.) For example, two rows exist even for an interface which has no others stacked on top or below it: ifStackStatus.0.x=active ifStackStatus.x.0=active

ifTableSEQUENCEnot-accessible
.1.3.6.1.2.1.2.2

A list of interface entries. The number of entries is given by the value of ifNumber.

ifTestTableSEQUENCEnot-accessible
.1.3.6.1.2.1.31.1.3

This table contains one entry per interface. It defines objects which allow a network manager to instruct an agent to test an interface for various faults. Tests for an interface are defined in the media-specific MIB for that interface. After invoking a test, the object ifTestResult can be read to determine the outcome. If an agent can not perform the test, ifTestResult is set to so indicate. The object ifTestCode can be used to provide further test- specific or interface-specific (or even enterprise-specific) information concerning the outcome of the test. Only one test can be in progress on each interface at any one time. If one test is in progress when another test is invoked, the second test is rejected. Some agents may reject a test when a prior test is active on another interface. Before starting a test, a manager-station must first obtain 'ownership' of the entry in the ifTestTable for the interface to be tested. This is accomplished with the ifTestId and ifTestStatus objects as follows: try_again: get (ifTestId, ifTestStatus) while (ifTestStatus != notInUse) /* * Loop while a test is running or some other * manager is configuring a test. */ short delay get (ifTestId, ifTestStatus) } /* * Is not being used right now -- let's compete * to see who gets it. */ lock_value = ifTestId if ( set(ifTestId = lock_value, ifTestStatus = inUse, ifTestOwner = 'my-IP-address') == FAILURE) /* * Another manager got the ifTestEntry -- go * try again */ goto try_again; /* * I have the lock */ set up any test parameters. /* * This starts the test */ set(ifTestType = test_to_run); wait for test completion by polling ifTestResult when test completes, agent sets ifTestResult agent also sets ifTestStatus = 'notInUse' retrieve any additional test results, and ifTestId if (ifTestId == lock_value+1) results are valid A manager station first retrieves the value of the appropriate ifTestId and ifTestStatus objects, periodically repeating the retrieval if necessary, until the value of ifTestStatus is 'notInUse'. The manager station then tries to set the same ifTestId object to the value it just retrieved, the same ifTestStatus object to 'inUse', and the corresponding ifTestOwner object to a value indicating itself. If the set operation succeeds then the manager has obtained ownership of the ifTestEntry, and the value of the ifTestId object is incremented by the agent (per the semantics of TestAndIncr). Failure of the set operation indicates that some other manager has obtained ownership of the ifTestEntry. Once ownership is obtained, any test parameters can be setup, and then the test is initiated by setting ifTestType. On completion of the test, the agent sets ifTestStatus to 'notInUse'. Once this occurs, the manager can retrieve the results. In the (rare) event that the invocation of tests by two network managers were to overlap, then there would be a possibility that the first test's results might be overwritten by the second test's results prior to the first results being read. This unlikely circumstance can be detected by a network manager retrieving ifTestId at the same time as retrieving the test results, and ensuring that the results are for the desired request. If ifTestType is not set within an abnormally long period of time after ownership is obtained, the agent should time-out the manager, and reset the value of the ifTestStatus object back to 'notInUse'. It is suggested that this time-out period be 5 minutes. In general, a management station must not retransmit a request to invoke a test for which it does not receive a response; instead, it properly inspects an agent's MIB to determine if the invocation was successful. Only if the invocation was unsuccessful, is the invocation request retransmitted. Some tests may require the interface to be taken off-line in order to execute them, or may even require the agent to reboot after completion of the test. In these circumstances, communication with the management station invoking the test may be lost until after completion of the test. An agent is not required to support such tests. However, if such tests are supported, then the agent should make every effort to transmit a response to the request which invoked the test prior to losing communication. When the agent is restored to normal service, the results of the test are properly made available in the appropriate objects. Note that this requires that the ifIndex value assigned to an interface must be unchanged even if the test causes a reboot. An agent must reject any test for which it cannot, perhaps due to resource constraints, make available at least the minimum amount of information after that test completes.

ifXTableSEQUENCEnot-accessible
.1.3.6.1.2.1.31.1.1

A list of interface entries. The number of entries is given by the value of ifNumber. This table contains additional objects for the interface table.

linkDownNOTIFICATION-TYPEnot-accessible
.1.3.6.1.6.3.1.1.5.3

A linkDown trap signifies that the SNMP entity, acting in an agent role, has detected that the ifOperStatus object for one of its communication links is about to enter the down state from some other state (but not from the notPresent state). This other state is indicated by the included value of ifOperStatus.

linkUpNOTIFICATION-TYPEnot-accessible
.1.3.6.1.6.3.1.1.5.4

A linkUp trap signifies that the SNMP entity, acting in an agent role, has detected that the ifOperStatus object for one of its communication links left the down state and transitioned into some other state (but not into the notPresent state). This other state is indicated by the included value of ifOperStatus.

ifComplianceunknownnot-accessible
.1.3.6.1.2.1.31.2.2.1

A compliance statement defined in a previous version of this MIB module, for SNMP entities which have network interfaces.

ifCompliance2unknownnot-accessible
.1.3.6.1.2.1.31.2.2.2

A compliance statement defined in a previous version of this MIB module, for SNMP entities which have network interfaces.

ifCompliance3unknownnot-accessible
.1.3.6.1.2.1.31.2.2.3

The compliance statement for SNMP entities which have network interfaces.

ifCounterDiscontinuityGroupunknownnot-accessible
.1.3.6.1.2.1.31.2.1.13

A collection of objects providing information specific to interface counter discontinuities.

ifFixedLengthGroupunknownnot-accessible
.1.3.6.1.2.1.31.2.1.2

A collection of objects providing information specific to non-high speed (non-high speed interfaces transmit and receive at speeds less than or equal to 20,000,000 bits/second) character-oriented or fixed-length-transmission network interfaces.

ifGeneralGroupunknownnot-accessible
.1.3.6.1.2.1.31.2.1.1

A collection of objects deprecated in favour of ifGeneralInformationGroup.

ifGeneralInformationGroupunknownnot-accessible
.1.3.6.1.2.1.31.2.1.10

A collection of objects providing information applicable to all network interfaces.

ifHCFixedLengthGroupunknownnot-accessible
.1.3.6.1.2.1.31.2.1.3

A collection of objects providing information specific to high speed (greater than 20,000,000 bits/second) character- oriented or fixed-length-transmission network interfaces.

ifHCPacketGroupunknownnot-accessible
.1.3.6.1.2.1.31.2.1.5

A collection of objects providing information specific to high speed (greater than 20,000,000 bits/second but less than or equal to 650,000,000 bits/second) packet-oriented network interfaces.

ifNumberInteger32read-only
.1.3.6.1.2.1.2.1

The number of network interfaces (regardless of their current state) present on this system.

ifOldObjectsGroupunknownnot-accessible
.1.3.6.1.2.1.31.2.1.12

The collection of objects deprecated from the original MIB- II interfaces group.

ifPacketGroupunknownnot-accessible
.1.3.6.1.2.1.31.2.1.4

A collection of objects providing information specific to non-high speed (non-high speed interfaces transmit and receive at speeds less than or equal to 20,000,000 bits/second) packet-oriented network interfaces.

ifRcvAddressGroupunknownnot-accessible
.1.3.6.1.2.1.31.2.1.7

A collection of objects providing information on the multiple addresses which an interface receives.

ifStackGroupunknownnot-accessible
.1.3.6.1.2.1.31.2.1.9

The previous collection of objects providing information on the layering of MIB-II interfaces.

ifStackGroup2unknownnot-accessible
.1.3.6.1.2.1.31.2.1.11

A collection of objects providing information on the layering of MIB-II interfaces.

ifStackLastChangeTimeTicksread-only
.1.3.6.1.2.1.31.1.6

The value of sysUpTime at the time of the last change of the (whole) interface stack. A change of the interface stack is defined to be any creation, deletion, or change in value of any instance of ifStackStatus. If the interface stack has been unchanged since the last re-initialization of the local network management subsystem, then this object contains a zero value.

More MIBs from Default

Browse all DefaultMIBs →