ifIndex 0 - problem

ifIndex 0 - problem

NewsGroups | Search | Tools
 comp.dcom.sys.cisco  Post an article  get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content  add this group's latest topics to your Google content  YahooMyWeb Yahoo!  Google Google  Windows Live Favorites Windows Live  del.icio.us del.icio.us  digg digg  Add to Netscape Netscape
Subject Author Date
ifIndex 0 - problem kbloomfield 05-06-2008
Posted by on May 6, 2008, 2:10 pm
If you were  Registered and logged in, you could reply and use other advanced thread options
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

home networking made easy, greater protection, less stress, introducing nm 5.0, 728x90
Posted by on May 7, 2008, 9:32 am
If you were  Registered and logged in, you could reply and use other advanced thread options
On 6 May, 20:10, kbloomfi...@yahoo.com wrote:
> Hello,
>
> I have =A0inherited a management system that is barfing on some cisco
> 72xx and 76xx routers when it finds an ifIndex =3D 0, rather than
> ifIndex =3D1 or 10.
> I gather that ifIndex =3D0 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 =3D 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?



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
=2Eiso.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 on May 11, 2008, 1:10 pm
If you were  Registered and logged in, you could reply and use other advanced thread options
On 7 May, 14:32, Bo...@hotmail.co.uk wrote:
> On 6 May, 20:10, kbloomfi...@yahoo.com wrote:
>
> > Hello,
>
> > I have =A0inherited a management system that is barfing on some cisco
> > 72xx and 76xx routers when it finds an ifIndex =3D 0, rather than
> > ifIndex =3D1 or 10.
> > I gather that ifIndex =3D0 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 =3D 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?
>
> 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.

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 =3D0.
<sigh> I had a look at the IP-MIB and IF-MIB and I think that there
should not be an ipAdEntIfIndex =3D0. unless there is an ifIndex =3D0
(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 11, 2008, 5:47 pm
If you were  Registered and logged in, you could reply and use other advanced thread options

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 on May 12, 2008, 7:15 am
If you were  Registered and logged in, you could reply and use other advanced thread options
> 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
Thanks Merv,

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

Similar ThreadsPosted
IOS to IOS VPN Problem February 11, 2004, 4:42 pm
Nat/Pat-problem with pix 501 July 22, 2004, 9:50 am
x25 problem August 16, 2004, 12:21 pm
Ssh problem on a pix 501 December 18, 2004, 8:04 pm
PIX Problem February 10, 2005, 11:45 pm
Problem with STM-1 POS March 1, 2005, 8:46 pm
ATM FR PPP Problem March 9, 2005, 3:49 pm
i need some help with an IRB problem please March 28, 2005, 5:02 pm
ICS problem help please...... March 30, 2005, 7:08 am
Problem with DMZ April 1, 2005, 10:17 am

other useful resources:
The Federal Communications Commission (FCC)
Telecommunications Industry Association
Electronic and Software Security Products and Services
International Telecommunication Union

Custom CGI Perl and PHP programming by 1-Script.com

Contact Us | Privacy Policy
The site map in XML format XML site map