# How to get Thunderbolt Network up and running Main idea is from [here](https://gist.github.com/scyto/76e94832927a89d977ea989da157e9dc), but I like to be able to copy paste a bit more comfortable. ## Assumptions This manual was used on Intel NUC 13th generation with 2 TB4 Ports. ## On all Nodes Optional package to track which node can see which other one. ```python apt install -y lldpd ``` Mandatory packages. ```python apt install -y lsb-release curl -s https://deb.frrouting.org/frr/keys.gpg | sudo tee /usr/share/keyrings/frrouting.gpg > /dev/null FRRVER="frr-stable" echo deb '[signed-by=/usr/share/keyrings/frrouting.gpg]' https://deb.frrouting.org/frr \ $(lsb_release -s -c) $FRRVER | sudo tee -a /etc/apt/sources.list.d/frr.list apt update apt install -y frr ``` Add kernel modules. ```python # remove empty lines sed '/^$/d' /etc/modules > temp.txt && mv temp.txt /etc/modules # add modules tee -a /etc/modules < https://gist.github.com/scyto/67fdc9a517faefa68f730f82d7fa3570?permalink_comment_id=5077802#gistcomment-5077802 ```python cat << 'EOF' > /usr/local/bin/restart-frr.sh #!/bin/sh # Delayed start script to tell frr to reload ensuring that it sees thunderbolt links towards other nodes. # condition: is there any tbt network interface and frr service up COUNTER=0 while [ ${COUNTER} -lt 5 ]; do sleep 1; TEST=$(ip a | grep ": en0" | grep "UP" | awk 'BEGIN { ORS=""}; {print $2}') if [ ${#TEST} -ge 2 ]; then TEST_SVC=$(service frr status | grep "active (running)") if [ ${#TEST_SVC} -ge 2 ]; then service frr reload; echo "frr service reload request sent" exit 0; fi fi COUNTER=$((COUNTER+1)); done echo "Failed to request frr service reload: request NOT sent" exit 1; EOF chmod +x /usr/local/bin/restart-frr.sh # create systemd service and make it autoboot tee -a /etc/systemd/system/frr-restarter.service < temp.txt && mv temp.txt /etc/network/interfaces tee -a /etc/network/interfaces < temp.txt && mv temp.txt /etc/network/interfaces tee -a /etc/network/interfaces < temp.txt && mv temp.txt /etc/network/interfaces tee -a /etc/network/interfaces <