# How to setup Three Machines with different IP Address?

**URL:** <https://discuss.elastic.co/t/how-to-setup-three-machines-with-different-ip-address/123008>\
**Category:** Elasticsearch\
**Created:** [March 8, 2018, 6:18am UTC](https://discuss.elastic.co/t/how-to-setup-three-machines-with-different-ip-address/123008 "2018-03-08T06:18:54Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Karthik\_Saravanan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/karthik_saravanan/32/28858_2.png) [@Karthik\_Saravanan](https://discuss.elastic.co/u/Karthik_Saravanan)\
**Post date:** [March 8, 2018, 6:18am UTC](https://discuss.elastic.co/t/how-to-setup-three-machines-with-different-ip-address/123008/1 "2018-03-08T06:18:54Z")

</div>

I have three machines, installed same ELK(6.2.2) version in all machine  
Now, I have to connect all node, One is master and another two's are client node,

\*\* Each machine is the different IP address

I have tried like this  
**Server:**

```
            cluster.name: sever
	node.name: main-server
	node.data: true
	node.ingest: true
	node.master: true
	node.max_local_storage_nodes: 1
	path.data: E:/ELK-6.2.2/elasticsearch/data
	path.logs: E:/ELK-6.2.2/elasticsearch/logs
	network.host: 11.xx.xx.xx:9200
	http.port: 9200
	transport.tcp.port: 9300
	discovery.zen.ping.unicast.hosts: ["11.XX.XX.XX", "12.xx.xx.xx:9200", "13.xx.xx.xx:9200"]
	discovery.zen.minimum_master_nodes: 1

```

**Client: 1**

```
cluster.name: client-one
	node.name: client-node-one
	node.data: true
	node.ingest: true
	node.master: false
	node.max_local_storage_nodes: 1
	path.data: E:/ELK-6.2.2/elasticsearch/data
	path.logs: E:/ELK-6.2.2/elasticsearch/logs
	network.host: 12.xx.xx.xx
	http.port: 9200
	transport.tcp.port: 9300
	discovery.zen.ping.unicast.hosts: ["11.XX.XX.XX", "12.xx.xx.xx:9200", "13.xx.xx.xx:9200"]
	discovery.zen.minimum_master_nodes: 1

```

**Client:2**

```
cluster.name: client-two
	node.name: client-node-two
	node.data: true
	node.ingest: true
	node.master: false
	node.max_local_storage_nodes: 1
	path.data: E:/ELK-6.2.2/elasticsearch/data
	path.logs: E:/ELK-6.2.2/elasticsearch/logs
	network.host: 13.xx.xx.xx
	http.port: 9200
	transport.tcp.port: 9300
	discovery.zen.ping.unicast.hosts: ["11.XX.XX.XX", "12.xx.xx.xx:9200", "13.xx.xx.xx:9200"]
	discovery.zen.minimum_master_nodes: 1

```

Please guide me how to setup these machine?

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [March 8, 2018, 8:37am UTC](https://discuss.elastic.co/t/how-to-setup-three-machines-with-different-ip-address/123008/2 "2018-03-08T08:37:58Z")

</div>

Elasticsearch uses port 9300 to communicate internally using the transport protocol, so leave out the port number in the `discovery.zen.ping.unicast.hosts` list as 9300 is the default.

---

<div class="post-metadata">

**Author:** ![Karthik\_Saravanan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/karthik_saravanan/32/28858_2.png) [@Karthik\_Saravanan](https://discuss.elastic.co/u/Karthik_Saravanan)\
**Post date:** [March 12, 2018, 6:54am UTC](https://discuss.elastic.co/t/how-to-setup-three-machines-with-different-ip-address/123008/3 "2018-03-12T06:54:56Z")

</div>

Hi Christian\_Dahlqvist,  
here is working sample config  
Master: 54.xx.xx.xx  
`cluster.name: sciera-master node.name: node-153 node.data: false node.ingest: false node.master: true path.data: D:/elk/elasticsearch/data path.logs: D:/elk/elasticsearch/logs bootstrap.memory_lock: true network.host: 10.144.250.69 network.publish_host: 54.xx.xx.xx http.port: 9200 transport.tcp.port: 9300 discovery.zen.ping.unicast.hosts: ["52.xx.xx.xx:9300"]`

Client: 52.xx.xx.xx  
`cluster.name: sciera-master node.name: node-105 node.data: true node.ingest: false node.master: false path.data: D:/elk/elasticsearch/data path.logs: D:/elk/elasticsearch/logs bootstrap.memory_lock: true network.host: 172.31.44.186 network.publish_host: 52.xx.xx.xx http.port: 9200 transport.tcp.port: 9300 discovery.zen.ping.unicast.hosts: ["54.xx.xx.xx:9300"]`

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [March 12, 2018, 8:08am UTC](https://discuss.elastic.co/t/how-to-setup-three-machines-with-different-ip-address/123008/4 "2018-03-12T08:08:37Z")

</div>

Good to hear you managed to get it resolved. Having a dedicated master and data nodes in a two node cluster does however not necessarily make much sense. You now have a cluster in which any node failure will cause the cluster to become impaired, and since you have 2 nodes, the risk is greater than if you only had a single node with default configuration. Just because you can have dedicated node types, it doesn't mean that you should, especially for small clusters. I would recommend that you add another data node to get resiliency and make all three nodes master eligible so that you can continue operating even if a node goes down.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [April 9, 2018, 8:08am UTC](https://discuss.elastic.co/t/how-to-setup-three-machines-with-different-ip-address/123008/5 "2018-04-09T08:08:50Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
