Rob Gallagher
Heartbeat and IPv6
I’ve been playing around with heartbeat quite a bit recently. It’s quite a mature piece of software with some cool features, however the documentation is bit unstructured and lacking in some areas, especially where IPv6 support is concerned. Heartbeat *supports* IPv6 address takeover through the IPv6addr resource but it’s not exactly clear on how you go about setting it up.
Anyway, after reading through some forum posts, here is a sample haresources file that will give you IPv4 and IPv6 address failover. We are using eth1 as our primary network interface:
my.failover.address 193.1.219.93
my.failover.address IPv6addr::2001:770:18:2:0:0:c101:db5d/64/eth1
The important thing is to specify the IPv6 address fully, ie: pad it out with 0′s, no :: shortcuts!
With v6 support recently added to IPVS, it should now be possible to do full IPv6 failover and load balancing.
May 11, 2009 - 16:18
If it has to be fully-padded, wouldn’t it be …
2001:0770:0018:0002:0000:0000:c101:db5d
? Have you tried: 2001:770:18:2:0:0:c101:db5d ?
May 12, 2009 - 14:40
@Colm MacCarthaigh
Ah, that also works. Article updated
February 2, 2010 - 12:20
so the IPv6 address(2001:770:18:2:0:0:c101:db5d) is this a predefined address, which is used for the sharedIP ?