Skip to main content

Do you know Virtual Router Redundancy Protocol and its configuration

VRRP is an open standard protocol, which is employed to produce redundancy during a network. it's a network layer protocol (protocol number-112).

The number of routers (group members) during an exceedingly group acts as a virtual logical router which is in a position to be the default gateway of all the local hosts. If one router goes down, one in every of the choice group members can occur for the responsibilities for forwarding the traffic.

Some important terms associated with VRRP :


virtual IP address : An IP address is assigned as a virtual IP address from the local subnet which is configured as a default gateway for all the local hosts.
Virtual MAC address : A virtual MAC address is automatically generated by taking the last 8 bytes because the VRRP group number in hexadecimal. In VRRP, Mac address used is 0000.5e00.01xx. Here, xx is that the VRRP group number in hexadecimal.

Master router :

one in every of the VRRP group member is elected as master router which takes up the responsibility of forwarding the local traffic. The router is elected on the premise of priority. If some group member of VRRP group has higher priority than others then it'll be elected as master router. If the priority is same(by default 100) then the router having the foremost effective IP address will become the master router.

Backup routers :

only 1 of the VRRP group member are visiting become the master router while others are visiting be keep a replica routers. just just just in case the master router fails then one in every of the backup routers will become master
router.

Master advertisement timer :

The master router multicast the keep-alive messages at 224.0.0.18 in every 1 second.

Master dead timer :

The time within which the backup router will take up the responsibilities of Master router if the master advertisement message isn't received. It is, by default, 3.69 seconds.

Prempt :

it's a state during which one in every of the backup routers become the master router (when the master router goes down). Also, when the master router comes up again, it'll become the master router as it’s priority continues to be higher.

Object tracking :

The VRRP object tracking provides some way within which the sole router will become the master router. the present master router continuously polls the tracked object state (such as line protocol is up or down). Suppose if the master router line protocol is down then the priority of backup router are increased dynamically i.e it'll become the master router.

Authentication :

VRRP supports 3 sorts of authentication –

1. No authentication
2. Plain text authentication
3. MD5 authentication


Configuration:



In above given topology, there are 2-routers named R1 and R2, where R1 fa 0/0 ip address is 10.100.1.1/24 and R2 fa0/0 ip address is 10.1.1.2/24.

Assigning IP address to router R1 :

r1# int fa0/0
r1# ip add 10.100.1.1 255.255.255.0
Assigning IP address to router r2.

r2# int fa0/0
r2# ip address 10.100.1.2 255.255.255.0

OK fine hence now, let us providing a actual virtual IP address(10.100.1.100), group name VRRP_NETWY, group number 10 and priority 110. One more thing, here preempt has been enabled by default

Example: In case the master router goes down then after the backup router automatically becomes the master router.

r1# int fa0/0
r1# vrrp 10 ip 10.100.1.100
r1# vrrp 10 name VRRP_NETWY
r1# vrrp 10 priority 110
Now, provide virtual IP address(10.100.1.100), group name VRRP_NETWY and priority 100. Also, group number 10 is assigned.

r2# int fa0/0
r2# vrrp 10 ip 10.100.1.100
r2# vrrp 10 name VRRP_NETWY
r2# vrrp 10 priority 100

Note : As provided priority 110 to r1, therefore, it'll become the master router.

Comments

Popular posts from this blog

How to Reset Steam Password? – Recover Your Steam Password

Are you suffering with Reset Steam Password? This blog will help you. What is Steam? Steam is the online website for getting the best games for paid. If you are a true game lover then you should have an active account on Steam. Many of people lost their password during the  PC clean-up  or any other circumstances. At that time they have to reset Password of all accounts. Then if you facing issues with the password, you forced to Steam reset password to access the Steam account. We are going to share the guide that how to recover your forgotten Steam Password and make your existing account ready. First of all, you should have enough knowledge about what is Steam and why Steam Account required? Why Steam Account Requires? Before jump into password recovery and Login details, let me clear about why Steam Account required? There are several benefits of this Steam Account from where you can easily download PC games as well as software. Though it will be p...

What is STP? - Explain Advantages and Disadvantages

The Spanning Tree Protocol is a network protocol that builds a loop-free logical topology for Ethernet networks. The basic function of STP is to prevent bridge loops and the broadcast radiation that results from them. STP is a protocol. It actively monitors all links of the network. To finds a redundant link, it uses an algorithm, known as the STA (spanning-tree algorithm). The STA algorithm first creates a topology database then it finds and disables the redundant links. Once redundant links are disabled, only the STP-chosen links remain active. If a new link is added or an existing link is removed, the STP re-runs the STA algorithm and re-adjusts all links to reflect the change. STP (Spanning Tree Protocol) automatically removes layer 2 switching loops by shutting down the redundant links. A redundant link is an additional link between two switches. A redundant link is usually created for backup purposes. Just like every coin has two sides, a redundant link, along with...