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; };