v7beta6: Life-/valid-time of dynamic IPv6 prefixes

Hi, I get a dynamic IPv6 prefix from my provider through DHCPv6-PD. This prefix is changing every 24 hours. It is announced with “Valid Lifetime 30d 00:00:00” and “Preferred Lifetime 7d 00:00:00” though. I’d like to adjust that, or at least have the lifetime follow the expiry info from DHCPv6-PD.

[admin@RB4011] > /ipv6/dhcp-client/print detail 
Flags: D - dynamic; X - disabled, I - invalid 
 0    interface=PPPoE status=bound duid="XXX" dhcp-server-v6=fe80::XXXX 
      request=address,prefix add-default-route=yes default-route-distance=1 use-peer-dns=no rapid-commit=no 
      dhcp-options="" pool-name="PPPoE Pfx" pool-prefix-length=56 prefix-hint=::/0 dhcp-options="" 
      prefix=2a04:4540:XXXX:XXXX::/56, 17h33m9s address=2a04:4540:XXXX:XXXX::94, 17h33m9s 

[admin@RB4011] > /ipv6/nd/prefix/print detail
Flags: X - disabled, I - invalid; D - dynamic 
 0  D prefix=fdc7:YYYY:YYYY:1::/64 6to4-interface=none interface=sfpplus1.vl10 on-link=yes autonomous=yes 
      valid-lifetime=4w2d preferred-lifetime=1w 

 1  D prefix=2a04:4540:XXXX:XXXX::/64 6to4-interface=none interface=sfpplus1.vl10 on-link=yes autonomous=yes 
      valid-lifetime=4w2d preferred-lifetime=1w

Greets

Did you try changing the default values and it doesn’t work?

[admin@MikroTik] > /ipv6/nd/prefix/default/ print
          autonomous: yes
      valid-lifetime: 4w2d
  preferred-lifetime: 1w

to, for example:

[admin@MikroTik] > /ipv6/nd/prefix/default/ set valid-lifetime=1d preferred-lifetime=12h
[admin@MikroTik] > /ipv6/nd/prefix/default/ print                                       
          autonomous: yes
      valid-lifetime: 1d
  preferred-lifetime: 12h

No, I was not aware of that default. I’ll give that a try.

EDIT:
Yes, changing the default entry works, thanks :slight_smile:
It would be nice to be able to adjust that per pool, though. For dynamic pools doing that through the settings of the dhcpv6-client might be convenient.