docs(setup): Added documentation for the testbed

Signed-off-by: Tuan-Dat Tran <tuan-dat.tran@tudattr.dev>
This commit is contained in:
Tuan-Dat Tran
2024-12-30 17:17:24 +01:00
parent d5847cd916
commit 79ab026508
9 changed files with 385 additions and 122 deletions

35
scripts/10-host_setup.sh Normal file
View File

@@ -0,0 +1,35 @@
#!/bin/bash
# node1
sudo ./30-add_namespaces.sh tb_node1_if0
sudo ./30-add_namespaces.sh tb_node1_if1
sudo ./30-add_namespaces.sh tb_node1_if2
sudo ./30-add_namespaces.sh tb_node1_if3
sudo ./31-configure_interfaces.sh tb_node1_if0 enp6s0f0np0 10.0.1.1/16
sudo ./31-configure_interfaces.sh tb_node1_if1 enp6s0f1np1 10.0.1.2/16
sudo ./31-configure_interfaces.sh tb_node1_if2 enp6s0f2np2 10.0.1.3/16
sudo ./31-configure_interfaces.sh tb_node1_if3 enp6s0f3np3 10.0.1.4/16
sudo ./32-setup_arp.sh tb_node1_if0 enp6s0f0np0
sudo ./32-setup_arp.sh tb_node1_if1 enp6s0f1np1
sudo ./32-setup_arp.sh tb_node1_if2 enp6s0f2np2
sudo ./32-setup_arp.sh tb_node1_if3 enp6s0f3np3
# node2
# Create Namespace: Testbed on Node1 for Interface n
sudo ./30-add_namespaces.sh tb_node2_if0
sudo ./30-add_namespaces.sh tb_node2_if1
sudo ./30-add_namespaces.sh tb_node2_if2
sudo ./30-add_namespaces.sh tb_node2_if3
sudo ./31-configure_interfaces.sh tb_node2_if0 enp6s0f0np0 10.0.2.1/16
sudo ./31-configure_interfaces.sh tb_node2_if1 enp6s0f1np1 10.0.2.2/16
sudo ./31-configure_interfaces.sh tb_node2_if2 enp6s0f2np2 10.0.2.3/16
sudo ./31-configure_interfaces.sh tb_node2_if3 enp6s0f3np3 10.0.2.4/16
# execute arp
sudo ./32-setup_arp.sh tb_node2_if0 enp6s0f0np0
sudo ./32-setup_arp.sh tb_node2_if1 enp6s0f1np1
sudo ./32-setup_arp.sh tb_node2_if2 enp6s0f2np2
sudo ./32-setup_arp.sh tb_node2_if3 enp6s0f3np3