[Bug 270713] Re: [SRU] snmpd: error getting netmask for interface

Chuck Short chuck.short at canonical.com
Wed Sep 16 13:39:08 BST 2009


statement explaining the impact

Net-snmp in all versions of Ubuntu up until Karmic have this problem.
This is caused by a bug in net-snmp and ip aliasing. When a user tries
to use an interface with the physical interface is unconfigured and an
ip alias is configured for the same interface the following will be
spewed out in /var/log/syslog:

snmpd[27523]: error getting netmask for interface 2

How this bug has been addresses:

The bug has been fixed in the SVN tree for net-snmp at:

http://net-snmp.svn.sourceforge.net/viewvc/net-snmp/trunk/net-
snmp/agent/mibgroup/ip-
mib/data_access/ipaddress_ioctl.c?r1=16381&r2=16778

I have backported the patch to Karmic and tested it myself, its now
fixed in Karmic. I have attached the patch to this bug report as well.

How to reproduce:

1. In a virtual machine, add a second ethernet interface.
2. Create an ipalias such as the following:
          sudo ifconfig ethX:1 xxx.xxx.xxx.xxx netmask 255.255.255.0 up
3. Install and configure snmpd and snmp
4. Run snmpd and check the output of /var/log/syslog.

Impact:

There should be no regression potential with this patch.

If you have any question please let me know.

Regards
chuck

-- 
[SRU] snmpd: error getting netmask for interface
https://bugs.launchpad.net/bugs/270713
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to net-snmp in ubuntu.



More information about the Ubuntu-server-bugs mailing list