MikroTik RouterOS v2.9 Reference Manual page 707

Reference manual
Table of Contents

Advertisement

VRRP protocol may be used to make a redundant Internet connection with seamless fail-over. Let
us assume that we have 192.168.1.0/24 network and we need to provide highly available Internet
connection for it. This network should be NATted (to make fail-over with public IPs, use such
dynamic routing protocols as BGP or OSPF together with VRRP). We have connections to two
different Internet Service Providers (ISPs), and one of them is preferred (for example, it is cheaper
or faster).
This example shows how to configure VRRP on the two routers shown on the diagram. The routers
must have initial configuration: interfaces are enabled, each interface have appropriate IP address
(note that each of the two interfaces should have an IP address), routing table is set correctly (it
should have at least a default route). SRC-NAT or masquerading should also be configured before.
See the respective manual chapters on how to make this configuration.
We will assume that the interface the 192.168.1.0/24 network is connected to is named local on
both VRRP routers
Configuring Master VRRP router
First of all we should create a VRRP instance on this router. We will use the priority of 255 for this
router as it should be preferred router.
[admin@MikroTik] ip vrrp> add interface=local priority=255
[admin@MikroTik] ip vrrp> print
Flags: X - disabled, I - invalid, M - master, B - backup
0
M name="vr1" interface=local vrid=1 priority=255 interval=1
preemption-mode=yes authentication=none password="" on-backup=""
on-master=""
Copyright 1999-2007, MikroTik. All rights reserved. Mikrotik, RouterOS and RouterBOARD are trademarks of Mikrotikls SIA.
Other trademarks and registred trademarks mentioned herein are properties of their respective owners.
Page 693 of 695

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents