Community discussions

MikroTik App
 
OlofL
Member Candidate
Member Candidate
Topic Author
Posts: 113
Joined: Mon Oct 12, 2015 2:37 pm

How do I specify the first/second... /64 prefix from a /56 pool. (persistent prefix after boot?)

Thu Jun 02, 2022 9:36 pm

I have a pool of a /56 network.
db8:2001:1128:2400::/56
I want to assign ipv6 addresses from my lan interfaces using only "::1/64" command.
add address=::1 from-pool=TT interface=ether5
add address=::1 from-pool=TT interface=ether6
add address=::1 from-pool=TT interface=ether7
But how do I make sure that ether5 always gets the first prefix from the pool, ether6 the second and so on?

I remember there was something like add address=::1:0:0:0:1/64 from-pool=TT, but then I get error address pool error: bad preferred prefix!

I have seen cases where the interface will get another order from the pool, and thus mismatching client prefix when router reboots.
Last edited by OlofL on Thu Jun 02, 2022 11:06 pm, edited 1 time in total.
 
tdw
Forum Guru
Forum Guru
Posts: 1847
Joined: Sat May 05, 2018 11:55 am

Re: How do I specify the first/second... /64 prefix som a /56 pool. (persistent prefix after boot?)

Thu Jun 02, 2022 9:52 pm

Unfortunately you cannot, it is an annoying omission from RouterOS.
 
OlofL
Member Candidate
Member Candidate
Topic Author
Posts: 113
Joined: Mon Oct 12, 2015 2:37 pm

Re: How do I specify the first/second... /64 prefix som a /56 pool. (persistent prefix after boot?)

Thu Jun 02, 2022 9:57 pm

Unfortunately you cannot, it is an annoying omission from RouterOS.
I am pretty sure I have seen a workaround on this before ?

Anyways, if I am remembering wrong, how do you make sure clients removes the ipv6 address in the wrong prefix if this happens after reboot?
Can mikrotik send old RA with a short router lifetime timeout to make sure clients withdraw this address, and only uses new prefix?
 
Sob
Forum Guru
Forum Guru
Posts: 9121
Joined: Mon Apr 20, 2009 9:11 pm

Re: How do I specify the first/second... /64 prefix som a /56 pool. (persistent prefix after boot?)

Thu Jun 02, 2022 10:40 pm

Some time ago I made this script. I can't say that I like it very much, but it should be usable until there's some better solution.

Who is online

Users browsing this forum: No registered users and 14 guests