Dear Chaim, My suggestion would be.
Put the IP Address in some property file. then do the following ResourceBundle msgBundle = ResourceBundle.getBundle("propertyFile_PATH"); String nic_ip=msgBundle.getString("SPECIFIED_NIC_IP"); InetAddress inetAddress= InetAddress.getByName(nic_ip); UdpAddress udp=new UdpAddress(inetAddress,0); TransportMapping transport = new DefaultUdpTransportMapping(udp); Snmp snmp = new Snmp(transport); Thanks & Regards keepFaith, Jaikar Gupta On Tue, Nov 9, 2010 at 12:38 PM, Chaim Turkel - HQ <cha...@gilat.com> wrote: > I need to add support for Vlans. > In the case the machine has multiple nic's I needs to option to send the > snmp packit via the correct nic and cannot use the default gateway, > How can I do this? > > Chaim Turkel > > Network Management Systems > Gilat Network Systems > Tel: +972-3-929-3142 > > > IMPORTANT - This email and any attachments is intended for the above named > addressee(s), and may contain information which is confidential or > privileged. If you are not the intended recipient, please inform the sender > immediately and delete this email: you should not copy or use this e-mail > for any purpose nor disclose its contents to any person. > > _______________________________________________ > SNMP4J mailing list > SNMP4J@agentpp.org > http://lists.agentpp.org/mailman/listinfo/snmp4j > _______________________________________________ SNMP4J mailing list SNMP4J@agentpp.org http://lists.agentpp.org/mailman/listinfo/snmp4j