π― Obiettivi
πΊοΈ Topologia
π Guida
Lab β HSRP Failover
2 router (R1, R2) sulla stessa LAN. Configura HSRP gruppo 1 con VIP, priority, preempt. Simula un guasto e verifica il failover. PC usa il VIP come gateway.
0%
HSRP β 2 Router, 1 LAN
LAN: 192.168.1.0/24
R1 Gi0/0: 192.168.1.2/24 (priority 110, preempt)
R2 Gi0/0: 192.168.1.3/24 (priority 100)
VIP: 192.168.1.1 (HSRP group 1)
PC1: 192.168.1.10, gateway 192.168.1.1 (VIP)
IP pre-configurati. Configura solo HSRP!
R1 Gi0/0: 192.168.1.2/24 (priority 110, preempt)
R2 Gi0/0: 192.168.1.3/24 (priority 100)
VIP: 192.168.1.1 (HSRP group 1)
PC1: 192.168.1.10, gateway 192.168.1.1 (VIP)
IP pre-configurati. Configura solo HSRP!
1R1: HSRP gruppo 1
int Gi0/0
standby 1 ip 192.168.1.1
standby 1 priority 110
standby 1 preempt
standby 1 ip 192.168.1.1
standby 1 priority 110
standby 1 preempt
2R2: HSRP gruppo 1
int Gi0/0
standby 1 ip 192.168.1.1
standby 1 priority 100
standby 1 ip 192.168.1.1
standby 1 priority 100
3Verifica
show standby brief su entrambi
R1 = Active, R2 = Standby
R1 = Active, R2 = Standby
4Simula failover
Su R1: int Gi0/0 β shutdown
show standby brief su R2 β ora Active!
PC1: ping 192.168.1.1 β funziona ancora!
show standby brief su R2 β ora Active!
PC1: ping 192.168.1.1 β funziona ancora!
5Preempt test
Su R1: no shutdown
Con preempt β R1 riprende Active
show standby brief per confermare
Con preempt β R1 riprende Active
show standby brief per confermare
π‘ Il VIP 192.168.1.1 non cambia mai. I PC non devono fare nulla durante il failover!
R1 β Console
R1
R2
PC1
R1>