Thunderbolt networking
Setup#
Connect USB4/TB cable between computers. Stay vigilant, most cables are not USB4/TB capable.
Host A:
modprobe thunderbolt-net
ip a add 10.10.10.10/24 dev thunderbolt0
Host B:
ip a add 10.10.10.11/24 dev thunderbolt0
Test network#
# Host A:
iperf -s
# Host B:
iperf -i 10 -c 10.10.10.10
Results#
------------------------------------------------------------
Client connecting to 10.10.10.10, TCP port 5001
TCP window size: 16.0 KByte (default)
------------------------------------------------------------
[ 1] local 10.10.10.11 port 53846 connected with 10.10.10.10
[ ID] Interval Transfer Bandwidth
[ 1] 0.0000-10.0000 sec 21.8 GBytes 18.7 Gbits/sec
[ 1] 0.0000-10.0019 sec 21.8 GBytes 18.7 Gbits/sec
Usage#
Use the interfaces as any other network over ssh, rsync, netcat, scp etc
More info#
https://docs.kernel.org/admin-guide/thunderbolt.html#networking-over-thunderbolt-cable