How to set DHCP Option for dynamically created IPv6 DHCP server

Hello !

I’m curious how to set DHCP Options like DNS for a Dynamically created DHCP IPv6 server?

I’m trying a solution where we want to provide IPv6 over PPPoE sessions. I set IPv6 Pool in PPP profile under DHCPv6 PD Pool and PPPoE client receiving IPv6 address, but how do I provide DNS?

BR.,
Dmitri

If you scroll down on the PPP Profile dialog, you’ll find the input for DNS Server.

This part is fot IPv4, as I know

Oh, you are correct, it only allows IPv4 addresses.

If you are content with providing the same set of IPv6 DNS server addresses for all of your PPPoE clients (and also all SSTP clients), then this can be done with IPv6 → ND. Because the entry for “all” interfaces also applies for PPPoE and SSTP client connections. On my routers I did this:

  • Create individual ND entries for the bridges and VLAN interfaces, so each can have their own DNS configuration
  • Create individual ND entries for the WAN interfaces, where nothing is advertised and RA Lifetime is empty, this turns off router advertisement on those interfaces without the need to disable the default entry for the “all” interface.
  • On the default entry for the “all” interface (the blue entry) configure the list of DNS servers that will be used by the dynamic interfaces (that includes the PPPoE and SSTP clients).

I’ve tested and my SSTP and PPPoE clients do correctly pick the DNS settings from this particular ND entry.

Yes, I also looked at ND, and I wish that Mikrotik will add interface lists to the ND section at some point.
I will try your solution! Thank You!

Regards,
Dmitri

Great idea with the interface list. I’ve filled a feature request (SUP-178538) referencing your post in this thread.