# Shut down, change IP and rejoin the cluster?

**URL:** <https://discuss.elastic.co/t/shut-down-change-ip-and-rejoin-the-cluster/46330>\
**Category:** Elasticsearch\
**Created:** [April 5, 2016, 6:58am UTC](https://discuss.elastic.co/t/shut-down-change-ip-and-rejoin-the-cluster/46330 "2016-04-05T06:58:35Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![boreal](https://avatars.discourse-cdn.com/v4/letter/b/cab0a1/32.png) [@boreal](https://discuss.elastic.co/u/boreal)\
**Post date:** [April 5, 2016, 6:58am UTC](https://discuss.elastic.co/t/shut-down-change-ip-and-rejoin-the-cluster/46330/1 "2016-04-05T06:58:35Z")

</div>

I need to change IP of one of the nodes in a cluster from public to private. On that node, will I be able to shut down elasticsearch service, change IP in the elasticsearch.yml, and restart elasticsearch service and join the cluster without any complications?

Thanks!  
B

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [April 5, 2016, 7:01am UTC](https://discuss.elastic.co/t/shut-down-change-ip-and-rejoin-the-cluster/46330/2 "2016-04-05T07:01:07Z")

</div>

Depends, can the other nodes reach that private IP?

---

<div class="post-metadata">

**Author:** ![boreal](https://avatars.discourse-cdn.com/v4/letter/b/cab0a1/32.png) [@boreal](https://discuss.elastic.co/u/boreal)\
**Post date:** [April 5, 2016, 4:24pm UTC](https://discuss.elastic.co/t/shut-down-change-ip-and-rejoin-the-cluster/46330/3 "2016-04-05T16:24:11Z")

</div>

Yes, all of the nodes can reach each other via private IP.

Actually, I wanted to change all of the nodes to use private IP, so I want to modify both 1) network.host: and 2)discovery.zen.ping.unicast.hosts: to use private IP's of itself and other nodes in the cluster.

Thanks for a quick response!

---

<div class="post-metadata">

**Author:** ![boreal](https://avatars.discourse-cdn.com/v4/letter/b/cab0a1/32.png) [@boreal](https://discuss.elastic.co/u/boreal)\
**Post date:** [April 7, 2016, 5:37am UTC](https://discuss.elastic.co/t/shut-down-change-ip-and-rejoin-the-cluster/46330/4 "2016-04-07T05:37:18Z")

</div>

Successfully performed above without any prob. Thanks!

---

<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:** [July 5, 2017, 11:01pm UTC](https://discuss.elastic.co/t/shut-down-change-ip-and-rejoin-the-cluster/46330/5 "2017-07-05T23:01:40Z")

</div>


