www.glcnetworks.com
VRRP
GLC webinar, 27 july 2017
Achmad Mardiansyah
achmad@glcnetworks.com
GLC Networks, Indonesia
1
www.glcnetworks.com
Agenda
● Introduction
● VRRP Mikrotik
● Demo
● Q & A
2
www.glcnetworks.com
What is GLC?
● Garda Lintas Cakrawala (www.glcnetworks.com)
● An Indonesian company
● Located in Bandung
● Areas: Training, IT Consulting
● Mikrotik Certified Training Partner/Consultant/Distributor
● Ubiquiti Certified Trainer/Consultant
● RedHat Certified Trainer
3
www.glcnetworks.com
About GLC webinar?
● First webinar: january 1, 2010 (title:
tahun baru bersama solaris - new
year with solaris OS)
● As a sharing event with various
topics: linux, networking, wireless,
database, programming, etc
● Regular schedule: every 2 weeks
● Irregular schedule: as needed
● Checking schedule:
http://www.glcnetworks.com/main/sc
hedule
● You are invited to be a presenter
○ No need to be an expert
○ This is a forum for sharing: knowledge,
experiences, information
4
www.glcnetworks.com
Trainer Introduction
● Name: Achmad Mardiansyah
● Base: bandung, Indonesia
● Linux user (since 1999), Mikrotik user (since 2007),
ubnt user (since 2011)
● Certified Trainer (Mikrotik, Ubiquiti, Redhat)
● Certified Consultant
● Work: Telco engineer, Sysadmin, PHP programmer,
and Lecturer
● Personal website: http://achmadjournal.com
● More info:
http://au.linkedin.com/in/achmadmardiansyah
5
www.glcnetworks.com
Please introduce yourself
● Your name
● Your company/university?
● Your networking experience?
● Your mikrotik experience?
● Your expectation from this course?
6
www.glcnetworks.com
VRRP
7
www.glcnetworks.com
What is VRRP
● Virtual Router Redundancy Protocol
● Provides for automatic assignment of available Internet Protocol (IP) routers
to participating hosts
● Increases the availability and reliability of routing paths via automatic default
gateway selections on an IP subnetwork
● Consist of master and slave node
● Provides information on the state of a router, not the prefixes
● Available on single subnet with direct connection between nodes
● Support IPv4 and IPv6
● Described in IETF RFC 5798
8
www.glcnetworks.com
VRRP topology
9
● Master router is forwarding
traffic
● There is an additional virtual IP
on master
● The virtual IP is acting as
gateway
● Virtual IP should use /32
● When master fail, slave will
become Master router
● Virtual IP will move to master
router
www.glcnetworks.com
VRRP on Mikrotik
10
www.glcnetworks.com
VRRP configuration
ROUTER 1
/interface vrrp add name=vrrp-wan
interface=ether1 vrid=10 priority=150
/ip address add address=17.4.5.2/32
interface=vrrp-wan
/interface vrrp add name=vrrp-lan
interface=ether2 vrid=20 priority=150
/ip address add address=192.168.1.1/32
interface=vrrp-lan
/ip address add address=17.4.5.3/29
interface=ether1
/ip address add address=192.168.1.2/24
interface=ether2
ROUTER 2
/interface vrrp add name=vrrp-wan
interface=ether1 vrid=10 priority=100
/ip address add address=17.4.5.2/32
interface=vrrp-wan
/interface vrrp add name=vrrp-lan
interface=ether2 vrid=20 priority=100
/ip address add address=192.168.1.1/32
interface=vrrp-lan
/ip address add address=17.4.5.4/29
interface=ether1
/ip address add address=192.168.1.3/24
interface=ether2
11
www.glcnetworks.com
Other implementation
● VRRP on public interface will waste IP
addresses :-(
● Usually is applied on LAN side
●
12
www.glcnetworks.com
Other parameters
● Preemption mode: when master goes
back live, it will be back to master
● Authentication: provide authentication
on vrrp nodes
13
www.glcnetworks.com
Interested?
Just come to our
training...
Special price for webinar
attendees…
http://www.glcnetworks.c
om/main/schedule
14
www.glcnetworks.com
End of slides
● Thank you for your attention
● Please submit your feedback: http://bit.ly/glcfeedback
● Like our facebook page: “GLC networks”
● Slide: http://www.slideshare.net/r41nbuw
● Recording: https://www.youtube.com/channel/UCI611_IIkQC0rsLWIFIx_yg
● Stay tune with our schedule
15

Mikrotik VRRP

  • 1.
    www.glcnetworks.com VRRP GLC webinar, 27july 2017 Achmad Mardiansyah achmad@glcnetworks.com GLC Networks, Indonesia 1
  • 2.
  • 3.
    www.glcnetworks.com What is GLC? ●Garda Lintas Cakrawala (www.glcnetworks.com) ● An Indonesian company ● Located in Bandung ● Areas: Training, IT Consulting ● Mikrotik Certified Training Partner/Consultant/Distributor ● Ubiquiti Certified Trainer/Consultant ● RedHat Certified Trainer 3
  • 4.
    www.glcnetworks.com About GLC webinar? ●First webinar: january 1, 2010 (title: tahun baru bersama solaris - new year with solaris OS) ● As a sharing event with various topics: linux, networking, wireless, database, programming, etc ● Regular schedule: every 2 weeks ● Irregular schedule: as needed ● Checking schedule: http://www.glcnetworks.com/main/sc hedule ● You are invited to be a presenter ○ No need to be an expert ○ This is a forum for sharing: knowledge, experiences, information 4
  • 5.
    www.glcnetworks.com Trainer Introduction ● Name:Achmad Mardiansyah ● Base: bandung, Indonesia ● Linux user (since 1999), Mikrotik user (since 2007), ubnt user (since 2011) ● Certified Trainer (Mikrotik, Ubiquiti, Redhat) ● Certified Consultant ● Work: Telco engineer, Sysadmin, PHP programmer, and Lecturer ● Personal website: http://achmadjournal.com ● More info: http://au.linkedin.com/in/achmadmardiansyah 5
  • 6.
    www.glcnetworks.com Please introduce yourself ●Your name ● Your company/university? ● Your networking experience? ● Your mikrotik experience? ● Your expectation from this course? 6
  • 7.
  • 8.
    www.glcnetworks.com What is VRRP ●Virtual Router Redundancy Protocol ● Provides for automatic assignment of available Internet Protocol (IP) routers to participating hosts ● Increases the availability and reliability of routing paths via automatic default gateway selections on an IP subnetwork ● Consist of master and slave node ● Provides information on the state of a router, not the prefixes ● Available on single subnet with direct connection between nodes ● Support IPv4 and IPv6 ● Described in IETF RFC 5798 8
  • 9.
    www.glcnetworks.com VRRP topology 9 ● Masterrouter is forwarding traffic ● There is an additional virtual IP on master ● The virtual IP is acting as gateway ● Virtual IP should use /32 ● When master fail, slave will become Master router ● Virtual IP will move to master router
  • 10.
  • 11.
    www.glcnetworks.com VRRP configuration ROUTER 1 /interfacevrrp add name=vrrp-wan interface=ether1 vrid=10 priority=150 /ip address add address=17.4.5.2/32 interface=vrrp-wan /interface vrrp add name=vrrp-lan interface=ether2 vrid=20 priority=150 /ip address add address=192.168.1.1/32 interface=vrrp-lan /ip address add address=17.4.5.3/29 interface=ether1 /ip address add address=192.168.1.2/24 interface=ether2 ROUTER 2 /interface vrrp add name=vrrp-wan interface=ether1 vrid=10 priority=100 /ip address add address=17.4.5.2/32 interface=vrrp-wan /interface vrrp add name=vrrp-lan interface=ether2 vrid=20 priority=100 /ip address add address=192.168.1.1/32 interface=vrrp-lan /ip address add address=17.4.5.4/29 interface=ether1 /ip address add address=192.168.1.3/24 interface=ether2 11
  • 12.
    www.glcnetworks.com Other implementation ● VRRPon public interface will waste IP addresses :-( ● Usually is applied on LAN side ● 12
  • 13.
    www.glcnetworks.com Other parameters ● Preemptionmode: when master goes back live, it will be back to master ● Authentication: provide authentication on vrrp nodes 13
  • 14.
    www.glcnetworks.com Interested? Just come toour training... Special price for webinar attendees… http://www.glcnetworks.c om/main/schedule 14
  • 15.
    www.glcnetworks.com End of slides ●Thank you for your attention ● Please submit your feedback: http://bit.ly/glcfeedback ● Like our facebook page: “GLC networks” ● Slide: http://www.slideshare.net/r41nbuw ● Recording: https://www.youtube.com/channel/UCI611_IIkQC0rsLWIFIx_yg ● Stay tune with our schedule 15