Multiple IP Addresses, 0 private, 2 or more public

We have 2 network adapters excluding loopback.

In our example, the IPs are in the following subnets:

1st IP - 173.28.1.0/24

2nd IP - 173.28.2.0/24.

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 or advertise to a public IP by default for security reasons.

We can bind any one of the IP addresses to Consul.

Provide the "bind_addr": "173.28.1.11" key-value 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 ""