Amateurfunk Ulm - Forum
Topologie - Druckversion

+- Amateurfunk Ulm - Forum (https://forum.amateurfunk-ulm.de)
+-- Forum: Konfiguration (https://forum.amateurfunk-ulm.de/forumdisplay.php?fid=10)
+--- Forum: AREDN für Ulm (https://forum.amateurfunk-ulm.de/forumdisplay.php?fid=11)
+--- Thema: Topologie (/showthread.php?tid=31)



Topologie - DK2FK - 07-04-2023

Die aktuelle Netzwerktopologie lässt sich mittels nc auf den lokalen Knoten im PlantUML format exportieren

Code:
nc localnode.local.mesh 2004

Das sollte dann so aussehen:

Code:
digraph topology
{
"10.197.33.213" -> "10.33.246.96"[label="0.100", style=solid];
"10.197.33.213"[shape=box];
"10.197.33.213" -> "10.74.242.90"[label="0.100", style=solid];
"10.33.246.96" -> "10.34.160.49"[label="0.100"];
"10.33.246.96" -> "10.35.44.200"[label="0.100"];
"10.33.246.96" -> "10.48.229.97"[label="0.100"];
"10.33.246.96" -> "10.197.33.213"[label="0.100"];
"10.34.160.49" -> "10.33.246.96"[label="0.100"];
"10.35.44.200" -> "10.33.246.96"[label="0.100"];
"10.35.44.200" -> "10.123.132.38"[label="0.100"];
"10.48.181.27" -> "10.48.200.146"[label="1.000"];
"10.48.181.27" -> "10.48.229.97"[label="1.000"];
"10.48.181.27" -> "10.178.62.180"[label="0.100"];
"10.48.200.146" -> "10.48.181.27"[label="1.000"];
"10.48.200.146" -> "10.48.229.97"[label="1.000"];
"10.48.229.97" -> "10.33.246.96"[label="0.100"];
"10.48.229.97" -> "10.48.181.27"[label="1.000"];
"10.48.229.97" -> "10.48.200.146"[label="1.000"];
"10.74.242.90" -> "10.197.33.213"[label="0.100"];
"10.123.132.38" -> "10.35.44.200"[label="0.100"];
"10.178.62.180" -> "10.48.181.27"[label="0.100"];
"10.197.33.213" -> "10.33.246.96"[label="0.100"];
"10.197.33.213" -> "10.74.242.90"[label="0.100"];
"10.48.229.97" -> "10.135.43.8/29"[label="HNA"];
"10.135.43.8/29"[shape=diamond];
"10.48.181.27" -> "10.133.168.216/29"[label="HNA"];
"10.133.168.216/29"[shape=diamond];
"10.48.200.146" -> "10.134.68.144/29"[label="HNA"];
"10.134.68.144/29"[shape=diamond];
"10.123.132.38" -> "10.123.132.38/32"[label="HNA"];
"10.123.132.38/32"[shape=diamond];
"10.34.160.49" -> "10.21.1.136/29"[label="HNA"];
"10.21.1.136/29"[shape=diamond];
"10.33.246.96" -> "10.15.179.0/29"[label="HNA"];
"10.15.179.0/29"[shape=diamond];
"10.178.62.180" -> "10.145.245.160/29"[label="HNA"];
"10.145.245.160/29"[shape=diamond];
"10.178.62.180" -> "10.178.62.180/32"[label="HNA"];
"10.178.62.180/32"[shape=diamond];
"10.74.242.90" -> "10.87.146.208/29"[label="HNA"];
"10.87.146.208/29"[shape=diamond];
"10.35.44.200" -> "10.25.102.64/29"[label="HNA"];
"10.25.102.64/29"[shape=diamond];
"10.35.44.200" -> "10.35.44.200/32"[label="HNA"];
"10.35.44.200/32"[shape=diamond];
"10.197.33.213" -> "0.0.0.0/0"[label="HNA"];
"0.0.0.0/0"[shape=diamond];
"10.197.33.213" -> "10.197.33.213/32"[label="HNA"];
"10.197.33.213/32"[shape=diamond];
"10.197.33.213" -> "10.41.14.168/29"[label="HNA"];
"10.41.14.168/29"[shape=diamond];
}

Um das ganze mit Plantuml zu konvertieren muss man noch den Zeilenumbruch nach toppology durch ein Leerzeichen ersetzen und das ganze mit @startuml und @enduml einrahmen.

Code:
@startuml
digraph topology {
"10.197.33.213" -> "10.33.246.96"[label="0.100", style=solid];
"10.197.33.213"[shape=box];
"10.197.33.213" -> "10.74.242.90"[label="0.100", style=solid];
"10.33.246.96" -> "10.34.160.49"[label="0.100"];
"10.33.246.96" -> "10.35.44.200"[label="0.100"];
"10.33.246.96" -> "10.48.229.97"[label="0.100"];
"10.33.246.96" -> "10.197.33.213"[label="0.100"];
"10.34.160.49" -> "10.33.246.96"[label="0.100"];
"10.35.44.200" -> "10.33.246.96"[label="0.100"];
"10.35.44.200" -> "10.123.132.38"[label="0.100"];
"10.48.181.27" -> "10.48.200.146"[label="1.000"];
"10.48.181.27" -> "10.48.229.97"[label="1.000"];
"10.48.181.27" -> "10.178.62.180"[label="0.100"];
"10.48.200.146" -> "10.48.181.27"[label="1.000"];
"10.48.200.146" -> "10.48.229.97"[label="1.000"];
"10.48.229.97" -> "10.33.246.96"[label="0.100"];
"10.48.229.97" -> "10.48.181.27"[label="1.000"];
"10.48.229.97" -> "10.48.200.146"[label="1.000"];
"10.74.242.90" -> "10.197.33.213"[label="0.100"];
"10.123.132.38" -> "10.35.44.200"[label="0.100"];
"10.178.62.180" -> "10.48.181.27"[label="0.100"];
"10.197.33.213" -> "10.33.246.96"[label="0.100"];
"10.197.33.213" -> "10.74.242.90"[label="0.100"];
"10.48.229.97" -> "10.135.43.8/29"[label="HNA"];
"10.135.43.8/29"[shape=diamond];
"10.48.181.27" -> "10.133.168.216/29"[label="HNA"];
"10.133.168.216/29"[shape=diamond];
"10.48.200.146" -> "10.134.68.144/29"[label="HNA"];
"10.134.68.144/29"[shape=diamond];
"10.123.132.38" -> "10.123.132.38/32"[label="HNA"];
"10.123.132.38/32"[shape=diamond];
"10.34.160.49" -> "10.21.1.136/29"[label="HNA"];
"10.21.1.136/29"[shape=diamond];
"10.33.246.96" -> "10.15.179.0/29"[label="HNA"];
"10.15.179.0/29"[shape=diamond];
"10.178.62.180" -> "10.145.245.160/29"[label="HNA"];
"10.145.245.160/29"[shape=diamond];
"10.178.62.180" -> "10.178.62.180/32"[label="HNA"];
"10.178.62.180/32"[shape=diamond];
"10.74.242.90" -> "10.87.146.208/29"[label="HNA"];
"10.87.146.208/29"[shape=diamond];
"10.35.44.200" -> "10.25.102.64/29"[label="HNA"];
"10.25.102.64/29"[shape=diamond];
"10.35.44.200" -> "10.35.44.200/32"[label="HNA"];
"10.35.44.200/32"[shape=diamond];
"10.197.33.213" -> "0.0.0.0/0"[label="HNA"];
"0.0.0.0/0"[shape=diamond];
"10.197.33.213" -> "10.197.33.213/32"[label="HNA"];
"10.197.33.213/32"[shape=diamond];
"10.197.33.213" -> "10.41.14.168/29"[label="HNA"];
"10.41.14.168/29"[shape=diamond];
}
@enduml

Konvertiert sah das dann heute bei mir so aus:
[Bild: dLHDJyCm3BttLrGzWnSdQTeA3OaR9_x0nA5JfsrI...S_9VrCakGB]


RE: Topologie - DK2FK - 07-04-2023

..und falls jemand mit JSON basteln möchte: http://localnode.local.mesh:9090/

Eventuell kann man da ja relativ einfach mit d3.js was basteln: https://observablehq.com/@d3/force-directed-graph ...müsste mir das aber noch mal genauer anschauen.