Greetings. I'm working on setting up my home network, based on the RB5009UG+S. I've had MikroTik gear on my network for a couple years, but not split into VLANs. My end goal is one or more CRS309s connected to the router, with fiber connecting 8-port switches in any room with electronics. I'm about 2/3 there, but am having routing issues.
The first thing I did was follow a guide from "The Network Berg", with focus on getting one VLAN stable for my work PCs. Through all configurations, that must stay as stable as possible. I have a number of VLANs added, but to try to keep things as simple as possible for my troubleshooting session, I connected a Raspberry Pi to port 5 and set the PVID of that port to 3. I have a second Raspberry Pi connected to port 6, with the PVID of that port set to 20. The two devices get IP addresses from their respective VLANs.
My initial request was going to be assistance figuring out the communication block between VLANs, but just getting a test environment for two devices set up is being a challenge. Interestingly, the Pi on VLAN20 can't reach the Internet, but when connected to the switch in my office, on the same VLAN, it could. If my office PC was also having an issue, then I would suspect the issue to be something in the dhcp configuration, but since that computer is working, maybe the issue there is the way the interface is bound.
I'm not very familiar with the command line interface for MikroTik, so have been doing all configuration either through a web browser or through Winbox. I'm not really sure how to proceed here. The forum wouldn't let me upload my configuration file, so I've dropped it as a blockquote below. Anything for VLAN30 or above can be ignored for this example. I'm looking at just VLAN3 and VLAN20 right now. 10.10.3.x is what I was using before I started adding VLANs, therefore it's named Legacy. I added two firewall rules last night, but have them currently disabled in order to reduce variables.
2026-09-23 08:37:51 by RouterOS 7.24.4
software id = AMC4-PU7I
model = RB5009UG+S+
serial number = REMOVED
/interface bridge
add admin-mac=38:32:7A:51:13:65 auto-mac=no comment="LAN - Bridge" name=
"LAN - Bridge" vlan-filtering=yes
/interface ethernet
set [ find default-name=ether1 ] comment="WAN - Allo"
set [ find default-name=ether7 ] comment="UnRaid 2 - Backup"
set [ find default-name=ether8 ] comment="UnRaid 1 - Backup"
set [ find default-name=sfp-sfpplus1 ] comment="To Primary Switch"
/interface vlan
add comment="Cameras - 50" interface="LAN - Bridge" name="Cameras - 50"
vlan-id=50
add comment="IoT - 40" interface="LAN - Bridge" name="IoT - 40" vlan-id=40
add comment=Legacy interface="LAN - Bridge" name=Legacy vlan-id=3
add comment="Management - 20" interface="LAN - Bridge" name="Management - 20"
vlan-id=20
add comment="Printers - 70" interface="LAN - Bridge" name="Printers - 70"
vlan-id=70
add comment="Servers - 30" interface="LAN - Bridge" name="Servers - 30"
vlan-id=30
add comment="Televisions - 60" interface="LAN - Bridge" name=
"Televisions - 60" vlan-id=60
/interface list
add comment=defconf name=WAN
add comment=defconf name=LAN
/ip pool
add comment=VLAN20 name=dhcp_pool20 ranges=10.10.20.2-10.10.20.254
add comment=VLAN30 name=dhcp_pool30 ranges=10.10.30.2-10.10.30.254
add comment=VLAN40 name=dhcp_pool40 ranges=10.10.40.2-10.10.40.254
add comment=VLAN50 name=dhcp_pool50 ranges=10.10.50.2-10.10.50.254
add comment=VLAN60 name=dhcp_pool60 ranges=10.10.60.2-10.10.60.254
add comment=VLAN70 name=dhcp_pool70 ranges=10.10.70.2-10.10.70.254
add comment=VLAN3 name=dhcp_pool3 ranges=10.10.3.2-10.10.3.254
add comment="No VLANs" name=dhcp_pool2 ranges=10.10.2.2-10.10.2.254
/ip dhcp-server
add add-dns-entries=yes address-pool=dhcp_pool2 comment="No VLANs" interface=
"LAN - Bridge" name=dhcp2
add address-pool=dhcp_pool20 interface="Management - 20" name=dhcp20
add address-pool=dhcp_pool30 interface="Servers - 30" name=dhcp30
add address-pool=dhcp_pool40 interface="IoT - 40" name=dhcp40
add address-pool=dhcp_pool50 interface="Cameras - 50" name=dhcp50
add address-pool=dhcp_pool60 interface="Televisions - 60" name=dhcp60
add address-pool=dhcp_pool70 interface="Printers - 70" name=dhcp70
add address-pool=dhcp_pool3 interface=Legacy name=dhcp3
/disk settings
set auto-media-interface="LAN - Bridge" auto-media-sharing=yes
auto-smb-sharing=yes
/interface bridge port
add bridge="LAN - Bridge" comment=defconf interface=ether2
add bridge="LAN - Bridge" comment=defconf interface=ether3
add bridge="LAN - Bridge" comment=defconf interface=ether4
add bridge="LAN - Bridge" comment=defconf interface=ether5 pvid=3
add bridge="LAN - Bridge" comment=defconf interface=ether6 pvid=20
add bridge="LAN - Bridge" comment=defconf interface=ether7
add bridge="LAN - Bridge" comment=defconf interface=ether8
add bridge="LAN - Bridge" comment="CRS309-1G-8S - Primary" interface=
sfp-sfpplus1
/ip neighbor discovery-settings
set add-dns-entries=yes discover-interface-list=LAN
/interface bridge vlan
add bridge="LAN - Bridge" comment="Management - 20" tagged=
"sfp-sfpplus1,LAN - Bridge,ether7,ether8,ether6,ether5" vlan-ids=20
add bridge="LAN - Bridge" comment="Servers - 30" tagged=
"sfp-sfpplus1,LAN - Bridge" vlan-ids=30
add bridge="LAN - Bridge" comment="IoT - 40" tagged=
"sfp-sfpplus1,LAN - Bridge" vlan-ids=40
add bridge="LAN - Bridge" comment="Cameras - 50" tagged=
"sfp-sfpplus1,LAN - Bridge" vlan-ids=50
add bridge="LAN - Bridge" comment="Televisions - 60" tagged=
"sfp-sfpplus1,LAN - Bridge" vlan-ids=60
add bridge="LAN - Bridge" comment="Printers - 70" tagged=
"LAN - Bridge,sfp-sfpplus1" vlan-ids=70
add bridge="LAN - Bridge" comment=Legacy tagged=
"LAN - Bridge,sfp-sfpplus1,ether8,ether7,ether6,ether5" vlan-ids=3
/interface list member
add comment=defconf interface="LAN - Bridge" list=LAN
add comment=defconf interface=ether1 list=WAN
add comment="LAN Management Interface" interface="Management - 20" list=LAN
/ip address
add address=10.10.2.1/24 comment=defconf interface="LAN - Bridge" network=
10.10.2.0
add address=10.10.20.1/24 comment="Management - 20" interface=
"Management - 20" network=10.10.20.0
add address=10.10.30.1/24 comment="Servers - 30" interface="Servers - 30"
network=10.10.30.0
add address=10.10.40.1/24 comment="IoT - 40" interface="IoT - 40" network=
10.10.40.0
add address=10.10.50.1/24 comment="Cameras - 50" interface="Cameras - 50"
network=10.10.50.0
add address=10.10.60.1/24 comment="Televisions - 60" interface=
"Televisions - 60" network=10.10.60.0
add address=10.10.70.1/24 comment="Printers - 70" interface="Printers - 70"
network=10.10.70.0
add address=10.10.3.1/24 comment=Legacy interface=Legacy network=10.10.3.0
/ip dhcp-client
add comment=defconf default-route-tables=main interface=ether1 name=client1
/ip dhcp-server lease
add address=10.10.20.254 client-id=1:d0:ea:11:c3:2e:79 comment=
"MikroTik CSS318-16G-2S+IN" mac-address=D0:EA:11:C3:2E:79 server=dhcp20
add address=10.10.20.253 client-id=1:7c:10:c9:d3:54:4e comment=
"Windows 11 Desktop PC" mac-address=7C:10:C9:D3:54:4E server=dhcp20
add address=10.10.20.252 client-id=1:e8:cf:83:ad:30:1a comment=
"Dell Work Notebook" mac-address=E8:CF:83:AD:30:1A server=dhcp20
add address=10.10.20.251 client-id=1:88:a2:9e:42:95:b2 mac-address=
88:A2:9E:42:95:B2 server=dhcp20
add address=10.10.40.239 mac-address=EC:B5:FA:AE:24:79 server=dhcp40
add address=10.10.20.198 client-id=1:f4:1e:57:67:fa:c0 comment=CRS309-1G-8S+
mac-address=F4:1E:57:67:FA:C0 server=dhcp20
add address=10.10.20.195 comment="Access Point - Front Yard" mac-address=
D4:E5:C9:00:EC:F3 server=dhcp20
add address=10.10.20.181 comment="Access Point - Basement Common"
mac-address=C4:E3:CE:73:70:13 server=dhcp20
add address=10.10.20.180 comment="Access Point - Back Yard" mac-address=
C4:E3:CE:65:E8:8E server=dhcp20
add address=10.10.20.178 comment="Access Point - Work Room" mac-address=
88:DC:97:4E:A1:2E server=dhcp20
add address=10.10.20.175 client-id=1:d0:ea:11:53:11:f4 comment="Media Room"
mac-address=D0:EA:11:53:11:F4 server=dhcp20
add address=10.10.20.174 client-id=1:78:9a:18:7:23:2 comment="Family Room"
mac-address=78:9A:18:07:23:02 server=dhcp20
add address=10.10.20.164 client-id=1:48:a9:8a:52:8d:38 comment=
"Network Rack 24-port" mac-address=48:A9:8A:52:8D:38 server=dhcp20
add address=10.10.20.172 client-id=1:d8:8b:4c:fa:8d:d6 comment=
"Yolink Bridge" mac-address=D8:8B:4C:FA:8D:D6 server=dhcp20
add address=10.10.20.161 client-id=1:d0:ea:11:5e:83:6c mac-address=
D0:EA:11:5E:83:6C server=dhcp20
/ip dhcp-server network
add address=10.10.2.0/24 comment=defconf dns-server=10.10.1.1,9.9.9.9,1.1.1.1
domain=battletech-home.net gateway=10.10.2.1 netmask=24
add address=10.10.3.0/24 dns-server=10.10.2.1,9.9.9.9,1.1.1.1 gateway=
10.10.3.1
add address=10.10.20.0/24 dns-server=10.10.2.1,9.9.9.9,1.1.1.1 gateway=
10.10.20.1
add address=10.10.30.0/24 dns-server=9.9.9.9,1.1.1.1 gateway=10.10.30.1
add address=10.10.40.0/24 dns-server=9.9.9.9,1.1.1.1 gateway=10.10.40.1
add address=10.10.50.0/24 dns-server=9.9.9.9,1.1.1.1 gateway=10.10.50.1
add address=10.10.60.0/24 dns-server=9.9.9.9,1.1.1.1 gateway=10.10.60.1
add address=10.10.70.0/24 dns-server=9.9.9.9,1.1.1.1 gateway=10.10.70.1
/ip dns
set allow-remote-requests=yes
/ip dns static
add address=10.10.10.1 comment=defconf name=router.lan type=A
/ip firewall address-list
add address=10.10.2.0/24 comment=Local-VLAN2 list=Local-VLAN2
add address=10.10.3.0/24 comment=Local-VLAN3 list=Local-VLAN3
add address=10.10.20.0/24 comment=Local-VLAN20 list=Local-VLAN20
add address=10.10.30.0/24 comment=Local-VLAN30 list=Local-VLAN30
add address=10.10.40.0/24 comment=Local-VLAN40 list=Local-VLAN40
add address=10.10.50.0/24 comment=Local-VLAN50 list=Local-VLAN50
add address=10.10.60.0/24 comment=Local-VLAN60 list=Local-VLAN60
add address=10.10.70.0/24 comment=Local-VLAN70 list=Local-VLAN70
/ip firewall filter
add action=accept chain=input comment=
"defconf: accept established,related,untracked" connection-state=
established,related,untracked
add action=drop chain=input comment="defconf: drop invalid" connection-state=
invalid
add action=accept chain=input comment="defconf: accept ICMP" protocol=icmp
add action=accept chain=input comment=
"defconf: accept to local loopback (for CAPsMAN)" dst-address=127.0.0.1
in-interface=lo src-address=127.0.0.1
add action=drop chain=input comment="defconf: drop all not coming from LAN"
in-interface-list=!LAN
add action=accept chain=forward comment="defconf: accept in ipsec policy"
ipsec-policy=in,ipsec
add action=accept chain=forward comment="defconf: accept out ipsec policy"
ipsec-policy=out,ipsec
add action=fasttrack-connection chain=forward comment="defconf: fasttrack"
connection-state=established,related
add action=accept chain=forward comment=
"Allow traffic from Management VLAN into all others" connection-state=new
disabled=yes dst-address=10.10.0.0/24 src-address-list=Local-VLAN20
add action=accept chain=forward comment=
"defconf: accept established,related, untracked" connection-state=
established,related,untracked
add action=drop chain=forward comment="defconf: drop invalid"
connection-state=invalid
add action=drop chain=forward comment=
"defconf: drop all from WAN not DSTNATed" connection-nat-state=!dstnat
in-interface-list=WAN
add action=drop chain=forward comment=
"Drop sessions initiated from printers, to televisions" connection-state=
new disabled=yes dst-address-list=Local-VLAN60 src-address-list=
Local-VLAN70
/ip firewall nat
add action=masquerade chain=srcnat comment="defconf: masquerade"
ipsec-policy=out,none out-interface-list=WAN
/ipv6 firewall address-list
add address=::/128 comment="defconf: unspecified address" list=bad_ipv6
add address=::1/128 comment="defconf: lo" list=bad_ipv6
add address=fec0::/10 comment="defconf: site-local" list=bad_ipv6
add address=::ffff:0.0.0.0/96 comment="defconf: ipv4-mapped" list=bad_ipv6
add address=::/96 comment="defconf: ipv4 compat" list=bad_ipv6
add address=100::/64 comment="defconf: discard only " list=bad_ipv6
add address=2001:db8::/32 comment="defconf: documentation" list=bad_ipv6
add address=2001:10::/28 comment="defconf: ORCHID" list=bad_ipv6
add address=3ffe::/16 comment="defconf: 6bone" list=bad_ipv6
/ipv6 firewall filter
add action=accept chain=input comment=
"defconf: accept established,related,untracked" connection-state=
established,related,untracked
add action=drop chain=input comment="defconf: drop invalid" connection-state=
invalid
add action=accept chain=input comment="defconf: accept ICMPv6" protocol=
icmpv6
add action=accept chain=input comment="defconf: accept UDP traceroute"
dst-port=33434-33534 protocol=udp
add action=accept chain=input comment=
"defconf: accept DHCPv6-Client prefix delegation." dst-port=546 protocol=
udp src-address=fe80::/10
add action=accept chain=input comment="defconf: accept IKE" dst-port=500,4500
protocol=udp
add action=accept chain=input comment="defconf: accept ipsec AH" protocol=
ipsec-ah
add action=accept chain=input comment="defconf: accept ipsec ESP" protocol=
ipsec-esp
add action=accept chain=input comment=
"defconf: accept all that matches ipsec policy" ipsec-policy=in,ipsec
add action=drop chain=input comment=
"defconf: drop everything else not coming from LAN" in-interface-list=
!LAN
add action=fasttrack-connection chain=forward comment="defconf: fasttrack6"
connection-state=established,related
add action=accept chain=forward comment=
"defconf: accept established,related,untracked" connection-state=
established,related,untracked
add action=drop chain=forward comment="defconf: drop invalid"
connection-state=invalid
add action=drop chain=forward comment=
"defconf: drop packets with bad src ipv6" src-address-list=bad_ipv6
add action=drop chain=forward comment=
"defconf: drop packets with bad dst ipv6" dst-address-list=bad_ipv6
add action=drop chain=forward comment="defconf: rfc4890 drop hop-limit=1"
hop-limit=equal:1 protocol=icmpv6
add action=accept chain=forward comment="defconf: accept ICMPv6" protocol=
icmpv6
add action=accept chain=forward comment="defconf: accept HIP" protocol=139
add action=accept chain=forward comment="defconf: accept IKE" dst-port=
500,4500 protocol=udp
add action=accept chain=forward comment="defconf: accept ipsec AH" protocol=
ipsec-ah
add action=accept chain=forward comment="defconf: accept ipsec ESP" protocol=
ipsec-esp
add action=accept chain=forward comment=
"defconf: accept all that matches ipsec policy" ipsec-policy=in,ipsec
add action=drop chain=forward comment=
"defconf: drop everything else not coming from LAN" in-interface-list=
!LAN
/system clock
set time-zone-name=America/Denver
/system ntp client
set enabled=yes
/system ntp server
set broadcast=yes
/system ntp client servers
add address=pool.ntp.org
/tool mac-server
set allowed-interface-list=LAN
/tool mac-server mac-winbox
set allowed-interface-list=LAN
