Dear Net-Snmp coders: I am using net-snmp v5.8 with ipv6 enabled. Trying to get interface's ipv6 addresses. I tried a couple of oids but could not figure out how to map the ifindex to the ipv6 address assigned to the interfaces. All interfaces have both ipv4 and ipv6 addresses assigned.
1. The ipv6AddrPrefixTable documented in http://www.net-snmp.org/docs/mibs/ipv6MIB.html was not available: snmpwalk -v 2c -c public x.x.x.x .1.3.6.1.2.1.55.1.7 IPV6-MIB::ipv6AddrPrefixTable = No Such Object available on this agent at this OID 2. ipAddressTable (1.3.6.1.2.1.4.34) has entries of ipv6 prefix: snmpwalk -v 2c -c public x.x.x.x .1.3.6.1.2.1.4.34 IP-MIB::ipAddressIfIndex.ipv4."243.0.3.129" = INTEGER: 230 IP-MIB::ipAddressIfIndex.ipv6."fe:80:00:00:00:00:00:00:02:e0:ec:ff:fe:e1:5e:44" = INTEGER: 230 IP-MIB::ipAddressType.ipv4."243.0.3.129" = INTEGER: unicast(1) IP-MIB::ipAddressType.ipv6."fe:80:00:00:00:00:00:00:02:e0:ec:ff:fe:e1:5e:44" = INTEGER: unicast(1) ... But I don't see ipAddressPrefix ( .1.3.6.1.2.1.4.34.5) from the output. 3. Also tried ipAdEntIfIndex ( 1.3.6.1.2.1.4.20.1.2) snmpwalk -v 2c -c public x.x.x.x 1.3.6.1.2.1.4.20.1.2 ... IP-MIB::ipAdEntIfIndex.243.0.3.129 = INTEGER: 230 ... But it only has ipv4 addresses. What is the right approach to get the ipv6 address from the interface? Thanks and best regards, Michael
_______________________________________________ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/net-snmp-coders