How To Setup LVS (Linux Virtual Server) Load Balancer on Rocky Linux 8.5

Click here for Govt Schemes

How To Setup LVS (Linux Virtual Server) Load Balancer on Rocky Linux 8.5

in This Tutorial you will Learn " How To Setup LVS (Linux Virtual Server) Load Balancer on Rocky Linux 8.5"

Linux Virtual Server is load balancing software for Linux kernel–based operating systems. LVS is a free and open-source project started by Wensong Zhang in May 1998, subject to the requirements of the GNU General Public License, version 2.
                                       ________________________
                                      | LVS Server  - 192.168.1.20   |
___________________|                                                |_____________________
Backend Server 192.168.1.80 |                            | Backend Server 192.168.1.60|
_________________________________________________________________________________________
cat /etc/system-release ; sestatus ; hostname ; hostname -I ; dnf groupinstall "Development Tools" -y
dnf -y install ipvsadm
echo 'net.ipv4.ip_forward = 1' >> /etc/sysctl.conf
sysctl -p

touch /etc/sysconfig/ipvsadm
systemctl restart ipvsadm ; systemctl enable ipvsadm ; systemctl status ipvsadm
ipvsadm -C
ipvsadm -A -t (ServiceIP:Port) -s (Distribution method)
ipvsadm -A -t 192.168.1.20:80 -s wlc

ipvsadm -a -t (ServiceIP:Port) -r (BackendServerIP:Port) -m
ipvsadm -a -t 192.168.1.20:80 -r 192.168.1.80:80 -m
ipvsadm -a -t 192.168.1.20:80 -r 192.168.1.60:80 -m
ipvsadm -l
firewall-cmd --add-service=http --permanent ; firewall-cmd --reload



Share on Pinterest
Share on LinkedIn
Share on WhatsApp
Share on Telegram



Latest Jobs

Recent Updates


Haryana Goverment Schemes