---
type: Sensor Reference
title: "SNMP Interface OIDs: IF-MIB ifTable & ifXTable Reference"
description: "The complete SNMP interface OID reference — ifTable and ifXTable columns for octets, errors, discards, status and speed, with 32-bit vs 64-bit counters."
resource: "https://snmp-monitoring.info/sensors/interface/"
tags: [sensors]
timestamp: 2026-07-11T00:00:00Z
---

# SNMP Interface OIDs: IF-MIB ifTable & ifXTable Reference

The complete SNMP interface OID reference — ifTable and ifXTable columns for octets, errors, discards, status and speed, with 32-bit vs 64-bit counters.

## Related concepts

- Up: [SNMP Sensors & OID Catalog: Every Metric You Can Monitor](/sensors/index.md)

## Frequently asked questions

### What is the OID for interface traffic?

Inbound bytes are ifInOctets (1.3.6.1.2.1.2.2.1.10) or, on fast links, the 64-bit ifHCInOctets (1.3.6.1.2.1.31.1.1.1.6); outbound are ifOutOctets / ifHCOutOctets. All are cumulative counters, so you diff two reads to get a rate.

### What OID is interface status?

ifOperStatus (1.3.6.1.2.1.2.2.1.8) is the operational link state — up, down, or testing. Pair it with ifAdminStatus (1.3.6.1.2.1.2.2.1.7), which says whether the port is configured up or was administratively shut, so you can tell a real fault from an intentional shutdown.

### What's the difference between 32-bit and 64-bit interface counters?

The 32-bit ifInOctets/ifOutOctets in ifTable are Counter32 and can wrap past their maximum in seconds on gigabit-plus links, corrupting rate math. The 64-bit ifHCInOctets/ifHCOutOctets in ifXTable (SNMPv2c and up) are Counter64 and effectively never wrap — use them on fast links.

### What is ifIndex?

ifIndex is the integer that identifies an interface across every IF-MIB column — ifName, ifOperStatus, ifHCInOctets and the rest all share it. It isn't the physical port number and isn't guaranteed stable across reboots or hardware changes, so map it to a name each time rather than hard-coding it.

## Source

Concept generated from https://snmp-monitoring.info/sensors/interface/ — the SNMP Monitoring vendor-neutral knowledge base. Content is limited to what that page states (no external claims added here).
