Tech Support > Computer Hardware > Routers > ifIndex 0 - problem
ifIndex 0 - problem
Posted by kbloomfield@yahoo.com on May 6th, 2008


Hello,

I have inherited a management system that is barfing on some cisco
72xx and 76xx routers when it finds an ifIndex = 0, rather than
ifIndex =1 or 10.
I gather that ifIndex =0 is not allowed, but I am not sure by who or
what - so I dont know if it is reasonable for the NMS to ignore
ifIndex = 0 or not.
Nor do I know how the indexes got set to 0 in the ist place, nor hwta
the fix might be (to make all indexes 1 or more.
Can someone hep me out?

TIA

Tony

Posted by Bod43@hotmail.co.uk on May 7th, 2008


On 6 May, 20:10, kbloomfi...@yahoo.com wrote:


As I understand it IF indices are set at boot time
automatically and in principle can be re-calculated
at any time thereafter. e.g. if a card is inserted.

More recent IOS is much better behaved
regarding IF indices and does a better job of
maintaining consistent mapping between
indices and interfaces.

It would be surprising if cisco had done anything that
deviated from the standard. Very surprising.

I don't think that it is possible to manually choose
IF indices.

You can check the IF indices for a device yourself
by using getif.exe and browsing to
.iso.org.dod.internet.mgmt.mib-2.interfaces.ifTable.ifEntry.ifIndex

www.wtcs.org/snmp4tpc/getif.htm
Its old code and has limitations but the basics work well.
Its the only free mib browser that I know of.





Posted by kbloomfield@yahoo.com on May 11th, 2008


On 7 May, 14:32, Bo...@hotmail.co.uk wrote:
Thanks for your reply. After some digging with a mib-browser along the
lines you suggest I confirm you are right about the ifIndex being
correct.
The problem it seems is ipAdEntIfIndex. On each of .routers that
generates a problem message, when interogated by the management
system, there is a ipAdEntIfIndex =0.
<sigh> I had a look at the IP-MIB and IF-MIB and I think that there
should not be an ipAdEntIfIndex =0. unless there is an ifIndex =0
(which there is not and that wouldbe wrong anyway).
But I am not sure.

Can anyone clarify this,plz?

TIA

Kevin

Posted by Merv on May 11th, 2008



Newer versions of IOS allow one to display the SNMP ifindex values

HUB#show snmp mib ifmib ifIndex

Ethernet0/0: Ifindex = 1
Loopback0: Ifindex = 5
Null0: Ifindex = 4
VoIP-Null0: Ifindex = 3
FastEthernet1/0: Ifindex = 2
Loopback999: Ifindex = 6


You can check the Ifindex values displayed against the Ifindex values
being received by NMS system

Posted by kbloomfield@yahoo.com on May 12th, 2008


On 11 May, 22:47, Merv <merv.hr...@rogers.com> wrote:

Probably it was not clear in my posting but it is the ipAdEntIfIndex
which are wrong ie there are ipAdEntIfIndex=0 returned by an snmpwalk.
The ifIndexes are fine - they start from 1..

Kevin

Posted by Merv on May 12th, 2008


On May 12, 7:15 am, kbloomfi...@yahoo.com wrote:

Time to give the Cisco TAC a call