Struggling with the network configuration?

26 May 2009 by cdespoix

Set the parameters proactive.net.* to limit the possible addresses ProActive runtime can bind to.

A ProActive runtime is only able to bind to one and only one InetAddress. Usually, this limitation is not seen by the user and no special configuration is required. ProActive tries to use the most suitable network address available. But sometimes, the right IP address cannot be elected or the user wants to use a given IP address. In such case, you can specify the IP address to use by using theses properties: proactive.hostname, proactive.net.interface, proactive.net.netmask, proactive.net.nolocal, proactive.net.noprivate.
IPv6 can be enabled by setting the proactive.net.disableIPv6 property to false. By default ProActive will not use IPv6 addresses.
If none of the proactive.hostname, proactive.net.interface, proactive.net.netmask, proactive.net.nolocal, proactive.net.noprivate properties is defined, then the following algorithm is used to elect an IP address:
• If a public IP address is available use it. If several ones are available, one is chosen randomly.
• If a private IP address is available use it. If several ones are available, one is chosen randomly.
• If a loopback IP address is available use it. If several ones are available, one is chosen randomly.
• If no IP address is available at all. Then the runtime exits with an error message.
If proactive.hostname is set, then the value returned by InetAddress.getByName(proactive.hostname) is elected. If no IP address is found, then the runtime exits with an error message.
If proactive.hostname is not set, and at least one of the proactive.net.interface, proactive.net.netmask, proactive.net.nolocal, proactive.net.noprivate is set, then one of the addresses matching all the requirements is elected. Requirements are:
• If proactive.net.interface is set, then the IP address must be bound to the given network interface.
• If proactive.net.netmask is set, then the IP address must match the given netmask.
• If proactive.net.nolocal is set, then the IP address must not be a loopback address.
• If proactive.net.noprivate is set, then the IP address must not be a private address.
If no address matches theses criteria, the runtime exits with an error message.





No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URL

Leave a comment

IMPORTANT! To be able to proceed, you need to solve the following simple math (so we know that you are a human) :-)

What is 4 + 11 ?
Please leave these two fields as-is:
© 2010 ACTIVEEON S.A.S. All right reserved - Online Privacy Policy