10 lines
196 B
Bash
Executable File
10 lines
196 B
Bash
Executable File
#!/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
|
|
|