“ubuntu 20.04”
Hello, I am trying to start Consul service with this command:
/usr/bin/consul agent -server -ui -data-dir=/temp/consul -bootstrap-expect=1 -node=vault -bind=0.0.0.0 -config-dir=/etc/consul.d/
it gives ==> “No private IPv4 address found”
I also find a page regarding same issue but since I am starter level at linux. I couldnt apply solution.
opened 11:22AM - 21 Feb 15 UTC
closed 02:43PM - 02 Dec 16 UTC
Consul agent won't start on our machines (that by default only have a public ip … assigned, they are firewalled) since it won't bind to non-private ip's by default.
A commandline option to override the behaviour of "only bind to private ip's by default" would help a lot.
This option should change the current filters in consul for everything ip-related to allow any assigned ip to be used automatically.
Can you please tell me what to do?
Thank you.
Hi @beratuslu you need to provide -bind
with the actual public IP address value. 0.0.0.0
is not a routable address so it will default to the local interfaces 127.0.0.1
and other network interfaces available, but in this case non of the network interfaces expose a private IP.