Configuring Host Names
- Run the following command on node 1 to view the host name:
hostname

If the default host name is localhost, run the following commands to change the host name to distinguish nodes 1, 2, and 3:
hostname host-XX-XX-XX logout hostname
- Run the following command on node 2 to view the host name:
hostname

- Run the following command on node 3 to view the host name:
hostname

- Configure host names.
Add the IP addresses and host names to the hosts file on each node (nodes 1 to 3).
vim /etc/hosts

Parent topic: Deploying an etcd Cluster