Setting up a zero tier bridge on a raspberry pi
1 sudo apt-get update
2 sudo apt-get update && sudo apt-get upgrade
3 sudo apt-get update && sudo apt-get -y upgrade
4 sudo apt-get update
5 sudo apt-get update && sudo apt-get upgrade
6 sudo apt-get -f upgrade
7 sudo apt update && sudo apt -y full-upgrade
8 sudo reboot
9 sudo apt-get update
10 sudo apt-get upgrade
11 curl -s https://install.zerotier.com | sudo bash
12 sudo zerotier-cli join abc4567890123456
13 sudo apt update && sudo apt -y full-upgrade
14 ifconfig
15 ifconfig
16 sudo zerotier-cli show
17 sudo zerotier-cli info
18 sudo zerotier-cli listnetworkw
19 sudo zerotier-cli listnetworks
20 sudo zerotier-cli set abc4567890123456 allowManaged=0
21 sudo zerotier-cli listnetworks
22 ifconfig
23 ZF_IF=ztmjfjl72z
24 sudo zerotier-cli listnetworks
25 sudo apt remove --purge --auto-remove dhcpcd5 fake-hwclock ifupdown isc-dhcp-client isc-dhcp-common openresolv
26 sudo ln -sf /run/systemd/resolve/resolv.conf /etc/resolv.conf;
27 sudo systemctl enable systemd-networkd;
28 sudo systemctl enable systemd-resolved;
29 sudo systemctl enable systemd-timesyncd;
30 sudo zerotier-cli set abc4567890123456 allowManaged=0
31 NETWORK_ID=abc4567890123456
32 BR_IF="br0"
33 BR_ADDR=192.168.80.100/24
34 echo $BR_ADDR
35 GW_ADDR=192.168.80.1
36 cat << EOF | sudo tee /etc/systemd/network/25-bridge-br0.network
37 [Match]
38 Name=$BR_IF
39 [Network]
40 Address=$BR_ADDR
41 Gateway=$GW_ADDR
42 DNS=1.1.1.1
43 EOF
44 cat << EOF | sudo tee /etc/systemd/network/br0.netdev
45 [NetDev]
46 Name=$BR_IF
47 Kind=bridge
48 EOF
49 cat << EOF | sudo tee /etc/systemd/network/25-bridge-br0-zt.network
50 [Match]
51 Name=$ZT_IF
52 [Network]
53 Bridge=$BR_IF
54 EOF
55 cat << EOF | sudo tee /etc/systemd/network/25-bridge-br0-en.network
56 [Match]
57 Name=eth0 # might be en*
58 [Network]
59 Bridge=$BR_IF
60 EOF
61 cd etc/systemd/network/
62 ls
63 cd /etc/systemd/network/
64 ls
65 cat
66 cat *
67 cat /etc/systemd/network/25-bridge-br0.network
68 cat /etc/systemd/network/br0.netdev
69 cat /etc/systemd/network/25-bridge-br0-zt.network
70 sudo nano /etc/systemd/network/25-bridge-br0-zt.network
71 cat /etc/systemd/network/25-bridge-br0-en.network
72 tail -n+0 /etc/systemd/network/*
73 sudo reboot
74 ifconfig
75 reboot
76 sudo reboot
Comments
Post a Comment