From b0b42b96a68cbf2317f61a5ec4d0461f353880cf Mon Sep 17 00:00:00 2001 From: gbrochar Date: Sun, 12 Jan 2025 18:36:47 +0100 Subject: [PATCH] feat: part 2 --- P2/P2.gns3project | Bin 0 -> 25395 bytes P2/add_ip_alpine_1.sh | 2 ++ P2/add_ip_alpine_2.sh | 2 ++ P2/multicast_1.sh | 11 +++++++++++ P2/multicast_2.sh | 11 +++++++++++ P2/static_1.sh | 11 +++++++++++ P2/static_2.sh | 11 +++++++++++ 7 files changed, 48 insertions(+) create mode 100644 P2/P2.gns3project create mode 100755 P2/add_ip_alpine_1.sh create mode 100755 P2/add_ip_alpine_2.sh create mode 100755 P2/multicast_1.sh create mode 100755 P2/multicast_2.sh create mode 100755 P2/static_1.sh create mode 100755 P2/static_2.sh diff --git a/P2/P2.gns3project b/P2/P2.gns3project new file mode 100644 index 0000000000000000000000000000000000000000..3eb1bb8880e664b07b64b3b9a2691847df569183 GIT binary patch literal 25395 zcmeHP3piBU+t-cmRJwV&D>s=*XV zPBG*%F=hsp!5EXq%wR6-+v9Rh9M1Rm|NEZjd%myjvDV&e)_#BQ`>ywW_uB8?YwtIi zGF4V$I`nt&`etj1AGX=h{wW_XS4VrlEzX|4>P&00=jV6xgbNLWDLMSm%Ds~BiVBp! z%dVdEY|34nn!49|)499jl@7&eP989OK2hTdg& zl;?;jej-7B;2~O$MqF1!T&>--K*^}|#D$<3`K9}m)fSnwY4{rR^&ek8?08r!*h3N) z0IPla{Ld zQyuJJHC6S}vpwt9MqBLdN}0X(qm%0IZ!s76ZYL9{Ts^;Y(KyRGict?r>vk6jvDiG) zSHNg?k660o=E}NnZT4xu`&1RHW3HuND%{8Pe0RLn>%^Yx?`kRg3sqweO;ZrXoWoXz z-MY+igg0pFKW30yOmzMx5)gx8hu;r>dy*UwfDIqx&02&bFj z1y7P|cAT7Z+UVlLt@7R~v(=~)aStE-Qnw`SKC##&8vW$qhdrFG2XK>plzR>&$Ji;t z66RXbW94w;rDsAmu;EH!Qq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bvcB>t#+H17o}1NEU{> z-r9u|rh^|o>+!E%^{$VFKJM?BjNy9XxHIhgG(%p{?|KUtjUoKF;YWA9kx_5B>wSVA z;*4s3<3}IG^+sY3cfFlUCJ=j6*BgmH-1V|14u34y8_B?M*ITo6A{8*~d#8Ul{vo3q z?s_*Tl7&&OdPA#{hpu|!Z|V$fS>ck){-%JTB_yMNVduxmq?q)NOQDC8wjZ1Hh}9{B z-`DxqNxxY=CfB2qb{t9i$7jLfC%!{lR`?p|;o=B)98$;#(gSO1MpFLqW_>v2;GN^5 Y?7H7%TK}`*RT8Tt7|`rYt>1V43&c}6=Kufz literal 0 HcmV?d00001 diff --git a/P2/add_ip_alpine_1.sh b/P2/add_ip_alpine_1.sh new file mode 100755 index 0000000..c1909ae --- /dev/null +++ b/P2/add_ip_alpine_1.sh @@ -0,0 +1,2 @@ +#!/bin/sh +ip addr add 30.1.1.1/24 dev eth1 diff --git a/P2/add_ip_alpine_2.sh b/P2/add_ip_alpine_2.sh new file mode 100755 index 0000000..1e395b9 --- /dev/null +++ b/P2/add_ip_alpine_2.sh @@ -0,0 +1,2 @@ +#!/bin/sh +ip addr add 30.1.1.2/24 dev eth1 diff --git a/P2/multicast_1.sh b/P2/multicast_1.sh new file mode 100755 index 0000000..eb9b8af --- /dev/null +++ b/P2/multicast_1.sh @@ -0,0 +1,11 @@ +#!/bin/sh +apk add iproute2 +alias ip=/sbin/ip +ip link add br0 type bridge +ip link set dev br0 up +ip addr add 10.1.1.1/24 dev eth0 +ip link add name vxlan10 type vxlan id 10 dev eth0 group 239.1.1.1 dstport 4789 +ip addr add 20.1.1.1/24 dev vxlan10 +brctl addif br0 eth1 +brctl addif br0 vxlan10 +ip link set dev vxlan10 up diff --git a/P2/multicast_2.sh b/P2/multicast_2.sh new file mode 100755 index 0000000..0d8aa42 --- /dev/null +++ b/P2/multicast_2.sh @@ -0,0 +1,11 @@ +#!/bin/sh +apk add iproute2 +alias ip=/sbin/ip +ip link add br0 type bridge +ip link set dev br0 up +ip addr add 10.1.1.2/24 dev eth0 +ip link add name vxlan10 type vxlan id 10 dev eth0 group 239.1.1.1 dstport 4789 +ip addr add 20.1.1.2/24 dev vxlan10 +brctl addif br0 eth1 +brctl addif br0 vxlan10 +ip link set dev vxlan10 up diff --git a/P2/static_1.sh b/P2/static_1.sh new file mode 100755 index 0000000..87481c0 --- /dev/null +++ b/P2/static_1.sh @@ -0,0 +1,11 @@ +#!/bin/sh +apk add iproute2 +alias ip=/sbin/ip +ip link add br0 type bridge +ip link set dev br0 up +ip addr add 10.1.1.1/24 dev eth0 +ip link add name vxlan10 type vxlan id 10 dev eth0 remote 10.1.1.2 local 10.1.1.1 dstport 4789 +ip addr add 20.1.1.1/24 dev vxlan10 +brctl addif br0 eth1 +brctl addif br0 vxlan10 +ip link set dev vxlan10 up diff --git a/P2/static_2.sh b/P2/static_2.sh new file mode 100755 index 0000000..accf86a --- /dev/null +++ b/P2/static_2.sh @@ -0,0 +1,11 @@ +#!/bin/sh +apk add iproute2 +alias ip=/sbin/ip +ip link add br0 type bridge +ip link set dev br0 up +ip addr add 10.1.1.2/24 dev eth0 +ip link add name vxlan10 type vxlan id 10 dev eth0 remote 10.1.1.1 local 10.1.1.2 dstport 4789 +ip addr add 20.1.1.2/24 dev vxlan10 +brctl addif br0 eth1 +brctl addif br0 vxlan10 +ip link set dev vxlan10 up