In a previous post, I have talk about how to put in place a heartbeat failover cluster for services. Now I’d like to improve my network redundancy by putting two routers in failover, I’ve achieved this simply by using HSRP protocol on both node.
Here is the IOS configuration of the two nodes:
node1 – primary
interface Vlan10 description inet ip address 42.42.42.251 255.255.255.0 no ip redirects standby 3 ip 42.42.42.254 standby 3 priority 105 standby 3 preempt standby 3 authentication md5 key-string 7 ** standby 3 track FastEthernet0 standby 3 track FastEthernet3
node2 – secondary
interface Vlan10 description inet ip address 42.42.42.252 255.255.255.0 no ip redirects standby 3 ip 42.42.42.254 standby 3 preempt standby 3 authentication md5 key-string 7 ** standby 3 track FastEthernet0 standby 3 track FastEthernet3
You can see some difference:
- priority: the default is 100, putting a higher priority makes the router being the default primary
- track: This is the condition when failover needs to be down, in this case, when either fastethernet0 or 3 falls down, the failover will be done.
Hope it helps.