feat: part 2

This commit is contained in:
gbrochar 2025-01-12 18:36:47 +01:00
parent f36279ab60
commit b0b42b96a6
7 changed files with 48 additions and 0 deletions

BIN
P2/P2.gns3project Normal file

Binary file not shown.

2
P2/add_ip_alpine_1.sh Executable file
View File

@ -0,0 +1,2 @@
#!/bin/sh
ip addr add 30.1.1.1/24 dev eth1

2
P2/add_ip_alpine_2.sh Executable file
View File

@ -0,0 +1,2 @@
#!/bin/sh
ip addr add 30.1.1.2/24 dev eth1

11
P2/multicast_1.sh Executable file
View File

@ -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

11
P2/multicast_2.sh Executable file
View File

@ -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

11
P2/static_1.sh Executable file
View File

@ -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

11
P2/static_2.sh Executable file
View File

@ -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