---
title: "How to set up Virtual Router Redundancy Protocol (VRRP)"
description: "Virtual Router Redundancy Protocol (VRRP) allows one DNS name and IP address to switch between master servers automatically. The setup involves configuring VRRP on master servers and activating it via the keepalived.conf file and a command."
url: "https://docs.itrsgroup.com/docs/faq/op5/360020058114-op5-monitor-how-to-set-up-virtual-router-redundancy-protocol-vrrp/index.html"
---
## About

Virtual Router Redundancy Protocol (VRRP) can be used in this setup to have one DNS-name and one IP address that is primary linked to one of the master servers and if the primary master is unavailable VRRP will automatically detect this and send you to the secondary master.

**Important note:** ITRS does not officially support this procedure.

## Setup

To enable VRRP on your master servers, follow the steps below.
In this example, we have two masters that we want to use VRRP with.
The VRRP IP will be 192.168.1.3 and we bind that IP to the network interface eth0.
The IP and interface will have to change to match your network configuration.

If you already use VRRP in your network, make sure that you use the correct virtual\_router\_id.

 Edit the file `/etc/keepalived/keepalived.conf`

## On the "primary" master

```
vrrp_instance VI_1 {
state MASTER
interface eth0
virtual_router_id 51
priority 200
advert_int 1
virtual_ipaddress {
192.168.1.3 dev eth0
}
}
```

## On the "secondary" master

```
vrrp_instance VI_1 {
   state BACKUP
   interface eth0
   virtual_router_id 51
   priority 100
   advert_int 1
   virtual_ipaddress {
       192.168.1.3 dev eth0
  }
}
```

## Activate VRRP

To activate VRRP, run the following command:

```
## chkconfig keepalived on
```


