You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by Tolga Kavukcu <ka...@gmail.com> on 2016/10/03 17:16:12 UTC

Two network interface on os

Hi everyone,

When initializing topology how can i force ignite to use one of my network
interface cards.

Lets say i have two interfaces
eth0 192.168.1.103
eth1 172.10.2.1

I want to use only eth1. From other node when i call node.addresses() i
want to get only one ip.

Thanks.

-- 

*Tolga KAVUKÇU*

Re: Two network interface on os

Posted by rodrigo thread <ro...@gmail.com>.
you may be setting the ip static, as follows

<bean class="org.apache.ignite.configuration.IgniteConfiguration">
  ...
  <property name="discoverySpi">
    <bean class="org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi">
      <property name="ipFinder">
        <bean
class="org.apache.ignite.spi.discovery.tcp.ipfinder.vm.TcpDiscoveryVmIpFinder">
          <property name="addresses">
            <list>
              <value>1.2.3.4</value>
              
              
              <value>1.2.3.5:47500..47509</value>
            </list>
          </property>
        </bean>
      </property>
    </bean>
  </property>
</bean>

reference http://apacheignite.gridgain.org/v1.1/docs/cluster-config



--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Two-network-interface-on-os-tp8058p8059.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Re: Two network interface on os

Posted by Tolga Kavukcu <ka...@gmail.com>.
Hi Valentin,

Your suggestion fits my needs. Thank you very much.

Tolga

On Tue, Oct 4, 2016 at 1:49 AM, vkulichenko <va...@gmail.com>
wrote:

> Hi,
>
> You can set IgniteConfiguration.localHost property to 172.10.2.1. This will
> force Ignite to bind only to this interface.
>
> -Val
>
>
>
> --
> View this message in context: http://apache-ignite-users.
> 70518.x6.nabble.com/Two-network-interface-on-os-tp8058p8061.html
> Sent from the Apache Ignite Users mailing list archive at Nabble.com.
>



-- 

*Tolga KAVUKÇU*

Re: Two network interface on os

Posted by vkulichenko <va...@gmail.com>.
Hi,

You can set IgniteConfiguration.localHost property to 172.10.2.1. This will
force Ignite to bind only to this interface.

-Val



--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Two-network-interface-on-os-tp8058p8061.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.