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.
| Print article | This entry was posted by rob on May 11, 2009 at 15:30, and is filed under IPv6. Follow any responses to this post through RSS 2.0. You can leave a response or trackback from your own site. |
about 2 years ago
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 ?
about 2 years ago
@Colm MacCarthaigh
Ah, that also works. Article updated
about 2 years ago
so the IPv6 address(2001:770:18:2:0:0:c101:db5d) is this a predefined address, which is used for the sharedIP ?