Scenario

Two routers, R1 and R2, serve the same LAN 10.4.10.0/24. R2 is already configured: it has 10.4.10.3, runs HSRP version 2 group 10 with virtual IP 10.4.10.1 and the default priority 100, and it is currently the active router. The PCs use 10.4.10.1 as their default gateway. R1 has 10.4.10.2 on Gi0/0 and should take over as the active router, and take it back if it comes back after a failure.

Topology

R1R2Uplink

Requirements

  1. 1Gi0/0 uses HSRP version 2
  2. 2Group 10 has the virtual IP 10.4.10.1
  3. 3R1 has priority 110 in group 10
  4. 4Preempt is enabled in group 10
  5. 5R1 ends up as the active router

R1 has an address on the LAN but takes no part in HSRP. Type ? for the commands you can use. Beyond the exam: CCNA asks you to understand FHRP; this lab lets you configure it. Start with: enable

R1> show running-config

CCNA lab · about 10 min

HSRP version 2: a redundant default gateway

Give the LAN a virtual gateway with HSRP version 2 and make R1 the active router with a higher priority and preempt.

This lab is included in the CCNA plans and in the free trial.

Start the free trial Try the free VLAN lab Today's free lab

All labs

About this lab

Two routers, R1 and R2, serve the same LAN 10.4.10.0/24. R2 is already configured: it has 10.4.10.3, runs HSRP version 2 group 10 with virtual IP 10.4.10.1 and the default priority 100, and it is currently the active router. The PCs use 10.4.10.1 as their default gateway. R1 has 10.4.10.2 on Gi0/0 and should take over as the active router, and take it back if it comes back after a failure.

About 10 minutes. Included in the CCNA plans and the free trial.

Questions about this lab

Is this a real Cisco router?

No. It is a small simulator written by CertAce. It understands a handful of commands and keeps the state of one router, so you can practise the ideas without lab gear. Real devices print more, and the exam may ask for things this lab does not cover. CertAce is not affiliated with Cisco.

What does HSRP actually do?

It lets two or more routers share one virtual IP and virtual MAC address. One router is active and forwards the traffic. One router is in the standby state; any others are in the listen state, and all of them watch the hello packets. If the active one stops sending hellos, the standby router takes over the virtual address.

What is the difference between HSRP, VRRP and GLBP?

HSRP is Cisco's protocol (active/standby). VRRP is the open standard with the same idea (master/backup). GLBP, also Cisco, goes further and load-balances between several routers.

Why does version 2 matter?

Version 2 supports group numbers 0 to 4095 (version 1 stops at 255), IPv6, millisecond timers and a different virtual MAC range (0000.0C9F.Fxxx). Version 1 and version 2 do not interoperate.

CertAce is not affiliated with or endorsed by Cisco Systems. CCNA and Cisco are trademarks of Cisco Systems, Inc. The simulator and every command output here were written by CertAce.