-
Notifications
You must be signed in to change notification settings - Fork 938
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
Failed to setup DHCP in n2n network #629
Comments
I never tried DHCP at large scale, so I am a bit guessing here. But doesn't DHCP setup usually also require a DHCP client such as As far as I can see, n2n itself does not include a DHCP client portion. By giving the P. S. You could try the integrated auto IP address feature as of current 2.9 – you will not find it in 2.8; but keep in mind that it is still developing dev branch. |
Thank you so much @Logan007 . You filled my missing puzzle and it worked... but not entirely... So I once again joined my superNode on my pi: You mentioned I need to setup my client side dhcp. I found that I need to define the A5TAP interface, and set it to use dhcp.
then I did : and then I can see my edge has its ip assigned by my DHCP server! ip a
However, if I have the below setting on /etc/network/interfaces before A5TAP was available, I will not be able to reach the Internet at all. I have to add it after I've connected to the superNode, and then restart the network in order for it to work. Any ideas on how should I handle this? Seems like if the interface A5TAP is not created and I defined it in the config file, the network breaks.
My /etc/network/interfaces FYR:
|
I hope there is a way to have DHCP client working on a specified interface only. Arch Wiki shows how to start If you run edge as a service, Can anyone with a working DHCP-over-n2n setup provide more details? |
I played around a bit and found a solution that is working potentially: I changed the line: After this, it won't block my pi from accessing the Internet on reboot, or when A5TAP interface has not been created yet. I can run the edge command at any point, and I will get my dhcp ip. Please let me know if we have better approaches. Thank you again @Logan007. I was stuck for so long! |
Thank you for bringing this up. I might add it to our documentation. |
Hi all,
I've been using n2n and it worked wonderfully. I like how I can broadcast UDP even with cloud VMs using n2n.
To scale out my application, I will need DHCP to be working on n2n. However, there are little documentation. So I tried my best to get it working and I failed. I've put the details of my DHCP setup in the below post:
https://stackoverflow.com/questions/64403178/n2n-cannot-setup-dhcp-server-on-n2n-vpn-network
n2n version: n2n v.2.8.0.r540.53afd3c
Basically, I
Result:
DHCP didn't assign any ip on my edge
~$ ip a
Anything I did wrong to setup DHCP on n2n?
The text was updated successfully, but these errors were encountered: