Forum Discussion

epaalx's avatar
epaalx
Icon for Cirrus rankCirrus
Jul 05, 2011

SNMP OID to retrieve MAC addresses for neighboring nodes for non-default Routing Domain

I need to (snmp) retrieve MAC addresses for neighboring nodes for all Routing Domain. I've found the following OIDs:

 

 

.iso.org.dod.internet.mgmt.mib-2.ip.ipNetToPhysicalTable - " The IP Address Translation table used for mapping from IP addresses to physical addresses.

 

.iso.org.dod.internet.mgmt.mib-2.ipv6MIB.ipv6MIBObjects.ipv6NetToMediaTable - "The IPv6 Address Translation table used for mapping from IPv6 addresses to physical addresses.

 

and, am able to retrieve MAC addresses for neighboring nodes in default Routing Domain using:

 

snmpwalk -M /usr/share/snmp/mibs -v2c -c {my_community_string} localhost IP-MIB::ipNetToPhysicalPhysAddress

 

IP-MIB::ipNetToPhysicalPhysAddress.5.ipv4."127.2.0.1" = STRING: 0:1:d7:98:13:c0

 

IP-MIB::ipNetToPhysicalPhysAddress.6.ipv4."127.1.1.2" = STRING: 0:1:23:45:67:0

 

IP-MIB::ipNetToPhysicalPhysAddress.6.ipv4."127.1.1.3" = STRING: 0:1:23:45:67:1

 

IP-MIB::ipNetToPhysicalPhysAddress.6.ipv4."127.1.1.4" = STRING: 0:1:23:45:67:2

 

IP-MIB::ipNetToPhysicalPhysAddress.6.ipv4."127.1.1.5" = STRING: 0:1:23:45:67:3

 

:

 

 

 

However, that doesn't help me with nodes in non-default Routing Domains:

 

snmpwalk -M /usr/share/snmp/mibs -v2c -c {my_community_string} localhost IPV6-MIB::ipv6NetToMediaPhysAddress

 

IPV6-MIB::ipv6NetToMediaPhysAddress = No Such Object available on this agent at this OID

 

 

 

 

Would be grateful to anyone who can suggest an OID to walk,

 

R's, Alex

 

 

 

[PS. It's not IPV6-MIB::ipv6IfPhysicalAddress.]