Active or standby
This protocol was not defined really for "load balancing"; but more for redundancy. However load balancing may be achieved by assigning two standby groups to an interface, and assigning two seperate virtual ip's. The downside...you have to manually configure your hosts to use either of the gateways in order to load balance (there are other protocols for this!!)
The states for HSRP are as follows:
- disabled- the interface is not running hsrp
- initial (init)- the interface but has just came up.
- learn- the interface is configured, but has not heard from active router
- listen- the router knows is virtual ip, but does not know who is primary or standby
- speak- the routers are sending hello's and holding the election
- standby- the router is a candidate to become the active router and is sending hellos
- active- the router is forwading packets sent to the virtual ip address, and is sending hello's
- 0000.0c07.acxx (where xx is the group number in hexidecimal)
Commands to configure and show:
(config-if)standby [group #] ip [ip address] -this is the same on both and is the virtual ip
(config-if)standby [group #] priority [0-255] -the highest priority wins active role
(config-if)standby [group #] preempt -forces router to take active role if priority is higher
(config-if)standby [group #] mac-address [xxxx.xxxx.xxxx]
(config-if)standby [group #] authentication [options] - Must match on both routers
show standby
No comments:
Post a Comment