Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Feature request: specify IP range(s) to use for binding #1620
-bind - .... "By default, this is "0.0.0.0", meaning Consul will use the first available private IP address."
It would be nice to have an option such as -bind-ranges where users can specify the CIDRs for interfaces which are acceptable to bind to.
With some SDN implementations, it's common to have multiple private IP ranges available on a node. But only some of those interfaces will be on a network which is reachable by all the other nodes in the cluster. Having this configuration option would avoid the need to create a pre-startup script which does introspection of the node to identify an appropriate bind address.
referenced this issue
Jan 16, 2016
@DanielDent / @llevar : Please give the latest code in
There is now a configurable template language for examples and docs) behind this that you can use to create a customizable heuristic that should allow you to get whatever it is that you need from your environment when using an immutable image (see hashicorp/go-sockaddr/template and cmd/sockaddr.