No internet on VLAN/Other devices when the switch can ping google's DNS

So I’m trying to set up a new mikrotik switch with a flint 3 AP as well as a handful of servers.

I’ve got two VLANs at the moment for internet devices like servers and the wifi router. I also have an internal devices VLAN. Once I get these working I have more I want to add.

My internet comes in on a modem running it’s own DHCP server. Once I can migrate the servers connected to it, I’ll be putting it in bridge mode.

from the switch/router I can ping 8.8.8.8 just fine. However nothing on any of the other networks can. They get IPs from the DHCP server, but I can’t figure out why they don’t get internet access.

[admin@MikroTik] > /export hide-sensitive
# nov/16/2025 09:43:02 by RouterOS 7.6
# software id = 7K2C-ZSS1
#
# model = CRS312-4C+8XG
# serial number = HE808HWTQQ8
/interface bridge
add admin-mac=48:A9:8A:7D:D3:8C auto-mac=no comment=defconf name=bridge
/interface vlan
add interface=bridge name=NetworkDevices vlan-id=10
add interface=bridge name=NutterDevices vlan-id=40
/interface list
add name=LAN
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/ip pool
add name=dhcp_pool0 ranges=192.168.10.2-192.168.10.254
add name=dhcp_pool1 ranges=192.168.40.1-192.168.40.254
/ip dhcp-server
add address-pool=dhcp_pool0 interface=bridge name=dhcp1
add address-pool=dhcp_pool1 interface=NutterDevices name=dhcp2
/port
set 0 name=serial0
/interface bridge port
add bridge=bridge comment=defconf interface=combo1
add bridge=bridge comment=defconf interface=combo2
add bridge=bridge comment=defconf interface=combo3
add bridge=bridge comment=defconf interface=combo4
add bridge=bridge comment=defconf interface=ether1
add bridge=bridge comment=defconf interface=ether2 pvid=10
add bridge=bridge comment=defconf interface=ether3
add bridge=bridge comment=defconf interface=ether4
add bridge=bridge comment=defconf interface=ether5
add bridge=bridge comment=defconf interface=ether6
add bridge=bridge comment=defconf interface=ether7 trusted=yes
add bridge=bridge comment=defconf interface=ether8
add bridge=bridge comment=defconf interface=ether9
/interface bridge vlan
add bridge=bridge tagged=ether2,NetworkDevices vlan-ids=10
add bridge=bridge vlan-ids=40
/interface list member
add interface=bridge list=LAN
add interface=NutterDevices list=LAN
add interface=NetworkDevices list=LAN
add interface=ether2 list=LAN
/ip address
add address=192.168.88.1/24 comment=defconf interface=bridge network=\
    192.168.88.0
add address=192.168.10.0/24 interface=NetworkDevices network=192.168.10.0
add address=192.168.40.0/24 interface=NutterDevices network=192.168.40.0
/ip dhcp-client
add interface=bridge
/ip dhcp-server lease
add address=192.168.10.253 mac-address=94:83:C4:B2:F8:D1 server=dhcp1
/ip dhcp-server network
add address=192.168.10.0/24 dns-server=8.8.8.8 gateway=192.168.10.1
add address=192.168.40.0/24 dns-server=8.8.8.8 gateway=192.168.40.0
/ip dns
set servers=8.8.8.8
/ip firewall nat
add action=masquerade chain=srcnat out-interface=bridge
add action=masquerade chain=srcnat dst-address=0.0.0.0/24 out-interface=bridge \
    src-address=192.168.10.0/24
add action=masquerade chain=srcnat dst-address=0.0.0.0/24 out-interface=bridge \
    src-address=192.168.40.0/24
add action=masquerade chain=srcnat out-interface-list=LAN
/system clock
set time-zone-name=America/Toronto
/system routerboard settings
set boot-os=router-os enter-setup-on=delete-key

I am confused, if you put the ISPs modem/router into bridge mode, which device will be the router?

