From 2e6306b61e9e71b8ef9f1e87570e5b60c845234f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yoha=C3=AF-Eliel=20BERREBY?= Date: Sat, 1 Aug 2020 16:05:41 +0200 Subject: [PATCH] radvd: advertise keepalived VIP --- roles/radvd/templates/radvd.conf.j2 | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/roles/radvd/templates/radvd.conf.j2 b/roles/radvd/templates/radvd.conf.j2 index bf301a9..ab63ea8 100644 --- a/roles/radvd/templates/radvd.conf.j2 +++ b/roles/radvd/templates/radvd.conf.j2 @@ -12,8 +12,11 @@ # AdvLinkMTU {{ mtu }}; # AdvDefaultPreference high; # MaxRtrAdvInterval 30; -# -# +# +# AdvRASrcAddress { +# {{ ipv6_base_prefix }}:{{ subnet_ids.ap }}::0:250; # Unifi controller +# }; +# # prefix {{ ipv6_base_prefix }}:{{ subnet_ids.ap }}::/64 { # AdvRouterAddr on; # }; @@ -26,7 +29,6 @@ # RDNSS {{ ipv6_base_prefix }}:{{ subnet_ids.ap }}::{{ dns_host_suffix_backup }} {}; # }; - ## # Utilisateurs filaire ## @@ -36,6 +38,10 @@ interface ens20 { AdvDefaultPreference high; MaxRtrAdvInterval 30; + AdvRASrcAddress { + {{{ ipv6_base_prefix }}:{{ subnet_ids.users_wired }}::0:{{ router_ip_suffix }}; + }; + prefix {{ ipv6_base_prefix }}:{{ subnet_ids.users_wired }}::/64 { AdvRouterAddr on; }; @@ -56,6 +62,10 @@ interface ens21 { AdvDefaultPreference high; MaxRtrAdvInterval 30; + AdvRASrcAddress { + {{{ ipv6_base_prefix }}:{{ subnet_ids.users_wifi }}::0:{{ router_ip_suffix }}; + }; + prefix {{ ipv6_base_prefix }}:{{ subnet_ids.users_wifi }}::/64 { AdvRouterAddr on; };