multiple interfaces
Serge Aleynikov
serge@REDACTED
Fri Aug 19 17:11:50 CEST 2005
Thank you, this is exactly what I was looking for. Just for the sake of
completeness of this thread, based on your reply I found:
The kernel/src/inet_tcp_dist.erl module checks three environment variables:
{inet_dist_use_interface, IP::ip_address()}
- defines the IP address to bind to
{inet_dist_listen_min, FirstPort::integer()}
{inet_dist_listen_max, LastPort::integer()}
- define the First...Last port range for the listener socket
Serge
Chandrashekhar Mullaparthi wrote:
> The kernel application has an enironment variable which it sets:
> inet_dist_use_interface which you can use to specify which interface it
> should bind to.
>
> cheers
> Chandru
>
> On 19 Aug 2005, at 15:08, Serge Aleynikov wrote:
>
>> Hi,
>>
>> Is there a way to force the erlang distribution on a host with two
>> network interfaces to bind only to one IP?
>>
>> I am trying to test how network partitioning is handled by my
>> application, and for this reason I'd like to ensure that a shut down
>> of a net interface used by Erlang doesn't kill my terminal session
>> connected through the second interface.
>>
>> I'm hoping there is some {ip,IPAddress} configuration parameter
>> similar to the one in gen_tcp that can be given at startup, but I
>> don't see anything relevant in the documentation.
>>
>> Thanks.
>>
>> Serge
>>
>
>
--
Serge Aleynikov
R&D Telecom, IDT Corp.
Tel: (973) 438-3436
Fax: (973) 438-1464
serge@REDACTED
More information about the erlang-questions
mailing list