radvd: advertise keepalived VIP

This commit is contained in:
Yohaï-Eliel BERREBY 2020-08-01 16:05:41 +02:00
parent 56808e4e60
commit 2e6306b61e

View file

@ -12,8 +12,11 @@
# AdvLinkMTU {{ mtu }}; # AdvLinkMTU {{ mtu }};
# AdvDefaultPreference high; # AdvDefaultPreference high;
# MaxRtrAdvInterval 30; # MaxRtrAdvInterval 30;
# #
# # AdvRASrcAddress {
# {{ ipv6_base_prefix }}:{{ subnet_ids.ap }}::0:250; # Unifi controller
# };
#
# prefix {{ ipv6_base_prefix }}:{{ subnet_ids.ap }}::/64 { # prefix {{ ipv6_base_prefix }}:{{ subnet_ids.ap }}::/64 {
# AdvRouterAddr on; # AdvRouterAddr on;
# }; # };
@ -26,7 +29,6 @@
# RDNSS {{ ipv6_base_prefix }}:{{ subnet_ids.ap }}::{{ dns_host_suffix_backup }} {}; # RDNSS {{ ipv6_base_prefix }}:{{ subnet_ids.ap }}::{{ dns_host_suffix_backup }} {};
# }; # };
## ##
# Utilisateurs filaire # Utilisateurs filaire
## ##
@ -36,6 +38,10 @@ interface ens20 {
AdvDefaultPreference high; AdvDefaultPreference high;
MaxRtrAdvInterval 30; MaxRtrAdvInterval 30;
AdvRASrcAddress {
{{{ ipv6_base_prefix }}:{{ subnet_ids.users_wired }}::0:{{ router_ip_suffix }};
};
prefix {{ ipv6_base_prefix }}:{{ subnet_ids.users_wired }}::/64 { prefix {{ ipv6_base_prefix }}:{{ subnet_ids.users_wired }}::/64 {
AdvRouterAddr on; AdvRouterAddr on;
}; };
@ -56,6 +62,10 @@ interface ens21 {
AdvDefaultPreference high; AdvDefaultPreference high;
MaxRtrAdvInterval 30; MaxRtrAdvInterval 30;
AdvRASrcAddress {
{{{ ipv6_base_prefix }}:{{ subnet_ids.users_wifi }}::0:{{ router_ip_suffix }};
};
prefix {{ ipv6_base_prefix }}:{{ subnet_ids.users_wifi }}::/64 { prefix {{ ipv6_base_prefix }}:{{ subnet_ids.users_wifi }}::/64 {
AdvRouterAddr on; AdvRouterAddr on;
}; };