Hi, I am trying to build a router using vyos that would have thunderbolt support. The thunderbolt port is embedded into motherboard(it’s not an external card).
First of all, before anything, I have installed ubuntu on the machine and managed to set up thunderbolt0 ethernet interface using network-manager, using iperf my on my PC I verified the connection via tcp/upd, everything worked well.
Now I am trying to add thunderbolt networking to vyos, but I can’t figure it out and there is barely any info online on thunderbolt itself leave alone vyos.
So what I did:
- Compiled 5.10.141 Kernel, with thunderbolt modules
- Made installation ISO with vyos 1.4 and custom module
- Installed vyos
- Activated the modules thunderbolt and thunderbolt-net with modprobe
vyos@vyos:\~$ lsmod | grep thunder
thunderbolt\_net 24576 0
thunderbolt 290816 1 thunderbolt\_net
-
Installed Bolt and Thunderbolt-tools packages
vyos@vyos:~$ apt search bolt
Sorting… Done
Full Text Search… Done
bolt/now 0.9.1-1 amd64 [installed,local]
system daemon to manage thunderbolt 3 devicesthunderbolt-tools/now 0.9.3-5+b1 amd64 [installed,local]
Intel Thunderbolt userspace components
Here is the thunderbolt device and version
vyos@vyos:~$ lspci
...
04:00.0 PCI bridge: Intel Corporation JHL7540 Thunderbolt 3 Bridge [Titan Ridge 2C 2018] (rev 06)
05:00.0 PCI bridge: Intel Corporation JHL7540 Thunderbolt 3 Bridge [Titan Ridge 2C 2018] (rev 06)
05:01.0 PCI bridge: Intel Corporation JHL7540 Thunderbolt 3 Bridge [Titan Ridge 2C 2018] (rev 06)
05:02.0 PCI bridge: Intel Corporation JHL7540 Thunderbolt 3 Bridge [Titan Ridge 2C 2018] (rev 06)
06:00.0 System peripheral: Intel Corporation JHL7540 Thunderbolt 3 NHI [Titan Ridge 2C 2018] (rev 06)
3c:00.0 USB controller: Intel Corporation JHL7540 Thunderbolt 3 USB Controller [Titan Ridge 2C 2018] (rev 06)
I checked the device folder, and there is one device(0-0 and domain0 are local, 0-1 must be my PC), i also found some net folder with address that looks like hardware address.
vyos@vyos:/sys/bus/thunderbolt$ ls devices/
0-0 0-1 0-1.0 domain0
vyos@vyos:/sys/bus/thunderbolt$ cat devices/0-1.0/net/thunderbolt0/address
02:c7:e2:a6:61:37
vyos@vyos:/sys/bus/thunderbolt$
So I tried to create a new interface, but that is not allowed vyos@vyos# set interfaces ethernet eth4 hw-id 02:c7:e2:a6:61:37
I can’t install network-manager as it would break ppp package.
So I am stuck and don’t know what to do at this point. Yet I found this commit, so it should be possible, right? Any help is appreciated.