Hi Michele, If you're joining your laptop to a ZeroTier network but not receiving an IP address, here are some suggestions based on common issues reported by users:
1. Authorization of Members: Ensure that your device is authorized on the ZeroTier network. IP addresses are not assigned to devices until they are authorized. Check the ZeroTier Central web interface to confirm that your device appears as online and is authorized to join the network. 2. Check IP Assignment Pool: Verify that the IPv4 Auto-Assign pool on your ZeroTier network is not full. If the pool is exhausted (for example, if it only allows a limited number of IP assignments), new devices will not receive an IP address. You may need to expand the pool or remove some existing assignments. 3. Managed Routes and IP Configuration: Double-check your ZeroTier Central settings for any typos or misconfigurations in the Managed IPs or Managed Routes. If there are inconsistencies, it can prevent IP assignment. 4. Service Status: Make sure the ZeroTier service is running correctly on your laptop. Sometimes, restarting the ZeroTier service can resolve issues with IP assignment. You can do this using the following commands: bash sudo systemctl restart zerotier-one 5. Manual IP Assignment: If automatic assignment fails, consider manually assigning an IP address to your ZeroTier interface. You can do this using the ZeroTier CLI: bash zerotier-cli set <network-id> allowmanaged=0 Then, manually configure the IP address on your system. 6. Network Configuration: Ensure that your laptop's network configuration allows for ZeroTier connections. Sometimes firewall settings or network policies can block ZeroTier traffic. If you follow these steps and still encounter issues, consider checking the ZeroTier community forums for further assistance or troubleshooting specific to your setup. Best regards Federico Capoano On Thu, 8 Aug 2024 at 16:16, Michele Salerno <[email protected]> wrote: > Hi, I can do the join but on the notebook I don't get the IP assigned. > How do I do that? > Best regards. > > Michele > > > Il 17/05/24 17:08, Gagan Deep (pandafy) ha scritto: > > > Hello Michele, > > By default, the ZeroTier configuration generated by OpenWISP flags the > network as "private". This ensures that only authorised peers can join the > network. OpenWISP automatically authorises managed devices using ZeroTier > One API. For devices (i.e. Linux machine) that are not managed by OpenWISP, > you will need to manually approve each peer that joins the ZeroTier > network. > > Here's a small guide on how you can connect your Linux machine to the > ZeroTier network managed by OpenWISP: > > 1. Get the ZeroTier network ID from the VPN details page on OpenWISP > admin > [image: Screenshot from 2024-05-17 15-46-55.png] > 2. Install ZeroTier <https://www.zerotier.com/download/> on your Linux > machine > 3. Join the ZeroTier network using zerotier-cli > <https://docs.zerotier.com/network-join/#from-the-command-line> > *zerotier-cli join <network-id> * > 4. Using the script below, authorise the Linux machine to connect to > your ZeroTier network. > > You can retrieve the *HOST*, *WEBHOOK_AUTHTOKEN* and *NETWORK_ID* from > the OpenWISP admin page of the ZeroTier VPN. > > [image: Screenshot from 2024-05-17 20-26-31.jpg] > > The NODE_ID for your Linux machine can be retrieved by running > *zerotier-cli > info* command on your Linux machine. The output will contain > *200 info <node-id> 1.14.0 ONLINE* > > Run this script on the VM where ZeroTier One is installed (typically > the OpenWISP VM). > #!/bin/bash > # The hostname that you used in the OpenWISP for the ZeroTier. > # If the hostname field includes a port, you need to add that too. > HOST="yourhostname:9993" > # The "Webhook AuthToken" that is present in the OpenWISP for the > ZeroTier. > WEBHOOK_AUTHTOKEN="zerotier_webook_authtoken" > # The network ID which retrieved earlier for joining the network > NETWORK_ID="zerotier_network_id" > # The node ID for you Linux machine. > # You can retrieve this using the command "zerotier-cli info" on > # you Linux machine. > NODE_ID="linux_machine_network_id" > curl -X POST "http://$HOST/controller/network/${NETWORK_ID}/member/${ > NODE_ID}" \ > -H "X-ZT1-Auth: $WEBHOOK_AUTHTOKEN" \ > -H "Content-Type: application/json" \ > -d '{"authorized": true}' > > If you run into any problems, let us know. > > Regards, > Gagan Deep > On Friday, May 17, 2024 at 3:39:58 AM UTC+5:30 [email protected] wrote: > >> Hi, >> >> I have OpenWisp with zerotier, the routers connect without any problems. >> >> I also want to connect to the network from my notebook when I am not >> connected to a router with openwisp. >> >> How can I create a tunnel from my notebook with Linux as well? >> >> Thanks. >> >> Best regards, >> >> Michele >> >> -- > You received this message because you are subscribed to the Google Groups > "OpenWISP" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web, visit > https://groups.google.com/d/msgid/openwisp/a4936b9a-b377-4879-adf4-19293b6150d0n%40googlegroups.com > <https://groups.google.com/d/msgid/openwisp/a4936b9a-b377-4879-adf4-19293b6150d0n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > -- > Informativa Privacy - Ai sensi del D. Lgs n. 196/2003 (Codice Privacy) si > precisa che le informazioni contenute in questo messaggio sono riservate e ad > uso esclusivo del destinatario. Qualora il messaggio in parola Le fosse > pervenuto per errore, La preghiamo di eliminarlo senza copiarlo e di non > inoltrarlo a terzi, dandocene gentilmente comunicazione. Grazie. > > Privacy Information - This message, for the D. Lgs n. 196/2003 (Privacy > Code), may contain confidential and/or privileged information. If you are not > the addressee or authorized to receive this for the addressee, you must not > use, copy, disclose or take any action based on this message or any > information herein. If you have received this message in error, please advise > the sender immediately by reply e-mail and delete this message. Thank you for > your cooperation. > > -- > You received this message because you are subscribed to the Google Groups > "OpenWISP" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web, visit > https://groups.google.com/d/msgid/openwisp/41952a51-3f0d-40d9-b90d-9b4ec8ef6dc5%40gmail.com > <https://groups.google.com/d/msgid/openwisp/41952a51-3f0d-40d9-b90d-9b4ec8ef6dc5%40gmail.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "OpenWISP" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web, visit https://groups.google.com/d/msgid/openwisp/CAAGgX6KSZjUVypPXiWGEuxDZ4KPsG5VP-xdad-Uo9ZJ7A_rC6g%40mail.gmail.com.
