feat: part 3 + chore(P2|P3): fix permissions

This commit is contained in:
gbrochar 2025-01-13 12:55:00 +01:00
parent b0b42b96a6
commit c5b2e7eb60
13 changed files with 123 additions and 0 deletions

0
P2/add_ip_alpine_1.sh Executable file → Normal file
View File

0
P2/add_ip_alpine_2.sh Executable file → Normal file
View File

0
P2/multicast_1.sh Executable file → Normal file
View File

0
P2/multicast_2.sh Executable file → Normal file
View File

0
P2/static_1.sh Executable file → Normal file
View File

0
P2/static_2.sh Executable file → Normal file
View File

BIN
P3/P3.gns3project Normal file

Binary file not shown.

2
P3/add_ip_alpine_1.sh Normal file
View File

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

2
P3/add_ip_alpine_3.sh Normal file
View File

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

32
P3/routeur-1.sh Normal file
View File

@ -0,0 +1,32 @@
echo """conf t
hostname routeur_gbrochar-1
no ipv6 forwarding
!
interface eth0
ip address 10.1.1.1/30
!
interface eth1
ip address 10.1.1.5/30
!
interface eth2
ip address 10.1.1.9/30
!
interface lo
ip address 1.1.1.1/32
!
router bgp 1
neighbor ibgp peer-group
neighbor ibgp remote-as 1
neighbor ibgp update-source lo
bgp listen range 1.1.1.0/29 peer-group ibgp
!
address-family l2vpn evpn
neighbor ibgp activate
neighbor ibgp route-reflector-client
exit address-family
!
router ospf
network 0.0.0.0/0 area 0
!
line vty
!""" | vtysh

33
P3/routeur-2.sh Normal file
View File

@ -0,0 +1,33 @@
#!/bin/sh
apk add iproute2
alias ip=/sbin/ip
ip link add br0 type bridge
ip link set dev br0 up
ip link add vxlan10 type vxlan id 10 dstport 4789
ip link set dev vxlan10 up
brctl addif br0 vxlan10
brctl addif br0 eth1
echo """conf t
hostname routeur_gbrochar-2
no ipv6 forwarding
!
interface eth0
ip address 10.1.1.2/30
ip ospf area 0
!
interface lo
ip address 1.1.1.2/32
ip ospf area 0
!
router bgp 1
neighbor 1.1.1.1 remote-as 1
neighbor 1.1.1.1 update-source lo
!
address-family l2vpn evpn
neighbor 1.1.1.1 activate
advertise-all-vni
exit-address-family
!
router ospf
!""" | vtysh

21
P3/routeur-3.sh Normal file
View File

@ -0,0 +1,21 @@
echo """conf t
hostname routeur_gbrochar-3
no ipv6 forwarding
!
interface eth1
ip address 10.1.1.6/30
ip osfp area 0
!
interface lo
ip address 1.1.1.3/32
ip osfp area 0
!
router bgp 1
neighbor 1.1.1.1 remote-as 1
neighbor 1.1.1.1 update-source lo
!
address-family l2vpn evpn
neighbor 1.1.1.1 activate
exit-address-family
!
router ospf""" | vtysh

33
P3/routeur-4.sh Normal file
View File

@ -0,0 +1,33 @@
#!/bin/sh
apk add iproute2
alias ip=/sbin/ip
ip link add br0 type bridge
ip link set dev br0 up
ip link add vxlan10 type vxlan id 10 dstport 4789
ip link set dev vxlan10 up
brctl addif br0 vxlan10
brctl addif br0 eth0
echo """conf t
hostname routeur_gbrochar-4
no ipv6 forwarding
!
interface eth2
ip address 10.1.1.10/30
ip ospf area 0
!
interface lo
ip address 1.1.1.4/32
ip ospf area 0
!
router bgp 1
neighbor 1.1.1.1 remote-as 1
neighbor 1.1.1.1 update-source lo
!
address-family l2vpn evpn
neighbor 1.1.1.1 activate
advertise-all-vni
exit-address-family
!
router ospf
!""" | vtysh