diff --git a/P2/add_ip_alpine_1.sh b/P2/add_ip_alpine_1.sh old mode 100755 new mode 100644 diff --git a/P2/add_ip_alpine_2.sh b/P2/add_ip_alpine_2.sh old mode 100755 new mode 100644 diff --git a/P2/multicast_1.sh b/P2/multicast_1.sh old mode 100755 new mode 100644 diff --git a/P2/multicast_2.sh b/P2/multicast_2.sh old mode 100755 new mode 100644 diff --git a/P2/static_1.sh b/P2/static_1.sh old mode 100755 new mode 100644 diff --git a/P2/static_2.sh b/P2/static_2.sh old mode 100755 new mode 100644 diff --git a/P3/P3.gns3project b/P3/P3.gns3project new file mode 100644 index 0000000..467ecd4 Binary files /dev/null and b/P3/P3.gns3project differ diff --git a/P3/add_ip_alpine_1.sh b/P3/add_ip_alpine_1.sh new file mode 100644 index 0000000..f8527c6 --- /dev/null +++ b/P3/add_ip_alpine_1.sh @@ -0,0 +1,2 @@ +#!/bin/sh +ip addr add 20.1.1.1/24 dev eth1 diff --git a/P3/add_ip_alpine_3.sh b/P3/add_ip_alpine_3.sh new file mode 100644 index 0000000..51b8226 --- /dev/null +++ b/P3/add_ip_alpine_3.sh @@ -0,0 +1,2 @@ +#!/bin/sh +ip addr add 20.1.1.2/24 dev eth0 diff --git a/P3/routeur-1.sh b/P3/routeur-1.sh new file mode 100644 index 0000000..d1a302e --- /dev/null +++ b/P3/routeur-1.sh @@ -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 diff --git a/P3/routeur-2.sh b/P3/routeur-2.sh new file mode 100644 index 0000000..17c7e1e --- /dev/null +++ b/P3/routeur-2.sh @@ -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 diff --git a/P3/routeur-3.sh b/P3/routeur-3.sh new file mode 100644 index 0000000..5e1db62 --- /dev/null +++ b/P3/routeur-3.sh @@ -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 diff --git a/P3/routeur-4.sh b/P3/routeur-4.sh new file mode 100644 index 0000000..cdc446a --- /dev/null +++ b/P3/routeur-4.sh @@ -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