Noe Raphanaud 44c9e9c290 lvs
2021-09-15 10:48:03 +02:00

6 lines
194 B
Bash
Executable File

#!/bin/bash
echo "1" > /proc/sys/net/ipv4/ip_forward
ipvsadm -A -t 192.168.0.160:80 -s rr
ipvsadm -a -t 192.168.0.160:80 -r 172.16.0.11:80 -m
ipvsadm -a -t 192.168.0.160:80 -r 172.16.0.12:80 -m