Single IP Address, private range

RFC 1918 Private IP Addresses (In our example - 192.168.1.0/24)

We have only one network adapter excluding loopback on each server.

Let us assume below initial configuration is same for all in the networking environments.

root@server1:~# cat /etc/consul.d/server/config.json
{
  "datacenter": "dc1",
  "data_dir": "/var/consul",
  "encrypt": "EXz7LFN8hpQ4id8EDYiFoQ==",
  "log_level": "INFO",
  "enable_syslog": true,
  "enable_debug": true,
  "node_name": "ConsulServer1",
  "server": true,
  "leave_on_terminate": false,
  "skip_leave_on_interrupt": true,
  "rejoin_after_leave": true
}

Start Consul

root@server1:~# consul agent -config-dir /etc/consul.d/server/
==> Starting Consul agent...
==> Starting Consul agent RPC...
==> Consul agent running!

Consul is running without specifying the bind address parameter because by default Consul will use the available private IPv4 address.

Since we have one private IP, Consul chose it.

results matching ""

    No results matching ""