Open Manan006 opened 2 years ago
For some reason, it now has the ip in /etc/hosts, but I'd like to know what's a good way to get a static ip?
edit: The IP seems to be going away and coming back randomly for no reason
what's a good way to get a static ip?
I'm not sure I understand your question. Do you mean the underlying IPs of the participating nodes, or the overlay IPs inside the mesh? --bind-addr
is only relevant if your node has multiple IPs and you want it to use a specific one to build your mesh on. The overlay IP address (i.e.: the one used inside the mesh and that should pop up in your /etc/host) is calculated automatically by wesher and will only change if your hostname changes.
The IP seems to be going away and coming back randomly for no reason
You should see more info if you start wesher with --log-level info
.
How do I list all the ips connected through the mesh?
And I get this when I try to use --bind-addr
FATA[0000] could not create cluster: Could not set up network transport: failed to obtain an address: Failed to start TCP listener on "x.x.x.x" port 7946: listen tcp x.x.x.x:7946: bind: cannot assign requested address
Edit : forgot to mention here's my /etc/hosts on the first node -