SOURCECODEBD.NET

Live Experience

VRRP Configuration

Router1 Configuration
 
 interface fastethernet0/0                      
   ip address 192.168.1.2 255.255.255.0           <- Make sure the IP is on the same subnet as the virtual Gateway1 
   vrrp 1 priority 110                            <- The Priority of the Gateway1
   vrrp 1 ip 192.168.1.1                          <- The Virtual Gateway for the VLAN 1
   vrrp 1 preempt delay minimum 20                <- If the other router fails it will wait 20 sec before becoming the master
   vrrp 1 track 1 decrement 15                    <- If the f0/0/0 Link fails, This command drops the priority by 15
!
 interface fastethernet0/1
   ip address 172.16.1.2 255.255.255.0            <- Make sure the IP is on the same subnet as the virtual Gateway2  
   vrrp 5 priority 110                            <- The Priority of the Gateway2
   vrrp 5 ip 172.16.1.1                           <- The Virtual Gateway for the VLAN 5
   vrrp 5 preempt delay minimum 20                <- If the other router fails it will wait 20 sec before becoming the master
   vrrp 5 track 1 decrement 15                    <- If the f0/0/1 Link fails, This command drops the priority by 15
!
 
 
Router2 Configuration
 
 interface fastethernet0/0.0
   ip address 192.168.1.3 255.255.255.0           <- Make sure the IP is on the same subnet as the virtual Gateway1 
   vrrp 1 priority 110                            <- The Priority of the Gateway1
   vrrp 1 ip 192.168.1.1                          <- The Virtual Gateway for the VLAN 1
   vrrp 1 preempt delay minimum 20                <- If the other router fails it will wait 20 sec before becoming the master
   vrrp 1 track 1 decrement 15                    <- If the f0/0/0 Link fails, This command drops the priority by 15
!
 interface fastethernet0/0.1
   ip address 172.16.1.3 255.255.255.0            <- Make sure the IP is on the same subnet as the virtual Gateway2  
   vrrp 5 priority 110                            <- The Priority of the Gateway2
   vrrp 5 ip 172.16.1.1                           <- The Virtual Gateway for the VLAN 5
   vrrp 5 preempt delay minimum 20                <- If the other router fails it will wait 20 sec before becoming the master
   vrrp 5 track 1 decrement 15                    <- If the f0/0/1 Link fails, This command drops the priority by 15
!
 
Verification:
 
Router1#show vrrp
Router2#show vrrp
You are here: Home / Switching / HOW TO VRRP BASIC CONFIGURATION