Community discussions

MikroTik App
 
kbch
just joined
Topic Author
Posts: 16
Joined: Tue Dec 24, 2019 1:20 am

IPv6 Address Pool decision

Mon May 02, 2022 9:03 pm

I receive a /48 IPv6 Prefix from my Provider. This prefix is split into /64 for LAN assignment. This works, but I can't choose the prefix the Mikrotik will generate.

Example:
 #    ADDRESS                      FROM-POOL  INTERFACE  ADVERTISE
 0  G XXXX:XXXX:d80b::1/64          init7      vlan50     yes      
 1  G XXXX:XXXX:d80b:1::1/64        init7      vlan90     yes   

I don't know how to define which one of the Interface will get the prefix with 1. It would be nice if I could put 50 and 90 corresponding to the VLAN Tags into the prefix. This was very easy to do on Ubiquiti EdgeMax.

Address Config:
/ipv6 address
add address=::1 from-pool=provider interface=vlan50
add address=::1 from-pool=provider interface=vlan90
 
tdw
Forum Guru
Forum Guru
Posts: 1843
Joined: Sat May 05, 2018 11:55 am

Re: IPv6 Address Pool decision

Mon May 02, 2022 11:07 pm

You can't, as discussed in several forum topics. It would be nice if you could do
/ipv6 address
add address=::50:0:0:0:1 from-pool=provider interface=vlan50
 
User avatar
mkx
Forum Guru
Forum Guru
Posts: 11439
Joined: Thu Mar 03, 2016 10:23 pm

Re: IPv6 Address Pool decision

Tue May 03, 2022 8:28 am

You can't, as discussed in several forum topics.

With /48 prefix it might even be possible (it isn't if prefix is longer than 48=64-16 because ROS doesn't allow setting bits in suffix which might overlap with prefix bits ... even if they don't). There's a gotcha: one has to use the double colon "::" to mark the prefix and then use enough of ":0" to fill in the suffix ... exactly as in example by @tdw.
 
tdw
Forum Guru
Forum Guru
Posts: 1843
Joined: Sat May 05, 2018 11:55 am

Re: IPv6 Address Pool decision

Tue May 03, 2022 12:35 pm

Last time I tried, probably on 6.48.6, with a /48 it didn't appear to work, may be different in v7.
 
kbch
just joined
Topic Author
Posts: 16
Joined: Tue Dec 24, 2019 1:20 am

Re: IPv6 Address Pool decision

Tue May 03, 2022 5:36 pm

Filling the prefix seems to also not work on v7:
;;; address pool error: bad preferred prefix! (1)
 1 IG ::90:0:0:0:1/64              provider      vlan90     yes  

Who is online

Users browsing this forum: Ahrefs [Bot], mtkvvv and 22 guests