Você está na página 1de 4

HSRP Hot standby Routing Protocol Overview:

R1 and R2 are to work in active or passive mode. In the configuration, R1 is the Router with higher priority. Usually R1 is active and R2 stays in passive mode. Blue area represents HSRP group 10, red area means HSRP group 1. You can check the mechanism when you stop R1, Check with ping from PC1 to PC2s IP. Be patient because to became active state some seconds are needed. PC1 and PC2 are represented by a Cisco Router because GNS3 is not able to use any images for real PCs, so we use a C2621 Router to test our network. You are able to use ping and traceroute to test the whole Network.

Configurations:
Router R1: Building configuration... ! ! some lines deleted! ! hostname R1 ! ! ! some lines deleted! ! interface FastEthernet0/0 ip address 192.168.30.254 255.255.255.0 duplex auto speed auto standby 1 ip 192.168.30.1 ! this is the address for the default GW standby 1 priority 110 standby 1 preempt standby 1 track FastEthernet1/0 20 ! interface FastEthernet1/0 ip address 192.168.20.254 255.255.255.0 duplex auto speed auto standby 10 ip 192.168.20.1 standby 10 priority 120 standby 10 preempt ! ! some lines deleted! ! ! end Router R2 R2# Building configuration... ! ! some lines deleted! ! hostname R2 ! ! some lines deleted! ! interface FastEthernet0/0 ip address 192.168.30.253 255.255.255.0 duplex auto speed auto standby 1 ip 192.168.30.1 standby 1 priority 90 ! interface FastEthernet1/0 ip address 192.168.20.253 255.255.255.0 duplex auto speed auto standby 10 ip 192.168.20.1

standby 10 priority 50 standby 10 preempt ! ! some lines deleted! ! end Configuration for PC1 and PC2

All we have to do is to configure the hostname, to no shutdown the used interfaces and to configure interfaces IP address. Now you have to configure a Default-GW. Well do it with a static Route 0.0.0.0 0.0.0.0 192.168.20.1 for PC1 and 0.0.0.0 0.0.0.0 192.168.30.1 for PC2 (the standby address from HSRP config.) Now its time to test your HSRP-Lab Go to PC1s console to enable mode and try to ping 192.168.30.10. set the repeat option of ping to as higher as default (ping 192.168.30.10 repeat 200). Delete the wire between R1 f0/0 SW2 and attend the reaction of your lab. Reinstall the cable from R1 f0/0 SW1. In a few seconds, R1 gets active again and R2 works in standby mode. Have fun I had

Configuration PC1 PC1# Building configuration... ! hostname PC1 ! ! ! interface FastEthernet0/0 ip address 192.168.20.10 255.255.255.0 duplex auto speed auto ! ! ip classless ip route 0.0.0.0 0.0.0.0 192.168.20.1 ! ! ... ! ! end Configuration PC2 PC2# Building configuration... ! hostname PC2 ! ! ! interface FastEthernet0/0 ip address 192.168.30.10 255.255.255.0 duplex auto speed auto ! ip route 0.0.0.0 0.0.0.0 192.168.30.1 ! ! ! ! end

Você também pode gostar