AP> details, but what I would like to do is to be able to set up several 
AP> IP-aliases on one machine, and let the snmp daemon reply differently 
AP> depending on which IP-alias a snmp request is sent to.

You'll have to do a little coding. The default behaviour is to bind to udp:161.
That is, port 161 on any inteface.  What you want to do is specify and bind to
each interface individually (udp:192.168.1.0:161,udp:192.168.1.1:161,...). Then
you'll also have to write the code to save the information about what interface
the packet came in on (an ioctl on the socket fd might work, too).

The next question would be how to let the mib module know about which interface
the request arrived on.

It probably shouldn't be to difficult to tie these two together with contexts.

I think what you want to do can be done, but it's not going to work
out-of-the-box, and there's not going to be any existing examples.

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

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


-------------------------------------------------------
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

Reply via email to