talk about the Hot Standby Router Protocol. HSPR is a way for two Cisco routers to share a common virtual IP address while one router is actively routing packets, the other router or routers are standing by in case the active router fails. It's a very good way to provide fault tolerance. In fact, if ya take a mind to, you can read RFC 2281 to learn a bit more about it.
So the routers share an IP address. How do the routers know when one has failed?
Let's get back to the IP address, besides sharing an IP address, that IP address has a common MAC address that the routers share. It's like this, mate, you have a workgroup of say, I don't know, 100 computers. Each one of these machines has been configured with a default gateway, if these machines have used the default gateway or router, they have it's MAC address in their ARP cache. So since the routers in the HSRP group share an IP address with a corresponding MAC address, when they fail over, the workstations are unaware of the change. What they see, is a "virtual" router.
the routers in an HSRP group send and receive keep alives using the multicast address of 224.0.0.2 and UDP port 1985. By default the hello interval is 3 seconds. Once 3 hello intervals pass without hearing from the active router, the standby router automatically becomes the active router. Each router is configured with a priority number, the router with the highest priority number in a standby group is the active router, everyone else just relaxes.
you only need 2 commands to do it, and 2 additional commands to customize it. What's more, it's configured at the interface that you want to participate in the standby group.
Well, first off, on the router that you want to be the active router, go to the interface you want HSRP to run on, think up a group number, all routers participating in this scheme must use the same group number, also think up what IP address you want the HSRP group to share. Now watch me type:
dingo(config-if)#standby 1 ip address 10.1.1.254
dingo(config-if)#standby 1 priority 100
So what we have here mate, is a standby group number of 1, an IP address of 10.1.1.254 that the routers are going to share, now let's configure the standby router:
fosters(config-if)#standby 1 ip address 10.1.1.254
fosters(config-if)#standby 1 priority 90
OK, the only thing different on the standby router is the priority. The router with the highest priority becomes the active router.