@ -0,0 +1,5 @@ |
|||
name: swarmlab_network-adhoc |
|||
title: swarmlab_network-adhoc |
|||
version: docs |
|||
nav: |
|||
- modules/ROOT/nav.adoc |
After Width: | Height: | Size: 20 KiB |
After Width: | Height: | Size: 125 KiB |
After Width: | Height: | Size: 27 KiB |
After Width: | Height: | Size: 24 KiB |
After Width: | Height: | Size: 70 KiB |
After Width: | Height: | Size: 24 KiB |
After Width: | Height: | Size: 7.9 KiB |
After Width: | Height: | Size: 35 KiB |
After Width: | Height: | Size: 12 KiB |
After Width: | Height: | Size: 58 KiB |
After Width: | Height: | Size: 58 KiB |
After Width: | Height: | Size: 216 KiB |
After Width: | Height: | Size: 80 KiB |
After Width: | Height: | Size: 23 KiB |
After Width: | Height: | Size: 70 KiB |
After Width: | Height: | Size: 70 KiB |
@ -0,0 +1,2 @@ |
|||
* xref:index.adoc[network-adhoc] |
|||
* xref:index-setup.adoc[setup] |
@ -0,0 +1,87 @@ |
|||
= Setup |
|||
|
|||
|
|||
== Intro |
|||
|
|||
[.float-group] |
|||
-- |
|||
[.right] |
|||
image::ROOT:swarm-poc.png[float=right] |
|||
|
|||
:hardbreaks: |
|||
|
|||
{empty} + |
|||
{empty} |
|||
|
|||
:!hardbreaks: |
|||
|
|||
.From -> To |
|||
|
|||
* [*] monolithic -> networking architecture |
|||
* [*] static -> Dynamic |
|||
* [*] host based -> Service based |
|||
* [*] linear -> agile |
|||
-- |
|||
|
|||
TIP: You will learn to code, coordinate and orchestrate a swarm of self-acting nodes. |
|||
|
|||
== Install systemd-networkd |
|||
|
|||
|
|||
.systemd-networkd |
|||
[source,sh] |
|||
---- |
|||
|
|||
# deinstall classic networking |
|||
|
|||
#sudo -Es # if not already done |
|||
systemctl daemon-reload |
|||
systemctl disable --now ifupdown dhcpcd dhcpcd5 isc-dhcp-client isc-dhcp-common rsyslog |
|||
apt --autoremove purge -f ifupdown dhcpcd dhcpcd5 isc-dhcp-client isc-dhcp-common rsyslog |
|||
rm -r /etc/network /etc/dhcp |
|||
|
|||
# setup/enable systemd-resolved and systemd-networkd |
|||
|
|||
systemctl disable --now avahi-daemon libnss-mdns |
|||
apt --autoremove -f purge avahi-daemon |
|||
apt install -f libnss-resolve |
|||
ln -sf /run/systemd/resolve/stub-resolv.conf /etc/resolv.conf |
|||
apt-mark hold avahi-daemon dhcpcd dhcpcd5 ifupdown isc-dhcp-client isc-dhcp-common libnss-mdns openresolv raspberrypi-net-mods rsyslog |
|||
systemctl enable systemd-networkd.service systemd-resolved.service |
|||
#exit |
|||
|
|||
cat > /etc/systemd/network/04-wired.network <<EOF |
|||
[Match] |
|||
Name=e* |
|||
|
|||
[Network] |
|||
## Uncomment only one option block |
|||
# Option: using a DHCP server and multicast DNS |
|||
LLMNR=no |
|||
LinkLocalAddressing=no |
|||
MulticastDNS=yes |
|||
DHCP=ipv4 |
|||
|
|||
# Option: using link-local ip addresses and multicast DNS |
|||
#LLMNR=no |
|||
#LinkLocalAddressing=yes |
|||
#MulticastDNS=yes |
|||
|
|||
# Option: using static ip address and multicast DNS |
|||
# (example, use your settings) |
|||
Address=192.168.1.18/24 |
|||
Gateway=192.168.1.1 |
|||
DNS=8.8.8.8 1.1.1.1 |
|||
MulticastDNS=yes |
|||
EOF |
|||
|
|||
echo "reboot" |
|||
---- |
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
@ -0,0 +1,33 @@ |
|||
= Ad Hoc Network! |
|||
|
|||
image::ROOT:swarmlab.png[swarmlab,150,float=right] |
|||
|
|||
The "data collector" is a lightweight microservice application that collect and sends metadata, collected from a system, such as an IoT network, distributed system, data center, etc to a storage system. |
|||
|
|||
|
|||
* The data are transmitted, stored, and can be retrieved at any time. |
|||
|
|||
*"data collector"* are developed with a platform agnostic"container-based application strategy |
|||
|
|||
[NOTE] |
|||
==== |
|||
|
|||
A platform-agnostic approach offers many choices |
|||
|
|||
* Can be seamlessly moved from local development machine to production deployments |
|||
|
|||
* Flexibility, Reliability |
|||
|
|||
** Avoiding Vendor Lock-In |
|||
|
|||
* From Code to full-blown systems |
|||
|
|||
** from a single container on your local machine |
|||
|
|||
** to a running cloud native - container-based environment |
|||
==== |
|||
|
|||
|
|||
|
|||
|
|||
|
@ -0,0 +1,4 @@ |
|||
antora --fetch /antora/site-intro.yml |
|||
antora /antora/site-intro.yml |
|||
ifconfig |
|||
http-server build/site -c-1 |
@ -0,0 +1,4 @@ |
|||
antora --fetch /antora/site.yml |
|||
antora /antora/site.yml |
|||
ifconfig |
|||
http-server build/site -c-1 |
@ -0,0 +1,21 @@ |
|||
site: |
|||
title: Swarmlab network-adhoc |
|||
url: http://docs.swarmlab.io/SwarmLab-HowTos/swarmlab/docs |
|||
start_page: swarmlab_network-adhoc::index.adoc |
|||
content: |
|||
sources: |
|||
- url: https://git.swarmlab.io:3000/docs/Documentation.git |
|||
branches: master |
|||
start_path: network-adhoc |
|||
ui: |
|||
bundle: |
|||
url: https://git.swarmlab.io:3000/docs/docs/raw/branch/master/ui-bundle.zip |
|||
snapshot: true |
|||
supplemental_files: ./supplemental-ui |
|||
asciidoc: |
|||
attributes: |
|||
:plantuml-server-url: http://www.plantuml.com/plantuml |
|||
extensions: |
|||
- '@djencks/asciidoctor-mathjax' |
|||
- asciidoctor-plantuml |
|||
|