VMware Communities
vkokodyn
Contributor
Contributor

How to map IP addresses with Interfaces by ifIndex

Hi everyone,


I poll IP addresses and Interfaces for VeloCloud EDGE6X0 device via SNMP OIDs 1.3.6.1.2.1.4.20.1 and 1.3.6.1.2.1.2.2 in accordance.
For example, ipAdEntIfIndex (1.3.6.1.2.1.4.20.1.2) returns the following values 2, 1, 18, 20, 17, 16 and ifIndex (1.3.6.1.2.1.2.2.1) returns 16777218, 16777219, 16777220, 16777221, 16777222, 16777223, 16777224, 16777225.

How can I map IP address with Interface by ifIndex, if it is completely different? Is there any other SNMP OIDs I could use?


Please advice.

Reply
0 Kudos
4 Replies
priyamurthy
VMware Employee
VMware Employee

Hi vkokodyn,

For this query, I have reached out to subject matter experts in our team. 

Will get back to you as soon as we have a response. 

 

Thank you,

Priya

Reply
0 Kudos
priyamurthy
VMware Employee
VMware Employee

The ifindex displayed by both OIDs is expected to match and SNMP request is served by snmpd.

Could you let us know the version of snmpd that you are running?

 

Thank you,

Priya

Reply
0 Kudos
vkokodyn
Contributor
Contributor

Hi Priya,

Where/how can I check the snmpd version?

 

Thank you,

Volodymyr

Reply
0 Kudos
priyamurthy
VMware Employee
VMware Employee

Hi Volodymyr,

On the edged box the below command should give the o/p
edge:b1-edge1:~# snmpd -v

NET-SNMP version:  5.8
Web:               http://www.net-snmp.org/
Email:             net-snmp-coders@lists.sourceforge.net

Thank you,
Priya

Reply
0 Kudos