zerotier / ZeroTierOne

A Smart Ethernet Switch for Earth
https://zerotier.com
Other
14.16k stars 1.65k forks source link

Any one install zerotier to a ARM hardware? #1943

Open smallworld-network-wupeng opened 1 year ago

smallworld-network-wupeng commented 1 year ago

I have a base ARM cpu board RK3588, full Debian 11 system on it. I try to install zerotier on it.

apt install zerotier-one zerotier-cli join xxxxxx

it is looks normal , you can find it in zerotier network in website. but can't ping its ip address. I found there is not a zerotier network adapter . I try to install zerotier from source code ,same problem. Any one can help me?

root@firefly:/home/firefly/ZeroTierOne-dev# ifconfig
eth0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        inet 192.168.50.111  netmask 255.255.255.0  broadcast 192.168.50.255
        ether 56:99:cb:b8:d3:65  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 74

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 843  bytes 110837 (108.2 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 843  bytes 110837 (108.2 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wlx684e0505d28c: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.0.145  netmask 255.255.255.0  broadcast 192.168.0.255
        inet6 fe80::dba2:fec2:e8b7:f4e  prefixlen 64  scopeid 0x20<link>
        ether 68:4e:05:05:d2:8c  txqueuelen 1000  (Ethernet)
        RX packets 157433  bytes 236500159 (225.5 MiB)
        RX errors 0  dropped 32729  overruns 0  frame 0
        TX packets 23943  bytes 2643156 (2.5 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
laduke commented 1 year ago

zerotier-cli info -j zerotier-cli listnetworks

Is the tun module loaded?

smallworld-network-wupeng commented 1 year ago
root@firefly:/home/firefly/ZeroTierOne-dev# zerotier-cli info -j
{
 "address": "8abcb5b4da",
 "clock": 1680048915896,
 "config": {
  "settings": {
   "allowTcpFallbackRelay": true,
   "forceTcpRelay": false,
   "listeningOn": [
    "192.168.50.111/9993",
    "192.168.0.145/9993",
    "192.168.50.111/40135",
    "192.168.0.145/40135",
    "192.168.50.111/51433",
    "192.168.0.145/51433"
   ],
   "portMappingEnabled": true,
   "primaryPort": 9993,
   "secondaryPort": 0,
   "softwareUpdate": "disable",
   "softwareUpdateChannel": "release",
   "surfaceAddresses": [
    "27.11.73.168/40135",
    "27.11.73.168/51433",
    "27.11.73.168/1086"
   ],
   "tertiaryPort": 0
  }
 },
 "online": true,
 "planetWorldId": 149604618,
 "planetWorldTimestamp": 1644592324813,
 "publicIdentity": "8abxxxxx",
 "tcpFallbackActive": false,
 "version": "1.10.5",
 "versionBuild": 0,
 "versionMajor": 1,
 "versionMinor": 10,
 "versionRev": 5
}
root@firefly:/home/firefly/ZeroTierOne-dev# zerotier-cli listnetworks
200 listnetworks <nwid> <name> <mac> <status> <type> <dev> <ZT assigned ips>
laduke commented 1 year ago

that node isn't joined to any networks

is the tun module loaded? lsmod | grep tun

smallworld-network-wupeng commented 1 year ago

no, I can't found tun module loaded. but I join the network

root@firefly:/home/firefly/ZeroTierOne-dev# zerotier-cli join 12ac4a1e712d78xx
500 join {}

I can found it in zerotier website image

root@firefly:/home/firefly/ZeroTierOne-dev# zerotier-one
zerotier-one: fatal error: cannot bind to local control interface port 9993

I can't found 'tun.ko' anywhere

laduke commented 1 year ago

modprobe tun

smallworld-network-wupeng commented 1 year ago

modprobe tun root@firefly:/home/firefly# modprobe tun modprobe: FATAL: Module tun not found in directory /lib/modules/5.10.66

laduke commented 1 year ago

You will have to figure that out. Maybe you just need to reboot after you upgraded? Good luck!

smallworld-network-wupeng commented 1 year ago

Maybe the module tun not open source , so I can't get it from the source

laduke commented 1 year ago

the tun module comes from linux. it's open source. maybe the vendor can help.

HapplyLemon commented 2 months ago

我试过了debain11 lite不通,换了ubuntu20.04就可以了。