diff --git a/sio2/sisr/05-lb/lvs.sh b/sio2/sisr/05-lb/lvs.sh new file mode 100755 index 0000000..f4ac3aa --- /dev/null +++ b/sio2/sisr/05-lb/lvs.sh @@ -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 + diff --git a/sio2/sisr/05-lb/recup.sh b/sio2/sisr/05-lb/recup.sh new file mode 100755 index 0000000..7cb1970 --- /dev/null +++ b/sio2/sisr/05-lb/recup.sh @@ -0,0 +1,5 @@ +#!/bin/bash +while [ true ] + do + curl -s http://192.168.0.141 -o /dev/null + done