Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bind a ip #2295

Closed
wants to merge 1 commit into from
Closed

bind a ip #2295

wants to merge 1 commit into from

Conversation

favoorr
Copy link

@favoorr favoorr commented Aug 20, 2016

fix : Multiple private IPs found. Please configure one.

on MAC OX X , may got error

 $ consul agent -dev                                                                                                                                               [17:04:53]
==> Starting Consul agent...
==> Error starting agent: Failed to get advertise address: Multiple private IPs found. Please configure one.
FAIL

here give a answer gliderlabs/registrator#335

fix : Multiple private IPs found. Please configure one.
@slackpad
Copy link
Contributor

Hi @favoorr thanks for the PR. We fixed this by setting the default to 127.0.0.1 in #1878, so people no longer need to give the bind address for dev mode.

@slackpad slackpad closed this Sep 16, 2016
@rushi47
Copy link

rushi47 commented Mar 12, 2021

@slackpad is there anyway i can over ride it ? localhost is problematic cause when i make tunnel to server i cant access it.
And overriding using bind is not seems to work.

./consul agent -bind 0.0.0.0 -dev
neither did -bind=
am on centos.

@blake
Copy link
Member

blake commented Mar 12, 2021

Hi @rushi47, https://www.consul.io/docs/troubleshoot/common-errors#multiple-network-interfaces offers some guidance on how to address this. For example, you could use consul agent -bind="{{ GetPrivateIP }}" -dev or consul agent -bind="{{ GetInterfaceIP \"eth0\" }}" -dev.

If you still experience issues getting this to work, please create a post over on https://discuss.hashicorp.com/c/consul/29 so we can continue to troubleshoot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants