

Once that’s installed, we’ll write the configuration file which is in /etc/keepalived/nf. On the Ubuntu server we’ll install the keepalived available from the package manager with this: apt-get install keepalived The Alpine linux “PC” at the bottom which is acting as a workstation or desktop computer will have its default route configured to point to 192.168.0.1, the VRRP address. They will both have keepalived installed and through VRRP share virtual IP of 192.168.0.1/24. This tutorial will also work on Ubuntu 18.04, Ubuntu 16.04 and Ubuntu 19.10 Linux systems. You will also learn how to secure your domain using Let’s encrypt SSL certificate. The Ubuntu server has 192.168.0.2/24 on its ens3 interface, while Rocky has 192.168.0.3/24 on its ens3 interface. This tutorial will help you to install Apache web server on Ubuntu 20.04 LTS (Focal Fossa) operating system. The relevant network here is on the bottom half, where a subnet of 192.168.0.0/24 is configured. Once this is decided they will agree on a pre-configured “virtual” IP, or an IP that is not configured on an interface, but a floating one that either router can assume responsibility for should the other one fail for some reason and VRRP messages stop flowing. The way this works is two or more routers exchange VRRP messages on a subnet and based on their configuration, decide who is the master and who is the backup. In other words, you can have two routers and if one goes down, the second one kicks in automatically. One of these many things is the Virtual Router Redundancy Protocol, which provides for high availability for IP networking. Keepalived is an open source software project that can do many things related to high availability.
