Close Menu
DPC Virtual Tips
    Read More

    How to Investigate TCP Retransmissions on Linux

    August 11, 2026

    Slurm Node Is DRAINED: How to Find the Exact Reason

    August 10, 2026

    Why Is My Slurm Job Pending? How to Decode Every Common Reason

    August 9, 2026
    • Home
    • About Us
    • Contact
    • Cookie Policy
    • Comment Policy
    • Privacy Policy
    • Terms of Use
    • Disclaimer
    Tuesday, August 11
    DPC Virtual Tips
    • Home
    • Operating Systems
    • PowerFlex
    • HPC
    • Virtualization
    • About the Author
    • About Us
    • Contact
    DPC Virtual Tips
    Home » Basic VRRP Configuration on VyOS
    Operating Systems

    Basic VRRP Configuration on VyOS

    DaniloBy DaniloOctober 14, 2023Updated:July 30, 2026No Comments4 Mins Read
    Facebook Twitter Pinterest LinkedIn Tumblr Email
    VRRP Configuration on VyOS
    Share
    Facebook Twitter LinkedIn Pinterest Email

    Basic VRRP Configuration on VyOS is an article that explains how to configure the VRRP protocol on the VyOS for router redundancy purposes. In this guide, we will configure a basic VRRP environment using two VyOS routers. We will create the VRRP configuration, validate the MASTER and BACKUP states, and test the virtual IP operation during normal and failover scenarios.

    Basically, What is VRRP?

    VRRP is an acronym for Virtual Router Redundancy Protocol. Is a computer networking protocol for providing IP gateway redundancy for IP networks. If you need to know more about it, please, access the below link:
    Virtual Router Redundancy Protocol – Wikipedia

    About Our Lab Environment

    So, our goal here is to provide a gateway redundancy for a specific network subnet.

    Below, we can see our lab topology:

    • We have both VyOS routers placed on the same VLAN Segment (in this example, we are using the VLAN ID 10)
    • Each VyOS router has an IP address on this VLAN ID 10
    • The Virtual IP that will be used for the VRRP is 10.10.10.100
    • Inside the VRRP topology, one VyOS router has a MASTER role and the other VyOS router has a BACKUP role. In this example, the “vyos-01” is the MASTER, and the “vyos-02” is the BACKUP

    VRRP Configuration for the MASTER VyOS Router

    Here, we have the basic VRRP configuration for the “vyos-01”. As we can see, the option “priority” is used to control what router will be the MASTER role or the BACKUP role. Which higher the priority, the more the chances to be a MASTER:

    configure
    set high-availability vrrp group int hello-source-address '10.10.10.10'
    set high-availability vrrp group int interface 'eth1.10'
    set high-availability vrrp group int peer-address '10.10.10.11'
    set high-availability vrrp group int no-preempt
    set high-availability vrrp group int priority '200'
    set high-availability vrrp group int address '10.10.10.100/24'
    set high-availability vrrp group int vrid '10'
    commit
    save

    VRRP Configuration for the BACKUP VyOS Router

    Here, we have the VRRP configuration for the “vyos-02”:

    configure
    set high-availability vrrp group int hello-source-address '10.10.10.11'
    set high-availability vrrp group int interface 'eth3.10'
    set high-availability vrrp group int peer-address '10.10.10.10'
    set high-availability vrrp group int no-preempt
    set high-availability vrrp group int priority '100'
    set high-availability vrrp group int address '10.10.10.100/24'
    set high-availability vrrp group int vrid '10'
    commit
    save

    Checking VRRP operation on the vyos-01

    Applying the commando “show vrrp” on the “vyos-01”, we can see that this router has the MASTER role on the VRRP infrastructure:

    vyos@vyos-01:~$ show vrrp
    Name    Interface      VRID  State      Priority  Last Transition
    ------  -----------  ------  -------  ----------  -----------------
    int     eth1.10          10  MASTER          200  30m59s

    Checking VRRP operation on the vyos-02

    Applying the same command on the “vyos-02”, we can see that this router has the BACKUP role:

    vyos@vyos-02:~$ show vrrp
    Name    Interface      VRID  State      Priority  Last Transition
    ------  -----------  ------  -------  ----------  -----------------
    int     eth3.10          10  BACKUP          100  22m9s

    Testing the VRRP Virtual IP

    The local network can reach the VRRP Virtual IP normally:

    Testing a ping commando to the IP address 192.168.255.3. In this example, the traffic from our Windows client to this IP address is flowing through the VRRP infrastructure. With the “tracert” command, we can see that the traffic is flowing through the first VyOS router (vyos-01):

    So, from the local network, we can access the VRRP Virtual IP from SSH (just to test):

    Type the username and password for our VyOS router and, that’s it 🙂

    As we can see in the below picture, the VRRP Virtual IP 10.10.10.100 redirects our connection to the “vyos-01” – this is the MASTER router on the VRRP infrastructure:

    But, if we have problems with the “vyos-01”:

    The traffic will be redirected to the “vyos-02” automatically, as we can see in the below picture:

    At this point, our VRRP configuration is working as expected and we can use the VRRP Virtual IP for our local clients normally!

    External reference:
    High Availability Walkthrough — VyOS 1.4.x (sagitta) documentation

    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email
    Previous ArticlePerforming Basic Configurations on the VyOS
    Next Article Configuring BGP Neighbor Between NSX-T and VyOS Router
    Danilo

    Infrastructure Engineer with experience in Virtualization, Linux, Windows Server and learning automation using Python. DPC Virtual Tips was created to share practical tutorials, lab experiences and troubleshooting guides focused on enterprise infrastructure technologies.

    Related Posts

    How to Investigate TCP Retransmissions on Linux

    August 11, 2026

    Linux Process Resource Usage: How to Find Heavy Processes

    August 6, 2026

    Linux ss, lsof, and fuser Commands: A Practical Guide

    August 4, 2026

    Comments are closed.

    Search
    Categories
    • HPC (10)
    • Operating Systems (83)
    • PowerFlex (22)
    • Virtualization (129)
    Read More
    Operating Systems

    How to Investigate TCP Retransmissions on Linux

    By DaniloAugust 11, 20260
    HPC

    Slurm Node Is DRAINED: How to Find the Exact Reason

    By DaniloAugust 10, 20260
    HPC

    Why Is My Slurm Job Pending? How to Decode Every Common Reason

    By DaniloAugust 9, 20260
    Operating Systems

    Linux Process Resource Usage: How to Find Heavy Processes

    By DaniloAugust 6, 20260
    HPC

    Lustre Filesystem Commands: A Practical Admin Guide

    By DaniloAugust 5, 20260
    Latest Posts

    How to Investigate TCP Retransmissions on Linux

    August 11, 2026

    Slurm Node Is DRAINED: How to Find the Exact Reason

    August 10, 2026

    Why Is My Slurm Job Pending? How to Decode Every Common Reason

    August 9, 2026
    Images from Gallery
    hpc main commands
    linux commands
    install rock linux
    lustre fs
    shell scripting
    vSAN Trace Files
    Categories
    • HPC
    • Operating Systems
    • PowerFlex
    • Virtualization
    • Home
    • About Us
    • Contact
    • Cookie Policy
    • Comment Policy
    • Privacy Policy
    • Terms of Use
    • Disclaimer
    Copyright © 2026, DPC Virtual Tips. All rights reserved.

    Type above and press Enter to search. Press Esc to cancel.

    We use cookies to ensure your best experience on our website. If you continue using our website, we'll assume you agree to our cookie policy