2010/1/14 Matthew Dougherty <[email protected]> > # ifconfig -a |egrep "inet|eth|lo" |grep -v inet6 > eth0 Link encap:Ethernet HWaddr 00:06:5B:01:13:E1 > inet addr:192.168.1.150 Bcast:192.168.1.255 Mask:255.255.255.0 > eth0:0 Link encap:Ethernet HWaddr 00:06:5B:01:13:E1 > inet addr:192.168.199.9 Bcast:192.168.199.255 Mask:255.255.255.0 > lo Link encap:Local Loopback > inet addr:127.0.0.1 Mask:255.0.0.0 > > > # snmpwalk -v 1 -c public 192.168.1.150 ifDescr > IF-MIB::ifDescr.1 = STRING: lo > IF-MIB::ifDescr.2 = STRING: eth0 > > # snmpwalk -v 1 -c public 192.168.1.150 ipAdEntIfIndex > IP-MIB::ipAdEntIfIndex.127.0.0.1 = INTEGER: 1 > IP-MIB::ipAdEntIfIndex.192.168.1.150 = INTEGER: 2
Hmmmm.... I've just tried something similar, and I *do* see the second address in the ipAddrTable: $ ifconfig eth0 .... inet addr:10.30.3.1 eth0:test2 .... inet addr:10.30.3.99 lo .... inet addr:127.0.0.1 $ snmpwalk localhost ifName IF-MIB::ifName.1 = STRING: lo IF-MIB::ifName.2 = STRING: eth0 $ snmpwalk ipAddrTable IP-MIB::ipAdEntAddr.10.30.3.1 = IpAddress: 10.30.3.1 IP-MIB::ipAdEntAddr.10.30.3.99 = IpAddress: 10.30.3.99 IP-MIB::ipAdEntAddr.127.0.0.1 = IpAddress: 127.0.0.1 IP-MIB::ipAdEntIfIndex.10.30.3.1 = INTEGER: 2 IP-MIB::ipAdEntIfIndex.10.30.3.99 = INTEGER: 2 IP-MIB::ipAdEntIfIndex.127.0.0.1 = INTEGER: 1 The secondary interface does not appear in the ifTable, because it isn't listed separately in /proc/net/dev. But it's definitely present in the ipAddrTable That's with 5.4.2.1, using the newer MfD-based rewrites. > Is there a way to tell net-snmp 5.0.9 on RedHat ES 3 to show subinterface > IPs. The 5.0.x line is *very* old, and has not been supported for several years. The IP-MIB implementation has been completely re-written since then. I suggest you upgrade to a newer version of the agent. Dave ------------------------------------------------------------------------------ Throughout its 18-year history, RSA Conference consistently attracts the world's best and brightest in the field, creating opportunities for Conference attendees to learn about information security's most important issues through interactions with peers, luminaries and emerging and established companies. http://p.sf.net/sfu/rsaconf-dev2dev _______________________________________________ Net-snmp-users mailing list [email protected] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
