On Mon, 20 Dec 2004 15:45:50 -0800 Fong wrote:
FT> How can I set agent 's the source IP address for its response to the
FT> same address that it was queried on?

You can't, if you use the default 'listen on all interfaces' configuration. You
can use the clientAddress directive in snmpd.conf to select a single address to
always use:

        [snmp] clientaddr 10.0.0.42

If you want the ip to match the ip a packet was received on, you have to
explicity bind to all addresses that you want to listen on:

        snmpd udp:10.0.0.42,udp:10.0.1.42,udp:10.0.2.42,...

Of course, this means that if any new interfaces come up, snmpd can't receive
requests on those new interfaces.

-- 
Robert Story; NET-SNMP Junkie
Support: <http://www.net-snmp.org/> <irc://irc.freenode.net/#net-snmp>
Archive: <http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-coders>

You are lost in a twisty maze of little standards, all different. 


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to