My guess is this is a natural result of net-snmp bound to the default 0.0.0.0 listening interface.
Under these circumstances I believe your experience is perfectly "normal". My understandning is that the deamon builds a packet reply, and hands it back to the kernel with the address of the arriving socket (0.0.0.0), and the kernel computes the actual source address on the wire based on the primary address of the interface with the best route to the destination, if the packet is handed to it with a 0.0.0.0 source. The workround would be to get net-snmp to listen on specific interfaces only. e.g. this sort of thing in snmpd.conf: # Enable this line to listen on specific interfaces by ip # Ports to listen on - instead of just listening on [EMAIL PROTECTED] agentaddress [EMAIL PROTECTED],[EMAIL PROTECTED] In this case the address of the arriving socket for any given packet is explicit ( i.e. not 0.0.0.0 ), and hence the reply packet's source is independent of the kernel routing table. The other nice side-effect of this is that the listener will completely ignore broadcast and multicast SNMP request packets, such as those issued by the wretched HP JetAdmin Client, which in turn means that you don't get spurious Auth Traps as a result of such nonsense. Ted > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf > Of Jeff McCombs > Sent: Monday August 09 2004 18:37 > To: [EMAIL PROTECTED] > Subject: Net-snmpd sending responses from wrong IP? > > Hey gang, > > Hopefully this hasn't been asked before. I did a quick > search of the > archives, but didn't really find anything (that doesn't mean > it's not there, > just that I'm not intuitive enough to find it!) > > I've got 2 Sun V480s (Solaris 9) configured as an > active/passive Oracle > 9 DB cluster (via Veritas). The systems (oracle-1, and oracle-2) are > configured so that whichever one is the 'active' node, answers to > 'oracle.mydomain.com' by bringing up a sub-interface (ce:1 in > this case). > The active system also mounts the oracle storage partitions > (/u01 - /u09) > > In trying to gather statistics from both 'oracle-1', > 'oracle-2', and > 'oracle'. The problem is, is that SNMP queries sent to the > sub interface of > the active node always come back from the physical IP and not > the virtual > one.... Ugh, this difficult to explain. > > for example: > > oracle-1's IP address is 10.0.0.1 > oracle-2's IP address is 10.0.0.2 > oracle's IP address is 10.0.0.3 > > On the system: > oracle-1 (active): > ce0 = 10.0.0.1 > ce0:1 = 10.0.0.3 > oracle-2 (passive): > ce0 = 10.0.0.2 > > If I issue a snmpwalk against 10.0.0.3, the SNMP responses from > net-snmpd come back from 10.0.0.1, Thus snmpwalk, expecting a > response from > the .3 address, times out. > > The snmp.conf file is pretty basic, and is configured the > same on both > systems. > > Anyone have any ideas on how to make it stop doing this? > If there is a > better way to do this, I'm open to suggestions. > > Sorry if this is confusing, I'm getting a little confused > trying to > explain it all... :) > > -Jeff > > -- > Jeff McCombs NIC Solutions > [EMAIL PROTECTED] 1477 Chain Bridge Rd, St 101 > (703) 909-3277 McLean, VA 22101 > "NIC - The people behind eGovernment" > --- > I think computer viruses should count as life. I think it > says something > about human nature that the only form of life we have created > so far is > purely destructive. We've created life in our own image. > -- Stephen Hawking > > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by OSTG. Have you noticed the > changes on > Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now, > one more big change to announce. We are now OSTG- Open Source > Technology > Group. Come see the changes on the new OSTG site. www.ostg.com > _______________________________________________ > 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 > > ************************************************************************************************ This E-mail message, including any attachments, is intended only for the person or entity to which it is addressed, and may contain confidential information. If you are not the intended recipient, any review, retransmission, disclosure, copying, modification or other use of this E-mail message or attachments is strictly forbidden. If you have received this E-mail message in error, please contact the author and delete the message and any attachments from your computer. You are also advised that the views and opinions expressed in this E-mail message and any attachments are the author's own, and may not reflect the views and opinions of FLEXTECH Television Limited. ************************************************************************************************ ------------------------------------------------------- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 _______________________________________________ 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
