Guest User

Untitled

a guest
Jul 30th, 2025
14
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.89 KB | Software | 0 0
  1. =========================================
  2. Thunderbolt Mesh Network Config Info Tool
  3. =========================================
  4.  
  5. -----------------------------------------
  6. Kernel Version
  7. -----------------------------------------
  8. Linux pve-node01 6.8.12-1-pve #1 SMP PREEMPT_DYNAMIC PMX 6.8.12-1 (2024-08-05T16:17Z) x86_64 GNU/Linux
  9.  
  10. -----------------------------------------
  11. File: /etc/network/interfaces
  12. -----------------------------------------
  13. auto lo
  14. iface lo inet loopback
  15. iface enp86s0 inet manual
  16. iface en05 inet manual
  17. iface en06 inet manual
  18. auto vmbr0
  19. iface vmbr0 inet static
  20. address 10.16.30.21/24
  21. gateway 10.16.30.1
  22. bridge-ports enp86s0
  23. bridge-stp off
  24. bridge-fd 0
  25. bridge-vlan-aware yes
  26. bridge-vids 10,20,35
  27. source /etc/network/interfaces.d/*
  28.  
  29. -----------------------------------------
  30. File: /etc/network/interfaces.d/thunderbolt
  31. -----------------------------------------
  32. auto lo:0
  33. iface lo:0 inet static
  34. address 10.0.0.81/32
  35.  
  36. auto lo:6
  37. iface lo:6 inet static
  38. address fc00::81/128
  39.  
  40. allow-hotplug en05
  41. iface en05 inet manual
  42. mtu 65520
  43.  
  44. allow-hotplug en06
  45. iface en06 inet manual
  46. mtu 65520
  47.  
  48. post-up /usr/bin/systemctl restart frr.service
  49.  
  50.  
  51. ----------------------------------------
  52. File: /usr/local/bin/pve-en05.sh
  53. -rwxr-xr-x 1 root root 638 Mar 11 08:05 /usr/local/bin/pve-en05.sh
  54. -----------------------------------------
  55. LOGFILE="/tmp/udev-debug.log"
  56. VERBOSE="" # Set this to "-v" for verbose logging
  57. IF="en05"
  58. echo "$(date): pve-$IF.sh triggered by udev" >> "$LOGFILE"
  59. for i in {1..10}; do
  60. echo "$(date): Attempt $i to bring up $IF" >> "$LOGFILE"
  61. /usr/sbin/ifup $VERBOSE $IF >> "$LOGFILE" 2>&1 && {
  62. echo "$(date): Successfully brought up $IF on attempt $i" >> "$LOGFILE"
  63. break
  64. }
  65. echo "$(date): Attempt $i failed, retrying in 3 seconds..." >> "$LOGFILE"
  66. sleep 3
  67. done
  68.  
  69. ----------------------------------------
  70. File: /usr/local/bin/pve-en06.sh
  71. -rwxr-xr-x 1 root root 637 Mar 11 08:05 /usr/local/bin/pve-en06.sh
  72. -----------------------------------------
  73. LOGFILE="/tmp/udev-debug.log"
  74. VERBOSE="" # Set this to "-v" for verbose logging
  75. IF="en06"
  76. echo "$(date): pve-$IF.sh triggered by udev" >> "$LOGFILE"
  77. for i in {1..10}; do
  78. echo "$(date): Attempt $i to bring up $IF" >> "$LOGFILE"
  79. /usr/sbin/ifup $VERBOSE $IF >> "$LOGFILE" 2>&1 && {
  80. echo "$(date): Successfully brought up $IF on attempt $i" >> "$LOGFILE"
  81. break
  82. }
  83. echo "$(date): Attempt $i failed, retrying in 3 seconds..." >> "$LOGFILE"
  84. sleep 3
  85. done
  86.  
  87. -----------------------------------------
  88. File: /etc/modules
  89. -----------------------------------------
  90. thunderbolt
  91. thunderbolt-net
  92.  
  93. -----------------------------------------
  94. File: /etc/systemd/network/00-thunderbolt0.link
  95. -----------------------------------------
  96. [Match]
  97. Path=pci-0000:00:0d.3
  98. Driver=thunderbolt-net
  99. [Link]
  100. MACAddressPolicy=none
  101. Name=en05
  102.  
  103. -----------------------------------------
  104. File: /etc/systemd/network/00-thunderbolt1.link
  105. -----------------------------------------
  106. [Match]
  107. Path=pci-0000:00:0d.2
  108. Driver=thunderbolt-net
  109. [Link]
  110. MACAddressPolicy=none
  111. Name=en06
  112.  
  113. -----------------------------------------
  114. File: /etc/sysctl.conf
  115. -----------------------------------------
  116. net.ipv4.ip_forward=1
  117. net.ipv6.conf.all.forwarding=1
  118.  
  119. ----------------------------------------
  120. File: /etc/network/if-up.d/restart-frr
  121. ls: cannot access '/etc/network/if-up.d/restart-frr': No such file or directory
  122. -----------------------------------------
  123. grep: /etc/network/if-up.d/restart-frr: No such file or directory
  124.  
  125. -----------------------------------------
  126. File: /etc/udev/rules.d/10-tb-en.rules
  127. -----------------------------------------
  128. ACTION=="move", SUBSYSTEM=="net", KERNEL=="en05", RUN+="/usr/local/bin/pve-en05.sh"
  129. ACTION=="move", SUBSYSTEM=="net", KERNEL=="en06", RUN+="/usr/local/bin/pve-en06.sh"
  130.  
  131. -----------------------------------------
  132. File: /etc/frr/frr.conf
  133. -----------------------------------------
  134. frr version 8.5.2
  135. frr defaults traditional
  136. hostname pve-node01
  137. log syslog informational
  138. service integrated-vtysh-config
  139. !
  140. interface en05
  141. ip router openfabric 1
  142. ipv6 router openfabric 1
  143. exit
  144. !
  145. interface en06
  146. ip router openfabric 1
  147. ipv6 router openfabric 1
  148. exit
  149. !
  150. interface lo
  151. ip router openfabric 1
  152. ipv6 router openfabric 1
  153. openfabric passive
  154. exit
  155. !
  156. router openfabric 1
  157. net 49.0000.0000.0001.00
  158. fabric-tier 0
  159. exit
  160. !
  161.  
  162. -----------------------------------------
  163. File: /etc/frr/daemons
  164. -----------------------------------------
  165. bgpd=yes
  166. ospfd=no
  167. ospf6d=no
  168. ripd=no
  169. ripngd=no
  170. isisd=no
  171. pimd=no
  172. pim6d=no
  173. ldpd=no
  174. nhrpd=no
  175. eigrpd=no
  176. babeld=no
  177. sharpd=no
  178. pbrd=no
  179. bfdd=yes
  180. fabricd=yes
  181. vrrpd=no
  182. pathd=no
  183. vtysh_enable=yes
  184. zebra_options=" -A 127.0.0.1 -s 90000000"
  185. bgpd_options=" -A 127.0.0.1"
  186. ospfd_options=" -A 127.0.0.1"
  187. ospf6d_options=" -A ::1"
  188. ripd_options=" -A 127.0.0.1"
  189. ripngd_options=" -A ::1"
  190. isisd_options=" -A 127.0.0.1"
  191. pimd_options=" -A 127.0.0.1"
  192. pim6d_options=" -A ::1"
  193. ldpd_options=" -A 127.0.0.1"
  194. nhrpd_options=" -A 127.0.0.1"
  195. eigrpd_options=" -A 127.0.0.1"
  196. babeld_options=" -A 127.0.0.1"
  197. sharpd_options=" -A 127.0.0.1"
  198. pbrd_options=" -A 127.0.0.1"
  199. staticd_options="-A 127.0.0.1"
  200. bfdd_options=" -A 127.0.0.1"
  201. fabricd_options="-A 127.0.0.1"
  202. vrrpd_options=" -A 127.0.0.1"
  203. pathd_options=" -A 127.0.0.1"
  204.  
  205. -----------------------------------------
  206. Command: vtysh -c "show openfabric topology"
  207. -----------------------------------------
  208. Area 1:
  209. IS-IS paths to level-2 routers that speak IP
  210. Vertex Type Metric Next-Hop Interface Parent
  211. pve-node01
  212. 10.0.0.81/32 IP internal 0 pve-node01(4)
  213. pve-node02 TE-IS 4094 pve-node02 en05 pve-node01(4)
  214. pve-node03 TE-IS 4094 pve-node03 en06 pve-node01(4)
  215. 10.0.0.82/32 IP TE 4104 pve-node02 en05 pve-node02(4)
  216. 10.0.0.83/32 IP TE 4104 pve-node03 en06 pve-node03(4)
  217.  
  218. IS-IS paths to level-2 routers that speak IPv6
  219. Vertex Type Metric Next-Hop Interface Parent
  220. pve-node01
  221. fc00::81/128 IP6 internal 0 pve-node01(4)
  222. pve-node02 TE-IS 4094 pve-node02 en05 pve-node01(4)
  223. pve-node03 TE-IS 4094 pve-node03 en06 pve-node01(4)
  224. fc00::82/128 IP6 internal 4104 pve-node02 en05 pve-node02(4)
  225. fc00::83/128 IP6 internal 4104 pve-node03 en06 pve-node03(4)
  226.  
  227. IS-IS paths to level-2 routers with hop-by-hop metric
  228. Vertex Type Metric Next-Hop Interface Parent
  229.  
  230.  
  231.  
  232. -----------------------------------------
  233. Command: vtysh -c "show running-config"
  234. -----------------------------------------
  235. Building configuration...
  236.  
  237. Current configuration:
  238. !
  239. frr version 8.5.2
  240. frr defaults traditional
  241. hostname pve-node01
  242. log syslog informational
  243. service integrated-vtysh-config
  244. !
  245. interface en05
  246. ip router openfabric 1
  247. ipv6 router openfabric 1
  248. exit
  249. !
  250. interface en06
  251. ip router openfabric 1
  252. ipv6 router openfabric 1
  253. exit
  254. !
  255. interface lo
  256. ip router openfabric 1
  257. ipv6 router openfabric 1
  258. openfabric passive
  259. exit
  260. !
  261. router openfabric 1
  262. net 49.0000.0000.0001.00
  263. fabric-tier 0
  264. exit
  265. !
  266. end
  267.  
  268. ----------------------------------------
  269. File: /etc/network/if-up.d/thunderbolt-affinity
  270. -rwxr-xr-x 1 root root 155 Sep 16 2024 /etc/network/if-up.d/thunderbolt-affinity
  271. -----------------------------------------
  272. sleep 5
  273. for id in $(grep 'thunderbolt' /proc/interrupts | awk '{print $1}' | cut -d ':' -f1); do
  274. echo 0f > /proc/irq/$id/smp_affinity
  275. done
Advertisement
Add Comment
Please, Sign In to add comment