Thursday, June 25, 2015

VRRP and HSRP


The Virtual Router Redundancy Protocol (VRRP) is a computer networking protocol that provides for automatic assignment of available Internet Protocol (IP) routers to participating hosts. This increases the availability and reliability of routing paths via automatic default gateway selections on an IP subnetwork.

The Hot Standby Router Protocol (HSRP) is a Cisco proprietary redundancy protocol for
establishing a fault-tolerant default gateway.


Using the diagram above we are going to configure R02 and R03 for VRRP and HSRP using following ip plan.


R02
R03
Fa 0/0 IP
200.100.1.2/30
200.100.1.3/30
Virtual IP
200.100.1.1/30

VRRP


1. First you need to enable vrrp feature
R02(config)#feature vrrp

2. Assign IP address to physical interface. Fa 0/0 is configure in given example.
R02(config)#interface fastEthernet  0/0R02(config-if)# ip address 200.100.1.2 255.255.255.252 

3. Configure vrrp with unique group no
R02(config-if)#vrrp 1

4. Set a description
R02(config-if)#vrrp 1 description ###########Test VRRP###############

5. Assign a priority level to Router. This will help two routers to decide who is master and who is slave. Router which has higher value act as master master and route the traffic. If no value has been configured then default value take as 100. Note that R02 is set as master in given example.
R02(config-if)#vrrp 1 priority 110 

6. Set the virtual IP. This is same for both devices.
R02(config-if)#vrrp 1 address 200.100.1.1   

7. Set a authentication type for security. Authentication type can be plain text or md5.This should be same in both routers.Note that text authentication configures in given example. 
text
vrrp 1 authentication text text-string 
vrrp 1 authentication text-string 
md5
vrrp authentication md5 <key-chain/key-sring> key-chain-name/key-string
R02(config-if)#vrrp 1 authentication cisco123

8. Enable the interface
R02(config-if)#no shutdown

9.end :)
R02(config-if)#end

10. Do the same configuration for R03 with correct IPs and priority no
R03(config)#feature vrrp
R03(config)#interface fastEthernet  0/0
R03(config-if)# ip address 200.100.1.3 255.255.255.252 
R03(config-if)#vrrp 1
R03(config-if)#vrrp 1 description ###########Test VRRP###############
R03(config-if)#vrrp 1 priority 90
R03(config-if)#vrrp 1 address 200.100.1.1   
R03(config-if)#vrrp 1 authentication cisco123
R03(config-if)#no shutdown
R03(config-if)#end

HSRP


1. Assign IP address to physical interface. Fa 0/0 is configure in given example.            
R02(config)#interface fastEthernet  0/0R02(config-if)# ip address 200.100.1.2 255.255.255.252 

2. Configure hsrp with unique group no
R02(config-if)#standby 1

3. Set a description
R02(config-if)#standby 1 name ###########Test HSRP###############


4. Assign a priority level to Router. This will help two routers to decide who is master and who is slave. Router which has higher value act as master master and route the traffic. If no value has been configured then default value take as 100. Note that R02 is set as master in given example.
R02(config-if)#standby 1 priority 110 

5. Set the virtual IP. This is same for both devices.
R02(config-if)#standby 1 address 200.100.1.1  

6. Set a authentication type for security. Authentication type can be plain text or md5.This should be same in both routers.Note that text authentication configures in given example. 
text
standby 1 authentication text text-string 
standby 1 authentication text-string 
md5
standby authentication md5 <key-chain/key-sring> key-chain-name/key-string
R02(config-if)#standby 1 authentication cisco123

7. Enable the interface
R02(config-if)#no shutdown

8.end :)
R02(config-if)#end

9. Do the same configuration for R03 with correct IPs and priority no
R03(config)#interface fastEthernet  0/0
R03(config-if)# ip address 200.100.1.3 255.255.255.252
R03(config-if)#standby 1
R03(config-if)#standby 1 name ###########Test HSRP###############
R03(config-if)#standby 1 priority 90
R03(config-if)#standby 1 address 200.100.1.1
R03(config-if)#standby 1 authentication cisco123
R03(config-if)#no shutdown
R03(config-if)#end




No comments:

Post a Comment