This commit is contained in:
IDEZ Ugo
2021-09-15 11:05:41 +02:00
parent c4a09f45cd
commit f2b9130a22
2 changed files with 13 additions and 0 deletions

7
sio2/sisr/05-lb/lvs Executable file
View File

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