This commit is contained in:
LAFORET Kyllian 2021-09-15 11:08:28 +02:00
parent b1a9dd9981
commit 66492933c8
2 changed files with 14 additions and 0 deletions

9
sio2/sisr/05-lb/lvs.sh Executable file
View File

@ -0,0 +1,9 @@
#!/bin/bash
echo "1" > /proc/sys/net/ipv4/ip_forward
ipvsadm -A -t 192.168.0.141:80 -s rr
ipvsadm -a -t 192.168.0.141:80 -r 172.16.0.1:80 -m
ipvsadm -a -t 192.168.0.141:80 -r 172.16.0.2:80 -m

5
sio2/sisr/05-lb/recup.sh Executable file
View File

@ -0,0 +1,5 @@
#!/bin/bash
while [ true ]
do
curl -s http://192.168.0.141 -o /dev/null
done