enable configure terminal hostname Dist-SW2 vlan 10 name USERS exit interface gigabitethernet 0/1 switchport mode access switchport access vlan 10 no shutdown interface vlan 10 ip address 192.168.10.3 255.255.255.0 no shutdown exit ip routing Now the magic begins. You will assign the virtual IP and set the priority so Dist-SW1 becomes the Active gateway.
Scenario: You are a junior network engineer at Acme Corp. The company has two core Layer 3 switches (Distribution layer) connecting to a single router acting as the gateway to the internet. Management wants gateway redundancy —if the primary switch fails, users should never notice. The solution? HSRP (Hot Standby Router Protocol) . packet tracer 9.3.3 hsrp configuration guide
enable configure terminal hostname Dist-SW1 vlan 10 name USERS exit interface gigabitethernet 0/1 switchport mode access switchport access vlan 10 no shutdown interface vlan 10 ip address 192.168.10.2 255.255.255.0 no shutdown exit ip routing enable configure terminal hostname Dist-SW2 vlan 10 name