Open main menu

Wiki-Orange Pi β

Changes

Orange Pi 5 Plus

454 bytes added, 15:18, 7 June 2023
Zerotier Instructions
== Zerotier Instructions ==
{| class="wikitable" style="background-color:#ffffdc;width:800px;" |-| <big>'''The OpenWRT system has pre-installed the zerotier client. After creating a virtual LAN on the zerotier official website, the client can directly join it through the Network ID. The specific operation is as shown below.'''</big>|}
<ol style="list-style-type: decimal;">
<li><p>The following automatically assigns the address Here you can choose the network segment yourself, here is 172.27.*.*</p>
<p>[[File:media/image613.png|374x233px]]</p></li>
<li><p>Enter the following command in the OpenWRT terminal to join the virtual LAN created above, '''<span style="color:#FF0000">where 8286ac0e47d53bb5 is the Network ID of the virtual LAN created above</span>'''</p></li></ol>
{| class="wikitable" style="width:800px;"
|-
|
root@OpenWrt:/# '''zerotier-one -d''' #Start the zerotier client
root@OpenWrt:/# '''zerotier-cli join 8286ac0e47d53bb5''' #join the network
|}</ol>
<ol start="5" style="list-style-type: decimal;">
<li>Enter ifconfig in the terminal and you can see that there is already a new '''ztks54inm2''' device with an IP address of '''172.27.214.213'''</li></ol>
{| class="wikitable" style="width:800px;"
|-
|
root@OpenWrt:/# '''ifconfig'''
'''ztks54inm2''' Link encap:Ethernet HWaddr F6:4E:DE:BF:D8:52
::inet addr:'''172.27.214.213''' Bcast:172.27.255.255 Mask:255.255.0.0
::inet6 addr: fe80::e82f:d0ff:fe5a:867e/64 Scope:Link
::UP BROADCAST RUNNING MULTICAST MTU:2800 Metric:1
::RX packets:18 errors:0 dropped:0 overruns:0 frame:0
::TX packets:48 errors:0 dropped:0 overruns:0 carrier:0
::collisions:0 txqueuelen:1000
RX bytes:1720 (1.6 KiB) TX byte81 (8.2 KiB)
|}</ol>
<ol start="6" style="list-style-type: decimal;">
<li>Install the zerotier client on another device (Ubuntu18.04 is used as an example here), execute the following command to install, and restart the computer after the installation is complete</li></ol>{| class="wikitable" style="width:800px;" |-|
test@ubuntu:~$ '''curl -s https://install.zerotier.com | sudo bash'''
|}</ol>
<ol start="7" style="list-style-type: decimal;">
<li>After restarting, join the virtual LAN according to the Network ID, and you can also see that the ip address assigned by zerotier has been obtained. At this time, the Ubuntu PC and OrangePi R1 Plus LTS are in the same LAN, and the two can communicate freely</li></ol>
{| class="wikitable" style="width:800px;"
|-
|
test@ubuntu:~$ '''sudo zerotier-cli join 8286ac0e47d53bb5'''
'''ztks54inm2''': flags=4163&lt;UP,BROADCAST,RUNNING,MULTICAST&gt; mtu 2800
::inet '''172.27.47.214''' netmask 255.255.0.0 broadcast 172.27.255.255
::inet6 fe80::5ce1:85ff:fe2b:6918 prefixlen 64 scopeid 0x20&lt;link&gt;
::ether f6:fd:87:68:12:cf txqueuelen 1000 (ethernet)
::RX packets 0 bytes 0 (0.0 B)
::RX errors 0 dropped 0 overruns 0 frame 0
::TX packets 46 bytes 10006 (10.0 KB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
::TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
|}
</ol>
<ol start="8" style="list-style-type: decimal;">
<li>Test whether the two terminals can communicate</li></ol>
{| class="wikitable" style="width:800px;"
|-
|
root@OpenWrt:/# '''ping 172.27.47.214 -I ztks54inm2'''
round-trip min/avg/max = 1.136/1.195/1.235 ms
|}</ol>
<ol start="9" style="list-style-type: decimal;">
<li>other common commands of zerotier</li></ol>
{| class="wikitable" style="width:800px;"
|-
|
root@OpenWrt:/# '''zerotier-one -d''' #Start the zerotier client
OPENWRT_RELEASE=&quot;OpenWrt 22.03.4 r20123-38ccc47687&quot;
|}</ol>
<span id="compilation-method-of-openwrt-source-code"></span>