Template:Networking rutos7 configuration examples vrrp configuration: Difference between revisions

From Teltonika Networks Wiki
(Created page with "==Introduction== The <b>Virtual Router Redundancy Protocol</b> (<b>VRRP</b>) is a computer networking protocol used for automatic default gateway selection for clients on a L...")
 
No edit summary
 
Line 36: Line 36:
The figure below is a screenshot of the VRRP configuration page for the MASTER router:
The figure below is a screenshot of the VRRP configuration page for the MASTER router:


[[File:Networking rutOS7 vrrp configuration webui config.png]]
[[File:Networking rutOS7 vrrp configuration webui config v1.png]]


The configuration for VRRP BACKUP router should be identical with the exception of the <i>Priority</i> parameter (which should have a lower value on VRRP BACKUP routers).
The configuration for VRRP BACKUP router should be identical with the exception of the <i>Priority</i> parameter (which should have a lower value on VRRP BACKUP routers).
Line 53: Line 53:
  IPv4 address: 192.168.1.3
  IPv4 address: 192.168.1.3
  Netmask: 255.255.255.0
  Netmask: 255.255.255.0
  Gateway: 192.168.1.254
  Gateway: 192.168.1.253


If you are unsure of how to set up a static IP, please refer to one of our guides:
If you are unsure of how to set up a static IP, please refer to one of our guides:

Latest revision as of 13:04, 29 June 2022

Introduction

The Virtual Router Redundancy Protocol (VRRP) is a computer networking protocol used for automatic default gateway selection for clients on a LAN network in case the main router (Master) becomes unavailable. Another VRRP router (Backup) then assumes the role of Master; thus backing up the connection.

This page contains a guide on how to configure VRRP on {{{name}}} routers. To see the manual page for VRRP, [[{{{name}}} VRRP|click here]].

Configuration overview

You will need

  • two Teltonika Networks routers (that support VRRP);
  • an end device with an Ethernet port to configure the routers and conduct tests (e.g., a PC or laptop);
  • (recommended) an Ethernet switch.

Topology

[[File:Networking_{{{series}}}_vrrp_configuration_scheme_1.png]]


Explanation The routers and the PC are connected to the same network (192.168.1.0/24 via a switch. The purpose of the system is to provide an Internet connection for the PC via the the MASTER router in case the MASTER fails.

Below is alternate topology that does not contain a switch. The configuration is identical for both cases. However, while the topology above provides a connection backup in case of any type of failure, the topology below will only backup the connection if the MASTER router loses its connection but remains available inside the network (i.e., it will not backup the connection if the MASTER is, for example, powered off).


Alternate topology

[[File:Networking_{{{series}}}_vrrp_configuration_scheme_2.png]]

Configuration

Routers


This section provides the configuration parameters used for the MASTER and BACKUP routers. The table below is contains a summary of the settings used. .

The figure below is a screenshot of the VRRP configuration page for the MASTER router:

The configuration for VRRP BACKUP router should be identical with the exception of the Priority parameter (which should have a lower value on VRRP BACKUP routers).

You can also configure the router to check if there is connection to a certain host, if the connection is lost a lower priority router will then be used as the gateway.

An example configuration for connection checking can be seen here:


For detailed information on the purpose of each configuration field, refer the [[{{{name}}} VRRP|VRRP manual page]].

PC


Now you will need to set up a static IP address configuration on your PC. For this example we will be using the following parameters:

IPv4 address: 192.168.1.3
Netmask: 255.255.255.0
Gateway: 192.168.1.253

If you are unsure of how to set up a static IP, please refer to one of our guides:

Testing and troubleshooting

To test whether the configuration works, terminate the MASTER router's Internet connection (e.g., unplug the cable, remove the SIM card). If everything is okay, the PC should regain its connection to the Internet shortly after that.

Restore the Internet connection to the MASTER router.

See also

  • [[{{{name}}} VRRP|VRRP manual page]]

[[Category:{{{name}}} Configuration Examples]]