diff --git a/P2/P2.gns3project b/P2/P2.gns3project new file mode 100644 index 0000000..3eb1bb8 Binary files /dev/null and b/P2/P2.gns3project differ 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