From fdd61daa1e084e1950e3cf41e622a10a4915115d Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Thu, 26 Sep 2019 19:04:37 +0200 Subject: [PATCH] Added keepalived ipv6 configuration --- .../contents.lr | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/content/u/blog/how-to-enable-ipv6-in-applications/contents.lr b/content/u/blog/how-to-enable-ipv6-in-applications/contents.lr index 1369e3a..7032118 100644 --- a/content/u/blog/how-to-enable-ipv6-in-applications/contents.lr +++ b/content/u/blog/how-to-enable-ipv6-in-applications/contents.lr @@ -112,6 +112,36 @@ localhost use `-h ::1`, to be globally reachable use `-h ::`. % lektor serve -h :: ``` +## How to use IPv6 in keepalived + +[Keepalived](https://keepalived.org/), the VRRP daemon for Linux, +supports IPv6 for a while. However newer versions (wikipedia: citation +needed) of keepalived require to have two different instances, if you +are running dual stack VRRP messages. So your keepalived.conf for use +with IPv6 might look as follows: + +``` +vrrp_instance router_internal { + state BACKUP + interface bond0.10 + virtual_router_id 1 + + virtual_ipaddress { + 2a0a:e5c0:2:0::7/64 dev bond0.10 + } +} + +vrrp_instance router_internal_ipv4 { + state BACKUP + interface bond0.10 + virtual_router_id 2 + + virtual_ipaddress { + 10.3.0.7/22 dev bond0.10 + } +} +``` + ## How to enable IPv6 in Redhat Linux While Red Hat is not specifically an application, we still wanted