Community discussions

MikroTik App
 
RobstarUSA
newbie
Topic Author
Posts: 44
Joined: Sun Apr 15, 2018 5:42 am

dhcpv6-pd client: Requesting a specific /59 from a /56

Sun Nov 13, 2022 5:48 am

Hello,

I have a STATIC /56 from my ISP. From this /56, /59 are handed out to dhcp-v6 pd clients. I need to be able to request a specific /59 from this /56 pool in the /ipv6/dhcp-client setup. Is there an example or documentation to do this? I checked at https://help.mikrotik.com/docs/display/ ... CPv6Client but while I can request an "address" or "prefix" with the "request" attribute, I don't see a way to request a specific prefix.

At https://linux.die.net/man/5/dhcp6c.conf, under "Declarations" there is a prefix option:
prefix {t[<ipv6 prefix>/<prefix length>];t[prefer-life-time <preferred-lifetime>];t[valid-life-time <valid-lifetime>];};

This declaration defines the dhcp6c client acting as a requesting router for the preferred prefix, the prefix length, and the prefix's preferred lifetime, and valid lifetime for this interface.
I have this working in OPNSense, but looking to replace OPNSense firewall with mikrotik.

On my RB3011 (7.6 code) I DO have requesting a prefix working, but it isn't always the same. Since this is supported in dhcp6c.conf I was hoping Mikrotik would support this in the client as well.

Anyone know how to do this?
 
Sob
Forum Guru
Forum Guru
Posts: 9119
Joined: Mon Apr 20, 2009 9:11 pm

Re: dhcpv6-pd client: Requesting a specific /59 from a /56

Sun Nov 13, 2022 7:37 am

Not yet. Try reservation on server.
 
RobstarUSA
newbie
Topic Author
Posts: 44
Joined: Sun Apr 15, 2018 5:42 am

Re: dhcpv6-pd client: Requesting a specific /59 from a /56

Sun Nov 13, 2022 8:33 am

Not yet. Try reservation on server.
No option for this in my cable modem which is what is handing out dhcpdv6-pd.

Edit: Opened SUP-97718
 
RobstarUSA
newbie
Topic Author
Posts: 44
Joined: Sun Apr 15, 2018 5:42 am

Re: dhcpv6-pd client: Requesting a specific /59 from a /56

Wed Nov 16, 2022 5:47 pm

Case resolved:

Solution:

In /ipv6/dhcp-client/

Create prefix hint of the EXACT /59 you want. This works for my Comcast Business connection.

in my case:
"/ipv6/dhcp-client"
"set numbers=0 prefix-hint=1234:1234:1234:1234::/59"
 
Sob
Forum Guru
Forum Guru
Posts: 9119
Joined: Mon Apr 20, 2009 9:11 pm

Re: dhcpv6-pd client: Requesting a specific /59 from a /56

Thu Nov 17, 2022 3:39 am

Interesting, I thought it only takes prefix length.

Who is online

Users browsing this forum: No registered users and 75 guests