VRRP
This chapter shows you how to configure and monitor the Virtual Router Redundancy Protocol (VRRP) on the Switch.
VRRP Overview
Each host on a network is configured to send packets to a statically configured default gateway (this Switch). The default gateway can become a single point of failure. Virtual Router Redundancy Protocol (VRRP), defined in RFC 2338, allows you to create redundant backup gateways to ensure that the default gateway of a host is always available.
In VRRP, a virtual router (VR) represents a number of physical layer-3 devices. An IP address is associated with the virtual router. A layer-3 device having the same IP address is the preferred master router while the other Layer-3 devices are the backup routers. The master router forwards traffic for the virtual router. When the master router becomes unavailable, a backup router assumes the role of the master router until the master router comes back up and takes over.
The following figure shows a VRRP network example with the switches (A and B) implementing one virtual router VR1 to ensure the link between the host X and the uplink gateway G. Host X is configured to use VR1 (192.168.1.20) as the default gateway. If switch A has a higher priority, it is the master router. Switch B, having a lower priority, is the backup router.
If switch A (the master router) is unavailable, switch B takes over. Traffic is then processed by switch B.
VRRP Status
Click NETWORKING > VRRP in the navigation panel to display the VRRP Status screen as shown next.
The following table describes the labels in this screen.
NETWORKING > VRRP > VRRP Status
label | description |
|---|
Index | This field displays the index number of a rule. |
Network | This field displays the IP address and the subnet mask bits of an IP routing domain that is associated to a virtual router. |
Virtual Router ID | This field displays the ID number of the virtual router. |
Virtual Router Status | This field displays the status of the virtual router. This field is Master indicating that this Switch functions as the master router. This field is Backup indicating that this Switch functions as a backup router. This field displays Init when this Switch is initiating the VRRP protocol or when the Uplink Status field displays Dead. |
Uplink Status | This field displays the status of the link between this Switch and the uplink gateway. This field is Alive indicating that the link between this Switch and the uplink gateway is up. Otherwise, this field is Dead. This field displays Probe when this Switch is check for the link state. |
Poll Interval(s) | The text box displays how often (in seconds) this screen refreshes. You may change the refresh interval by typing a new number in the text box and then clicking Set Interval. |
Stop | Click Stop to halt system statistic polling. |
VRRP Setup
The following sections describe the different parts of the VRRP Setup screen.
IP Interface Setup
Before configuring VRRP, first create an IP interface (or routing domain) in the SYSTEM > IP Setup > IP Setup screen.
Click NETWORKING > VRRP > VRRP Setup to display the screen as shown next.

You can only configure VRRP on interfaces with unique VLAN IDs.

