Vlan and ADSL

Hi, I’m new to Mikrotik.
I have a routerboard 751U 2HnD with RouterOS 6.25.

I have setup a Netgear FS726T that is a layer 2 switch, I connect 8 Unifi AP’s to switch and have one trunk port to my Mikrotik.
Unifi has a Guest and Work network with VLAN ID’s 10 and 20. I have setup the switch and mikrotik to give IP adres to each VLAN. This works fine. So I have my trunk port from the Netgear router into port 3 of the mikrotik and I have a normal TPLink ADSL router that does not support VLAn connected to Port 2 of the mikrotik.

VLAN 10 has ip range 172.19.40.1/24 and vlan 20 has IP range 192.168.2.1/24

Both network works fine and receives IP adres from DHCP server on mikrotik, but none of the networks has internet access.

Please assit

Have you properly set your default gateways? Can you ping them? DNS setting? Check firewall rules, maybe you got some rule that prohibits traffic.

I’m not sure if its correct, If I give vlan 10 IP range 172.19.40.1/24 I give that a deafalt gateway of 172.19.40.1 and Google DNS settings. My tplink router’s IP address is 192.168.0.1.

My setup is very simple, 2 vlans with DHCP server for each. I did not setup any bridge connection or anything else.
I’m thinking that I need something more for this to work. How does the mikrotik give my vlans internet from the adsl on port 2, where my vlan port is port 3.