Before touching Keepalived, you need to master the basics of networking, the concepts of high availability and failover, as well as Linux networking and the command line. In this episode you also set up a multi-node lab, install Keepalived, and verify your first installation.

Welcome to the Learn Keepalived series! This series will take you through mastering Keepalived — the open-source daemon for high availability (HA) and load balancing that runs on Linux and uses the VRRP protocol — from foundational concepts all the way to production-grade. There are 23 episodes in total, arranged across six phases.
But before you touch keepalived.conf, there are some core skills and hardware and software that you must prepare. Why are these prerequisites important? Because Keepalived works at the network layer: it manages IPs, sends multicast advertisements, and moves IPs between nodes. If you don't yet understand ARP, priority, and routing, the entire failover behavior will feel like magic.
Episode 0 is your roadmap: we'll make sure your core skills are solid, set up a multi-node lab, install Keepalived, and run your first verification. Once this episode is done, you can follow the rest of the series comfortably.
Keepalived moves a virtual IP between nodes. For that, you need to be comfortable with the following concepts:
192.168.1.100/24.224.0.0.18.Run a quick verification to see your network topology:
ip -brief addr show
ip route show
ip neigh showThe ip -brief addr show command displays interfaces and IP addresses, ip route show shows the routing table, and ip neigh show shows the ARP table. If all three respond, your networking foundation is ready.
High availability means a service stays available even if one node dies. Keepalived uses an active-passive approach: one node becomes MASTER, the other node becomes BACKUP, and when the MASTER dies, the BACKUP takes over the virtual IP. Understand these terms from the start:
We'll dig deep into this election concept in episodes 2 and 4, so make sure the terms above are firmly in your head.
Every Keepalived operation is done through the Linux command line. Get comfortable with ip, ss, systemctl, and journalctl because they'll be used in almost every episode. Optional but a nice bonus: understand the concepts of load balancing and reverse proxy for episode 6 later.
Prepare at least two Linux machines for your lab. They can be two VMs, two LXC containers, or two cloud droplets. The distribution is up to you, but for consistency this series uses Ubuntu 22.04/24.04; RHEL/CentOS examples will be flagged in episode 3. Each node needs:
To test VRRP properly, both nodes must be able to ping each other and not be separated by NAT. Create an internal network if you're using VMs.
Install the required packages before the series continues:
sudo apt update
sudo apt install -y keepalived iproute2 iptables tcpdumpThe sudo apt install -y keepalived command installs the daemon, while tcpdump will be used to dissect VRRP advertisements in episode 7. For RHEL/CentOS, the equivalent packages are keepalived, iproute, and tcpdump via dnf.
For episode 17 later, set up Docker now:
docker --version
docker compose versionVerifying docker compose version confirms the Compose plugin is available. Docker is useful for testing container-based HA architectures without touching your production hosts.
Before moving on to episode 1, enable and inspect the Keepalived service:
sudo systemctl enable --now keepalived
sudo systemctl status keepalived --no-pagerThe output of systemctl status keepalived should show active (running). If there's no configuration yet, the daemon may start with a warning — that's normal because we haven't created keepalived.conf yet; episode 3 will fill it in. To confirm the version:
keepalived --versionNote your Keepalived version number, for example 2.2.7 or 2.2.8. The version determines which features are available, especially the authentication changes we'll discuss in episode 9.
Here's a recap of the prerequisites you've prepared in episode 0:
ip, ss, systemctl, journalctl, tcpdump.iproute2, iptables, and tcpdump.If anything is still missing, stop and complete it before moving on. A strong foundation will make the next 22 episodes feel much lighter.
In this episode 0, you've laid the groundwork for the entire series: understanding networking and HA concepts, setting up a two-node lab, installing Keepalived along with debugging tools, and verifying your first installation.
Key takeaways:
ip, systemctl, and tcpdump are your primary debugging weapons.In episode 1, we'll cover history, background, and why choose Keepalived — from the birth of the daemon by Alexandre Cassen, the VRRP RFC standard, to its comparison with Heartbeat, Corosync/Pacemaker, and native LVS. Make sure your lab is ready, because the Learn Keepalived journey has only just begun!