Routing domains with the same VLAN ID are not displayed in the table indicated.
The following table describes the labels in this screen.
NETWORKING > VRRP > VRRP Setup: IP Interface
label | description |
|---|
Index | This field displays the index number of an entry. |
Network | This field displays the IP address and number of subnet mask bit of an IP domain. |
Authentication | Select None to disable authentication. This is the default setting. Select Simple to use a simple password to authenticate VRRP packet exchanges on this interface. |
Key | When you select Simple in the Authentication field, enter a password key (up to eight printable ASCII characters except [ ? ], [ | ], [ ' ], [ " ] or [ , ]) in this field. |
Apply | Click Apply to save your changes to the Switch’s run-time memory. The Switch loses these changes if it is turned off or loses power, so use the Save link on the top navigation panel to save your changes to the non-volatile memory when you are done configuring. |
Cancel | Click Cancel to discard all changes made in this table. |
VRRP Parameters
This section describes the VRRP parameters.
Advertisement Interval
The master router sends out Hello messages to let the other backup routers know that it is still up and running. The time interval between sending the Hello messages is the advertisement interval. By default, a Hello message is sent out every second.
If the backup routers do not receive a Hello message from the master router after this interval expires, it is assumed that the master router is down. Then the backup router with the highest priority becomes the master router.

All routers participating in the virtual router must use the same advertisement interval.
Priority
Configure the priority level (1 to 254) to set which backup router to take over in case the master router goes down. The backup router with the highest priority will take over. The priority of the VRRP router that owns the IP address(es) associated with the virtual router is 255.
Preempt Mode
If the master router is unavailable, a backup router assumes the role of the master router. However, when another backup router with a higher priority joins the network, it will preempt the lower priority backup router that is the master. Disable preempt mode to prevent this from happening.
By default, a layer 3 device with the same IP address as the virtual router will become the master router regardless of the preempt mode.
VRRP Summary
View the VRRP configuration summary at the bottom of the screen. Click NETWORKING > VRRP > VRRP Setup to display the screen as shown next.
The following table describes the labels in this screen.
NETWORKING > VRRP > VRRP Setup: Summary
label | description |
|---|
| Select an entry’s checkbox to select a specific entry. Otherwise, select the checkbox in the table heading row to select all entries. |
Index | This field displays the index number of an entry. |
Active | This field shows whether a VRRP entry is enabled or disabled. |
Name | This field displays a descriptive name of an entry. |
Network | This field displays the IP address and subnet mask of an interface. |
Virtual Router ID | This field displays the ID number of a virtual router. |
Primary Virtual IP | This field displays the IP address of the primary virtual router. |
Uplink Gateway | This field displays the IP address of the uplink gateway. |
Priority | This field displays the priority level (1 to 255) of the entry. |
Add/Edit | Click Add/Edit to add a new entry or edit a selected one. |
Delete | Click Delete to remove the selected entries. |
Add/Edit VRRP Parameters
After you set up an IP interface, view and configure the VRRP parameters in the VRRP Setup screen.
Click Add/Edit, or select an entry and click Add/Edit in the lower section in the NETWORKING > VRRP > VRRP Setup screen to display this screen.
The following table describes the labels in this screen.
NETWORKING > VRRP > VRRP Setup: VRRP Parameters > Add/Edit
label | description |
|---|
Active | Enable the switch button to enable this VRRP entry. |
Name | Enter a descriptive name (up to 32 printable ASCII characters except [ ? ], [ | ], [ ' ], [ " ] or [ , ]) for identification purposes. |
Network | Select an IP domain to which this VRRP entry applies. |
Virtual Router ID | Select a virtual router number (1 to 7) for which this VRRP entry is created. You can configure up to seven virtual routers for one network. |
Advertisement Interval (s) | Specify the number of seconds between Hello message transmissions. |
Preempt Mode | Select this option to activate preempt mode. |
Priority | Enter a number (between 1 and 254) to set the priority level. The bigger the number, the higher the priority. This field is 100 by default. |
Uplink Gateway | Enter the IP address of the uplink gateway in dotted decimal notation. The Switch checks the link to the uplink gateway. |
Response Ping | Select this option to have the Switch respond to a ping that is sent to the virtual IP address. |
Primary Virtual IP | Enter the IP address of the primary virtual router in dotted decimal notation. |
Secondary Virtual IP | This field is optional. Enter the IP address of a secondary virtual router in dotted decimal notation. This field is ignored when you enter 0.0.0.0. |
Apply | Click Apply to save your changes to the Switch’s run-time memory. The Switch loses these changes if it is turned off or loses power, so use the Save link on the top navigation panel to save your changes to the non-volatile memory when you are done configuring. |
Clear | Click Clear to clear the fields to the factory defaults. |
Cancel | Click Cancel to not save the configuration you make and return to the last screen. |
VRRP Configuration Examples
The following sections show two VRRP configuration examples on the Switch.
One Subnet Network Example
The figure below shows a simple VRRP network with only one virtual router VR1 (VRID =1) and two switches. The network is connected to the WAN through an uplink gateway G (172.16.1.100). The host computer X is set to use VR1 as the default gateway.
You want to set switch A as the master router. Configure the VRRP parameters in the VRRP Setup screens on the switches as shown in the figures below.
After configuring and saving the VRRP configuration, the VRRP Status screens for both switches are shown next.
Two Subnets Example
The following figure depicts an example in which two switches share the network traffic. Hosts in the two network groups use different default gateways. Each switch is configured to backup a virtual router using VRRP.
You wish to configure switch A as the master router for virtual router VR1 and as a backup for virtual router VR2. On the other hand, switch B is the master for VR2 and a backup for VR1.
You need to configure the
VRRP Configuration screen for virtual router VR2 on each switch, while keeping the VRRP configuration in example 1 for virtual router
VR1 (refer to
Two Subnets Example). Configure the VRRP parameters on the switches as shown in the figures below.
After configuring and saving the VRRP configuration, the VRRP Status screens for both switches are shown next.