> For the complete documentation index, see [llms.txt](https://docs.cennso.com/components/cgw/1.12/llms.txt) (all documentation: [llms.txt](https://docs.cennso.com/llms.txt)). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cennso.com/components/cgw/1.12/configuration/vrrp.md).

# VRRP configuration

You can activate and configure Virtual Router Redundancy Protocol (VRRP) based on keepalived. It is possible to create multiple instances, but the names and router IDs must be different.

See the configuration example:

```yaml

vrrp:
  enabled: true
  instances:
    # Virtual IP address
  - vip: 192.0.2.1/24
    # Instance name. It must be adjusted for parallel VRRP sessions only.
    name: instance01
    interface: eth0
    # Route ID. It must be adjusted for parallel VRRP sessions only.
    virtual_router_id: 50
    # Priority. It should differ between routing functions.
    priority: 50
    authPath: secret
    # Interval in which to send gratuitous ARPs in seconds.
    # 0 for no refreshing.
    master_refresh: 10
    # Default state on startup. It can be either MASTER or BACKUP. The default value is MASTER.
    state: BACKUP
```