I'm setting up the mikrotik switch as a router with router os

Okay so your ISP provides around 200Mbps throughput or less??

Its got a gigabit thernet attached

All I am saying is will be wasted as the switch, acting as a router, will not even get 1/2 that from WAN to LAN or LAN to WAN.

Its a 10gb router with a 25gb uplink? I'd expect far more out of it?

Where did you get that impression? It is a switch. It has a weak (single core 650Mhz) CPU for management tasks only.

See the difference between switching and routing performance here.

depending on what you are routing and whether you need firewall, you may be able to use L3HW offloading, but it appears the CRS312 is on the "partial L3HW offloading" list. So I doubt it will work well for an internet connection (but this is just guess, I have never used L3HW offloading on MikroTik)

Layer 3 Hardware Offloading Mikrotik - Deep Dive by Wilmer Almazan / The Network Trip discusses the configuration needed.

Yes, it has great throughput between ports on the switch ( so many devices on the switch passing data back and forth at amazing rates. A switch is not meant for routing data back and forth with the internet.
Isnt that a basic tenant of networking?? Me not trained so just guessing.

Suggest an ax3 for cheap 1gig router, or for your more business case/throughput the RB5009 is an excellent long term investment

Aside from the fact that the devices is not suitable to act as NAT gateway for Gbps internet, the configuration posted in the OP has several issues:

  • vlan-filtering=yes is missing on the bridge.

  • Device is still using the very old version 7.6, and declares the two interfaces NetworkDevices and NutterDevices, but under /interface bridge vlan the bridge is not listed in the tagged list of VLAN 10 and 40. If you want to be lazy and omit that, then you'll need to upgrade RouterOS to the recently released versions, where that will be done automatically for you.

  • Port ether2 has pvid=10 and frame-types=admit-all, but under /interface bridge vlan is listed in the tagged list of VLAN 10.

    • If you want ether2 to be access port of VLAN 10, then you must remove it from the tagged list and it it to the untagged list (optional, RouterOS can also do it automatically for you).

    • But if you want VLAN 10 to be tagged on that port, then EITHER set frame-types=admit-only-vlan-tagged on ether2 (make it trunk port only); OR keep frame-types=admit-all but change pvid=1 (ether2 will be hybrid port).

  • VLAN 40 has no port assigned.

  • The bridge interface that appears to be your WAN interface (quite questionable setup) should be in the interface list WAN and not LAN. Create an interface list WAN and move the bridge to it.

  • Port ether2 doesn't need to be in the LAN interface list.

  • You have wrong and redundant masquerade rules, remove all and only keep:

    /ip firewall nat
    add action=masquerade chain=srcnat out-interface-list=WAN
    
  • Where are the firewall filter rules protecting your router and the LAN?

About how to configure VLAN, read the official docs, including the examples. If you don't know the several VLAN terms, read this often linked guide, the first post explains the concepts.

If you want to secure your firewall, apply the defconf firewall rules that come with MikroTik's SOHO devices here (use the rules for RouterOS 7).

Further, you should not use the whole bridge as WAN interface. Assuming ether7 is the port connected to the ISP, you should do the following modifications (after having upgraded RouterOS and fixing the VLAN configuration):

  • Set pvid=1000 on ether7 (or any number of your choice between 2-4094 excluding 10 and 40).
  • Under /interface vlan create VLAN interface vlan-wan with bridge as parent with the VLAN ID above.
  • Add vlan-wan to WAN interface list that you've created above.
  • Modify the DHCP client instance to use vlan-wan as interface instead of bridge.

If I may, besides the incomplete/wrong configuration and the - let's say - poor choice of the device as a router, there is no firewall (nor categorization of interfaces as LAN and WAN).

If the device is/will be connected directly to the internet (without a proper firewall in between), it is potentially vulnerable to attacks.

@op Much easier to set it up as a switch too......