Double IP same Host #829
Replies: 3 comments 14 replies
-
Wow! You solved my problem with a similar setup. Since a lighthouse does not add itself to the DNS (issue #271), it was suggested to add a second Nebula instance to provide name resolution. This works except for the problem you describe. Whatever service is started last can be pinged and is reachable. If the lighthouse is restarted, it has an IP and is serviceable to all clients, but the node is unreachable. If the node is restarted, the lighthouse is no longer reachable and all clients disconnect, but the node is reachable. I have 2 lighthouses so discoverability is still there. After re-reading issue #271, I noticed they mentioned that
I had to make one more change on the node and that's to disable Prometheus stats because it couldn't bind to the IP:port. Checking the IPs shows why. The node ( What is the purpose of
|
Beta Was this translation helpful? Give feedback.
-
One consequence of this is that while Nebula traffic flows, services on the host can only bind to the IP exposed to the host. I.e. services can bind only to the IP of the Nebula process that has @alfred-stokespace If you intend to expose services on both IPs, you might need to find alternatives like the relay functionality, but that would imply both nodes (nebula processes on the host) are in the same Nebula network. |
Beta Was this translation helpful? Give feedback.
-
I don't know much about I can confirm that with tun enabled on both of my ip's I see the following...
from that same host I can ping both addresses ...
This makes me think that the problem might actually not be with this host but actually might be related to the lighthouse? Like maybe it only has a single place to relate a physical ip with a neb-ip with and we are just stomping on the previous value ? |
Beta Was this translation helpful? Give feedback.
-
I have an odd need to have a network where some physical hosts have more than one overly network ip (yup two ips for one host). I found this old issue #534 referencing this idea and tried it myself. I ran into an issue and maybe a solution but I'd like some clarity on why my solution "worked".
In my network I have a lighthouse host and 5 participant hosts
Lets ignore 4 of those participant hosts because they are all standard 1 host -to- 1 nebula ip.
YES! :) I have a cert & key file for the additional ip that I expect to double up on host-5 (hah! plus the initial ip's cert & key)
Lighthouse looks like ...
Special host 5 (remember, we don't care about 1-4 since they are normal) looks like ...
config 1 ( signed for use of
172.20.0.50
)and now for config 2 ( signed for use of
172.20.0.51
)and here is the diff between conf1 and conf2
Behavior with above config...
As soon as nebula2 (ie. 172.20.0.51) is started; pings from lighthouse to 172.20.0.50 stop, but pings to 51 work!
nebula2 starting...
and now from Lighthouse we see...
if I kill nebula2 i have to also restart nebula1 in order to get ping back on nebula1.
What I discovered ...
if I disable the
tun:
on nebula2 config and start both nebula1 and 2, I'm able to ping both from the lighthouse hostfor clarity... nebula1 has tun enabled and nebula2 has it disabled
Why? and was this intended? and how should I be doing this?
Beta Was this translation helpful? Give feedback.
All reactions