The ifindex reported indices and the ipAdEntIfIndex reported indices might not match after upgrade to 6.x

FAQ ID:    FAQ1877
Version:    1.0
Status:    Published
Published date:    02/02/2012


Problem Description

The ifindex reported indices and the ipAdEntIfIndex reported indices do not match. By definition:

From RFC 2011:


"The index value which uniquely identifies the interface to which this entry is applicable.  The interface identified by a particular value of this index is the same interface as identified by the same value of RFC 1573's ifIndex."

From RFC 1573:

"A unique value, greater than zero, for each interface.  It is recommended that values are assigned contiguously starting from 1.  The value for each interface sub-layer must remain constant at least from one re-initialization of the entity's network management system to the next re-initialization."

From these definitions it would seem that ipAdEntIfIndex and ifIndex indices should match up. However they do not. This might case issues for customers to monitor configured interfaces for up/down status.


The ipAdEntIfIndex indeed reports a wrong value.

However, it is marked "deprecated" in the IP-MIB, as all the other members of the ipAddrTable.

The correct one to use is ipAddressIfIndex of the ipAddressTable (which has the status "current") of the same MIB. We tested it, and the results reported were consistent and correct:

 For example:

For a SG configured with ip address of on the 1:0 interface, we get the following:

host:~$ snmpbulkwalk -v2c -Os -c public ifindex
ifIndex.1 = INTEGER: 1
ifIndex.2 = INTEGER: 2
ifIndex.3 = INTEGER: 3
ifIndex.4 = INTEGER: 4 <<<<<<<<<<<

host:~$ snmpbulkwalk -v2c -Os -c public ifdescr
ifDescr.1 = STRING: loopback
ifDescr.2 = STRING: 0:0
ifDescr.3 = STRING: 1:1
ifDescr.4 = STRING: 1:0 <<<<<<<<<<<

host:~$ snmpbulkwalk -v2c -Os -c public ipaddressifindex
ipAddressIfIndex.ipv4."" = INTEGER: 4 <<<<<<<<<<<Correct Index

Rate this Page

Please take a moment to complete this form to help us better serve you.

Did this document help answer your question?
If you are finished providing feedback, please click the RATE CONTENT button. Otherwise, please add more detail in the following text box and then click RATE CONTENT.

Your response will be used to improve our document content.

Ask a Question