VRRP configuration on GNS3

Virtual Router Redundancy Protocol is redundancy protocol. In VRRP one router is Master and all other routers in VRRP group are backup routers. VRRP increase the availability of the default gateway servicing hosts on the same subnet. A VRRP router with IP address of the virtual router and the IP address of the physical interface is act as a master virtual router. Priority also determines if a VRRP router functions as a backup virtual router and the order of ascendancy to becoming a master virtual router if the master virtual router fails.

I have created a topology in gns3, two virtual routers are configured. For virtual router 1, Router A is the owner of IP address 10.0.0.1 and master virtual router, and Router B is the backup virtual router to Router A. Qemu1 is configured with the default gateway IP address of 10.0.0.1.
For virtual router 2, Router B is the owner of IP address 10.0.0.2 and master virtual router, and Router A is the backup virtual router to Router B. Qemu2 is configured with the default gateway IP address of 10.0.0.2. 

 
Configure IP of all interfaces of R1,R2 and R3 according to figure and run any routing protocol, as i have run EIGRP.
R1-configuration:
R1>enable
R1#configure t
R1(config)#int f0/0
R1(config-if)#ip address 10.1.1.1 255.255.255.0
R1(config-if)#no shut
R1(config-if)#vrrp 1 ip 10.1.1.1
R1(config-if)#vrrp 1 priority 150
R1(config-if)#vrrp 2 ip 10.1.1.2


R2-configuration:
R2>enable
R2#configure t
R2(config)#int f0/0
R2(config-if)#ip address 10.1.1.2 255.255.255.0
R2(config-if)#no shut
R2(config-if)#vrrp 1 ip 10.1.1.1
R2(config-if)#vrrp 2 ip 10.1.1.2
R2(config-if)#vrrp 2 priority 150

R3-configuration:
 Assign the IP addresses according to topology, i am using this router for testing purpose so i don't run the VRRP on this router. This is the end point of network.

Qemu1 configuration
tc@box:$ sudo su 
root@box:$ Ifconfig eth0 10.1.1.100 netmask 255.255.255.0
root@box:$ Route add default gw 10.1.1.1 eth0

Qemu2 configuration
tc@box:$ sudo su 
root@box:$ Ifconfig eth0 10.1.1.200 netmask 255.255.255.0
root@box:$ Route add default gw 10.1.1.2 eth0

Verifications:
  1. On R1 run command "show vrrp", in output on R1 VRRP status should be master for vrrp group 1and backup for vrrp group 2.
  2. Run  the same command "show vrrp" on R2, in output on R2 VRRP status should be master for vrrp group 2 and backup for vrrp group 1.
  3. Stop the R1 router and on R2 execute R2#show vrrp, R2 should be master for both vrrp groups 1 and 2.
  4. Start a ping from qemu1 to R3 interfaces IP 30.1.1.2 and stop the router R1, ping should be continue. 
that all thank you....


10 comments:

  1. It is very informative.

    ReplyDelete
  2. May I know the IOS version and sw / router module that is being used in order to configure VRRP and HSRP ? So far I am not able to use "standby" command and "vrrp" commands.Thanks.

    ReplyDelete
  3. It is an old post ...sory i am not sure but i think it was some 3600 or 3700 series IOS.. actually i los my all backup of IOS..right now i dont hav any single IOS otherwise i confirm u the exact one.. try your lack with 3600/3700 series...

    ReplyDelete
  4. thanks. very nice info

    ReplyDelete
  5. I am curious if your master router has DHCP on it how should you configure the backup router for DHCP as you wouldnt wont any conflicts?

    ReplyDelete
  6. Can someone, explain which one is Router A

    ReplyDelete

UA-23728446-1