How to Install Keepalived on CentOS 8


Easily deploy your favorite applications in seconds at an unbeatable price for your next projects.

Installing Keepalived on CentOS 8

Keepalived is an open-source routing software that provides simple and robust facilities for load balancing and high-availability to Linux-based systems or clusters. It is often used in conjunction with tools like HAProxy or Nginx to manage network traffic efficiently.

Follow the steps below to install Keepalived on CentOS 8:

sudo dnf update -y
sudo dnf install -y keepalived

Create a configuration file for Keepalived:

sudo vi /etc/keepalived/keepalived.conf

Here is an example configuration file:

! Configuration File for keepalived

vrrp_instance VI_1 {
    state MASTER
    interface eth0
    virtual_router_id 51
    priority 100
    advert_int 1
    authentication {
        auth_type PASS
        auth_pass your_password
    virtual_ipaddress {

Make sure to replace eth0 with your network interface name and set a desired password for authentication. Also, modify the virtual IP address to your preferred value.

sudo systemctl enable --now keepalived
  1. Update the system packages:
  2. Install the required packages:
  3. Configure Keepalived:
  4. Enable and start the Keepalived service:

After following these steps, Keepalived will be installed and configured on your CentOS 8 system. You can now utilize its load balancing and high-availability capabilities to enhance your network infrastructure.

Refer A Friend
Get $25

Installing Keepalived
Keepalived installation
Keepalived CentOS 8
How to install Keepalived
Keepalived setup
Installing Keepalived on CentOS 8
Keepalived configuration
Keepalived tutorial
Keepalived CentOS tutorial
Keepalived installation guide

Why Customers Love Us

What our customers say about us

Ready To Get Started For Free?

Create your free account today.