HSRP Config
HSRP Config
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname R1
R1(config)#interface gigabitethernet 0/1
R1(config-if)#ip address 192.168.1.3 255.255.255.0
R1(config-if)#no shutdown
R1(config-if)#
%LINK-5-CHANGED: Interface GigabitEthernet0/1, changed state to up
R1(config-if)#exit
R1(config)#interface serial 0/0/0
R1(config-if)#ip address 20.0.0.1 255.0.0.0
R1(config-if)#no shutdown
Router>enable
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname R2
R2(config)#interface gigabitethernet 0/2
R2(config-if)#ip address 192.168.1.4 255.255.255.0
R2(config-if)#no shutdown
R2(config-if)#
%LINK-5-CHANGED: Interface GigabitEthernet0/2, changed state to up
R2(config-if)#exit
R2(config)#interface serial 0/0/1
R2(config-if)#ip address 30.0.0.1 255.0.0.0
R2(config-if)#no shutdown
Router>enable
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname R3
R3(config)#interface serial 0/0/0
R3(config-if)#ip address 20.0.0.2 255.0.0.0
R3(config-if)#no shutdown
R3(config-if)#
%LINK-5-CHANGED: Interface Serial0/0/0, changed state to up
R3(config-if)#exit
R3(config)#interface serial 0/0/1
R3(config-if)#ip address 30.0.
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0/0, changed state to up
0.2 255.0.0.0
R3(config-if)#no shutdown
R3(config-if)#
%LINK-5-CHANGED: Interface Serial0/0/1, changed state to up
exit
R3(config)#interface gigabitethernet 0/
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0/1, changed state to up
0
R3(config-if)#ip address 40.0.0.1 255.0.0.0
R3(config-if)#no shutdown
show ip route
R1(config)#router ospf 1
R1(config-router)#network 192.168.1.0 0.0.0.255 area 1
R1(config-router)#network 20.0.0.0 0.255.255.255 area 1
R2(config)#router ospf 2
R2(config-router)#network 192.168.1.0 0.0.0.255 area 1
R2(config-router)#network 30.0.0.0 0.255.255.255 area 1
R3(config)#router ospf 3
R3(config-router)#network 20.0.0.0 0.255.255.255 area 1
R3(config-router)#network 30.0.0.0 0.255.255.255 area 1
R3(config-router)#network 40.0.0.0 0.255.255.255 area 1
HSRP Configuration
R1(config-if)#standby 1 ip 192.168.1.1
R1(config-if)#standby 1 priority 110
R1(config-if)#standby 1 preempt
R2(config-if)#standby 1 ip 192.168.1.1
R2(config-if)#standby 1 priority 100
R2(config-if)#standby 1 preempt