Single IP Address, public range

In our examples, we use 173.28.1.0/24

We have only one network adapter excluding loopback.

Start Consul

root@server1:~# consul agent -config-dir /etc/consul.d/server/
==> WARNING: Expect Mode enabled, expecting 3 servers
==> Starting Consul agent...
==> Error starting agent: Failed to get advertise address: No private IP address found
root@server1:~#

Consul does not bind to or advertise on a public IP by default for security reasons.

We have to provide "bind_addr": "173.28.1.11" in the configuration to override the default behavior and force it to bind to a public address.

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

results matching ""

    No results matching ""