Hello everyone,
I’m reaching out to seek some assistance with a networking issue I’m experiencing on my MikroTik RB5009 router. I’ve been trying to set up VLANs on this device, but unfortunately, I seem to be encountering some roadblocks.
Here’s a breakdown of my setup and the steps I’ve taken so far:
- Router Model: MikroTik RB5009UG+S
- Observations:
- DHCP is working fine.
- Default route has been added.
- I’ve assigned the correct IP addresses.
- I can successfully ping 8.8.8.8 from the MikroTik router.
- I’m able to reach my modem at 192.168.0.1 from my MikroTik router.
Despite the above observations, the VLANs are not working as intended.
I’ve double-checked my configuration settings, and everything seems to be in order. However, when I try to access devices connected to different VLANs, I’m unable to establish an Internet connection. It’s worth noting that I’ve followed the standard procedures for configuring VLANs on MikroTik devices (I used this guide: http://forum.mikrotik.com/t/using-routeros-to-vlan-your-network/126489/1 and I almost 1:1 copied the Router-Switch-AP config, just without the WLAN part, because I dont need that), so I’m a bit puzzled as to why it’s not functioning correctly.
Additionally, I’d like to mention that my network design includes specific VLAN assignments for different purposes. VLAN ID 10 is designated as my HOME_VLAN, intended for all home devices such as PCs, laptops, gaming consoles like Nintendo Switch, and other personal devices. VLAN ID 20 is allocated for my PiHole setup, serving as a dedicated VLAN for DNS filtering and ad-blocking services. Lastly, VLAN ID 99 is reserved as my Management VLAN, facilitating administrative tasks and network management activities. Each VLAN serves a distinct purpose in my network architecture, and ensuring their proper functionality is crucial for maintaining an efficient and secure network environment.
If anyone has encountered a similar issue or has expertise in MikroTik networking, I would greatly appreciate any insights or suggestions you may have to offer. I’m open to troubleshooting steps and willing to provide additional information as needed to resolve this issue.
Thank you in advance for your assistance!
# 2024-02-16 11:24:38 by RouterOS 7.13.4
# software id = SU4P-G42F
#
# model = RB5009UG+S+
# serial number = HFD09BMCQEG
/interface bridge
add name=BR1 protocol-mode=none vlan-filtering=yes
/interface vlan
add interface=BR1 name=BASE_VLAN vlan-id=99
add interface=BR1 name=HOME_VLAN vlan-id=10
add interface=BR1 name=PIHOLE_VLAN vlan-id=20
/interface list
add name=WAN
add name=VLAN
add name=BASE
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/ip pool
add name=HOME_POOL ranges=10.0.10.2-10.0.10.254
add name=PIHOLE_POOL ranges=10.0.20.2-10.0.20.254
add name=BASE_POOL ranges=192.168.99.10-192.168.99.254
/ip dhcp-server
add address-pool=HOME_POOL interface=HOME_VLAN lease-time=1d name=HOME_DHCP
add address-pool=PIHOLE_POOL interface=PIHOLE_VLAN lease-time=1d name=\
PIHOLE_DHCP
add address-pool=BASE_POOL interface=BASE_VLAN lease-time=1d name=BASE_DHCP
/interface bridge port
add bridge=BR1 frame-types=admit-only-untagged-and-priority-tagged interface=\
ether2 pvid=10
add bridge=BR1 frame-types=admit-only-untagged-and-priority-tagged interface=\
ether3 pvid=10
add bridge=BR1 frame-types=admit-only-untagged-and-priority-tagged interface=\
ether4 pvid=20
add bridge=BR1 frame-types=admit-only-untagged-and-priority-tagged interface=\
ether5 pvid=99
add bridge=BR1 interface=ether6
/ip neighbor discovery-settings
set discover-interface-list=all
/interface bridge vlan
add bridge=BR1 tagged=BR1 untagged=ether2,ether3 vlan-ids=10
add bridge=BR1 tagged=BR1 vlan-ids=20
add bridge=BR1 tagged=BR1 untagged=ether5 vlan-ids=99
/interface list member
add interface=ether1 list=WAN
add interface=BASE_VLAN list=VLAN
add interface=HOME_VLAN list=VLAN
add interface=PIHOLE_VLAN list=VLAN
add interface=BASE_VLAN list=BASE
/ip address
add address=192.168.99.1/24 interface=BASE_VLAN network=192.168.99.0
add address=10.0.10.1/24 interface=HOME_VLAN network=10.0.10.0
add address=10.0.20.1/24 interface=PIHOLE_VLAN network=10.0.20.0
/ip dhcp-client
add interface=ether1
/ip dhcp-server network
add address=10.0.10.0/24 dns-server=192.168.0.1 gateway=10.0.10.1
add address=10.0.20.0/24 dns-server=192.168.0.1 gateway=10.0.20.1
add address=192.168.99.0/24 dns-server=192.168.99.1 gateway=192.168.99.1
/ip dns
set allow-remote-requests=yes servers=9.9.9.9
/ip firewall filter
add action=accept chain=input comment="Allow Estab & Related" connection-state=\
established,related
add action=accept chain=input comment=\
"Allow VLAN; TODO: When done and everything works, more granular" \
in-interface-list=VLAN
add action=drop chain=input comment=Drop
add action=accept chain=forward comment="Allow Estab & Related" \
connection-state=established,related
add action=accept chain=forward comment="VLAN Internet Access only" \
connection-state=new in-interface-list=VLAN out-interface-list=WAN
add action=drop chain=forward comment=Drop
/system clock
set time-zone-name=Europe/Vienna
/system identity
set name=RouterSwitch
/system note
set show-at-login=no
/tool mac-server
set allowed-interface-list=BASE
/tool mac-server mac-winbox
set allowed-interface-list=BASE