So I got RouterOS 17.16.1 installed on x86 hardware acting as a router, plus CRS309-1G-8S+ switch.
Router config:
Code: Select all
/interface bridge
add name=bridge protocol-mode=none vlan-filtering=yes
/interface vlan
add interface=bridge name=vlan10 vlan-id=10
add interface=bridge name=vlan11 vlan-id=11
add interface=bridge name=vlan12 vlan-id=12
/interface bridge port
add bridge=bridge frame-types=admit-only-untagged-and-priority-tagged interface=ether1 pvid=10
add bridge=bridge frame-types=admit-only-untagged-and-priority-tagged interface=ether2 pvid=11
add bridge=bridge frame-types=admit-only-untagged-and-priority-tagged interface=ether3 pvid=12
add bridge=bridge comment=trunk frame-types=admit-only-vlan-tagged interface=ether4
/interface bridge vlan
add bridge=bridge tagged=bridge,ether4 untagged=ether1,ether2,ether3 vlan-ids=10-12
/ip service
set ssh disabled=no
set www disabled=no
set winbox disabled=no
/ipv6 address
add address=2a02:aaaa:bbbb:10:: interface=vlan10
add address=2a02:aaaa:bbbb:11:: interface=vlan11
add address=2a02:aaaa:bbbb:12:: interface=vlan12
/ipv6 dhcp-client
add add-default-route=yes interface=ether5 request=address
/ipv6 nd
set [ find default=yes ] advertise-dns=no disabled=yes hop-limit=64 interface=bridge managed-address-configuration=yes mtu=1500 other-configuration=yes
add advertise-dns=no hop-limit=64 interface=ether1 other-configuration=yes
add advertise-dns=no hop-limit=64 interface=ether2 other-configuration=yes
add advertise-dns=no hop-limit=64 interface=ether3 other-configuration=yes
/ipv6 nd prefix
add interface=ether1 prefix=2a02:aaaa:bbbb:10::/64
add interface=ether2 prefix=2a02:aaaa:bbbb:11::/64
add interface=ether3 prefix=2a02:aaaa:bbbb:12::/64
/tool romon
set enabled=yes
Code: Select all
/interface bridge
add bridge protocol-mode=none vlan-filtering=yes
/interface bridge port
add bridge=bridge frame-types=admit-only-untagged-and-priority-tagged interface=ether1 pvid=10
add bridge=bridge frame-types=admit-only-untagged-and-priority-tagged interface=ether2 pvid=11
add bridge=bridge frame-types=admit-only-untagged-and-priority-tagged interface=ether3 pvid=12
add bridge=bridge comment=trunk frame-types=admit-only-vlan-tagged interface=ether4
/interface bridge vlan
add bridge=bridge tagged=ether4,bridge untagged=ether1,ether2,ether3 vlan-ids=10-12
/tool romon
set enabled=yes
My ISP have allocated a static /48 IPv6 prefix, and I want each of 10, 11 and 12 VLANs to have their own /64 IPv6 subnet.
I have tried to plug several different devices (Linux and MacOS) into respective ports in my router, and everything works exactly as I expect (e.g. a device plugged into ether2 port would get a 2a02:aaaa:bbbb:11:ab:cd:ef/64 IPv6).
But plugging the same device into any port in my switch would result in a device getting 3 IPv6 addresses (not counting link local ones), one from each range I defined, e.g. 2a02:aaaa:bbbb:10:aa:bb:cc/64, 2a02:aaaa:bbbb:11:dd:ee:ff/64 and 2a02:aaaa:bbbb:12:ii:jj:kk/64.
How can I make devices connected to the switch to only get IPv6 addresses they are supposed to?
Thanks!