> >>>>> On Wed, 08 Feb 2006 14:40:51 -0500, "Michael P. Soulier" <[EMAIL > >>>>> PROTECTED]> said: > > Michael> I've run across an issue on Linux, where an aliased > Michael> interface is not showing up in the IF-MIB output. > > You might try a later release (EG 5.3.0.1). But, aliased interfaces > still won't report packet counts since the kernel itself doesn't > report them.... Notice in your ifconfig output how much less > information is available for aliased interfaces.
I'm running into the same problem with 5.3.0.1. I dug into it a little bit bit and it appears that net-snmp iterates through /proc/net/dev to find interfaces, and that only contains information on physical interfaces. In my case, I'm just looking for basic IP information to do configuration verification, so I'm less concerned about the per-interface statistics. net-snmp has a configure option to use mibII/interfaces instead, which apparently uses an ioctl interface to find interface information which may show physical interfaces, but there are issues with compilation that appear to be related to recent rewrites (same function implemented in two places with different parameters (Interface_Scan_Next, at least), and incomplete structure definitions). I haven't dug into this too deeply yet, so I'm not sure what should win, or if mibII/interfaces is still expected to build under linux, or really even if it will list the aliased interfaces. FWIW, Solaris 10 and 5.3.0.1 shows aliased interfaces. I'm guessing that it's because it's using the non-/proc/net/dev code. It also looks like the IP-MIB implementation doesn't quite match up with IF-MIB. For example, on my test box, I have: eth0 10.1.1.114 eth0:0 10.255.254.1 eth1 no address lo 127.0.0.1 and I see: IF-MIB::ifDescr.1 = STRING: lo IF-MIB::ifDescr.2 = STRING: eth0 IF-MIB::ifDescr.3 = STRING: eth1 IF-MIB::ifDescr.4 = STRING: sit0 IP-MIB::ipAdEntIfIndex.10.1.1.114 = INTEGER: 2 IP-MIB::ipAdEntIfIndex.10.255.254.1 = INTEGER: 2 IP-MIB::ipAdEntIfIndex.127.0.0.1 = INTEGER: 1 And it seems like IP-MIB::ipAdEntIfIndex.10.255.254.1 shouldn't be showing up at all. FWIW, I'm running rhws4-32 and my own build of net-snmp 5.3.0.1, though I don't see why that should matter. Any suggestion for direction for resolving this would be helpful. I'll sent back a patch if/when I get it straightened out. thanks, -Todd ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
