feat: part 3 + chore(P2|P3): fix permissions
This commit is contained in:
parent
b0b42b96a6
commit
c5b2e7eb60
Binary file not shown.
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
ip addr add 20.1.1.1/24 dev eth1
|
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
ip addr add 20.1.1.2/24 dev eth0
|
|
@ -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
|
|
@ -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
|
|
@ -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
|
|
@ -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
|
Loading…
Reference in New Issue