IPV6 DHCP Option 23 Recursive DNS

dear all,

i am doing IPv6 lab at the moment and can not find dns option for ipv6 network on mikrotik menu. but i found on rfc3646 that dhcp option 23 can do this. http://www.networksorcery.com/enp/rfc/rfc3646.txt

i tried to add ipv6 dhcp-server option but the error come up : Couldn’t add New DHCPv6 Option - Unknown data type! (6)

Can someone guide me how to add this ?

thank you

Paul

/ipv6 dhcp-server option
add code=23 name="dns" value="'2001:db8::1''2001:db8::2'"
add code=24 name="search" value="0x04'home'0x05'local'"
/ipv6 dhcp-server
add dhcp-option="dns,search" interface=bridge-lan name=default
/ipv6 nd
set [ find default=yes ] advertise-dns=no other-configuration=yes

Can it actually parse IPv6 addresses? I use value=0x20010db8000000000000000000000001 for 2001:db8::1 which works for me, but I am not sure this is required.

@pe1chl: Yes

dear all,

i add 0x in front of the address of ipv6 dns server on ipv6 dhcp-server option and nomore error.
than i attach my rb931/hap mini as dhcp client and it can get the proper dns address as expected.

BUT, can not get the proper ipv6 address and gateway.
what should be choose among info, address and prefix of /ipv6 dhcp-client ?

thank you

Paul

So far DHCPv6 server in RouterOS can provide only prefixes, not addresses. So no client will get address from it. RouterOS DHCPv6 client can get address from other non-RouterOS servers that can provide them.

And no client will get gateway from any DHCPv6 server, because unlike DHCPv4, it doesn’t provide it at all, clients are supposed to use gateway from Router Advertisements. I’m not completely sure if there’s exception for DHCPv6-PD clients. I’m not aware of any, but RouterOS DHCPv6 client uses DHCPv6 server’s address as gateway, which is not necessarily correct. RouterOS can get gateway from RA, if you enable accepting RAs in IPv6 settings, but it won’t be visible anywhere and whole thing seems unfinished.