# Setting up 2-Node cluster on local network

**URL:** <https://discuss.elastic.co/t/setting-up-2-node-cluster-on-local-network/280608>\
**Category:** Elasticsearch\
**Created:** [August 6, 2021, 2:57am UTC](https://discuss.elastic.co/t/setting-up-2-node-cluster-on-local-network/280608 "2021-08-06T02:57:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nyinyithann](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nyinyithann/32/92617_2.png) [@nyinyithann](https://discuss.elastic.co/u/nyinyithann)\
**Post date:** [August 6, 2021, 2:57am UTC](https://discuss.elastic.co/t/setting-up-2-node-cluster-on-local-network/280608/1 "2021-08-06T02:57:42Z")

</div>

Hi,  
I am trying to setup 2-node cluster on local network - one node on mac and the other on ubuntu.  
I am able to connect the node on mac from ubuntu and vice versa.

But I see only one node in cluster at all time.  
I would like to know what i am missing.  
Thank you.

My elasticsearch.yml files are as follows:

**Node 1 on mac**

```auto
cluster.name: es-cluster-ryanzan

node.name: es-node-mac
node.master: true

path.data: /usr/local/var/lib/elasticsearch/

path.logs: /usr/local/var/log/elasticsearch/

network.host: 192.168.1.133

http.port: 9200

discovery.seed_hosts: ["192.168.1.129:9200"]

```

**Node 2 on ubuntu**

```auto
cluster.name: es-cluster-ryanzan

node.name: es-node-ubuntu
node.master: true

path.data: /var/lib/elasticsearch

path.logs: /var/log/elasticsearch

network.host: 192.168.1.129

http.port: 9200

discovery.seed_hosts: ["192.168.1.133:9200"]

```

---

<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:** [August 6, 2021, 5:48am UTC](https://discuss.elastic.co/t/setting-up-2-node-cluster-on-local-network/280608/2 "2021-08-06T05:48:39Z")

</div>

Discovery seed hosts should not have a port specified. You add Lao have not set initial master nodes.

---

<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:** [September 3, 2021, 5:49am UTC](https://discuss.elastic.co/t/setting-up-2-node-cluster-on-local-network/280608/3 "2021-09-03T05:49:27Z")

</div>

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