# Trouble getting internet on vlan

**URL:** <https://forum.mikrotik.com/t/trouble-getting-internet-on-vlan/273862>\
**Category:** Beginner Basics\
**Created:** [October 16, 2026, 12:14pm UTC](https://forum.mikrotik.com/t/trouble-getting-internet-on-vlan/273862 "2026-10-16T12:14:52Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![proceeder](https://forum.mikrotik.com/letter_avatar/proceeder/32/6_449c533f586939b6e5f246632a46421f.png) [@proceeder](https://forum.mikrotik.com/u/proceeder)\
**Post date:** [October 16, 2026, 12:14pm UTC](https://forum.mikrotik.com/t/trouble-getting-internet-on-vlan/273862/1 "2026-10-16T12:14:52Z")

</div>

Hello,  
ive been battling mikrotik to do simple vlan segmentation, I could get internet on vlan 20 through virtual wifi but cannot get it to do internet on vlan 10. Am I missing firewall rules? I based this config on this tutorial: [Using RouterOS to VLAN your network - #3 by pcunite](https://forum.mikrotik.com/t/using-routeros-to-vlan-your-network/126489/3) (Router-Switch-AP (all in one))

```routeros
# 2026-10-16 14:48:19 by RouterOS 7.24.2
# software id = 
#
# model = RBwAPG-5HacD2HnD
# serial number = 
/interface bridge
add admin-mac=[] auto-mac=no name=BR1 protocol-mode=none vlan-filtering=yes
/interface vlan
add interface=BR1 name=vlan_iot vlan-id=20
add interface=BR1 name=vlan_main vlan-id=10
/interface list
add name=WAN
add name=VLAN
add name=LAN
/interface lte apn
set [find default=yes] ip-type=ipv4 use-network-apn=no
/interface wireless security-profiles
set [find default=yes] supplicant-identity=MikroTik
add authentication-types=wpa2-psk mode=dynamic-keys name=std supplicant-identity=""
add authentication-types=wpa2-psk mode=dynamic-keys name=iot supplicant-identity=""
/interface wireless
set [find default-name=wlan1] band=2ghz-b/g/n channel-width=20/40mhz-XX disabled=no distance=indoors frequency=auto \
    installation=outdoor mode=ap-bridge security-profile=std ssid=[] wireless-protocol=802.11 wps-mode=disabled
set [find default-name=wlan2] band=5ghz-a/n/ac channel-width=20/40/80mhz-XXXX disabled=no distance=indoors \
    frequency=auto installation=outdoor mode=ap-bridge security-profile=std ssid=[] wireless-protocol=802.11 \
    wps-mode=disabled
add disabled=no mac-address=[] master-interface=wlan1 name=wlan3 security-profile=iot ssid=iot_sh \
    vlan-id=20 wps-mode=disabled
/ip pool
add name=pirmais_tikls ranges=192.168.1.20-192.168.1.254
add name=iot ranges=192.168.20.2-192.168.20.254
/ip dhcp-server
add address-pool=pirmais_tikls interface=vlan_main name=galvenais_tikls
add address-pool=iot interface=vlan_iot name=dhcp_iot
/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=wlan1 pvid=10
add bridge=BR1 frame-types=admit-only-untagged-and-priority-tagged interface=wlan2 pvid=10
add bridge=BR1 frame-types=admit-only-untagged-and-priority-tagged interface=wlan3 pvid=20
/ip neighbor discovery-settings
set discover-interface-list=LAN
/ipv6 settings
set disable-ipv6=yes
/interface bridge vlan
add bridge=BR1 tagged=BR1 vlan-ids=10
add bridge=BR1 tagged=BR1 vlan-ids=20
/interface list member
add interface=ether1 list=WAN
add interface=vlan_main list=VLAN
add interface=vlan_iot list=VLAN
add disabled=yes interface=vlan_main list=LAN
/ip address
add address=192.168.1.0/24 interface=vlan_main network=192.168.1.0
add address=192.168.20.1/24 interface=vlan_iot network=192.168.20.0
/ip dhcp-client
add comment=defconf interface=ether1 name=ether1
/ip dhcp-server lease
add address=192.168.1.40 client-id=1:[] mac-address=[] server=galvenais_tikls
/ip dhcp-server network
add address=192.168.1.0/24 dns-server=1.1.1.1,1.0.0.1 domain=talavas gateway=192.168.1.1
add address=192.168.20.0/24 dns-server=1.1.1.1,1.0.0.1 gateway=192.168.20.1
/ip dns
set allow-remote-requests=yes servers=1.1.1.1,1.0.0.1
/ip firewall filter
add action=accept chain=input comment="Allow Estab & Related" connection-state=established,related
add action=accept chain=input comment="Allow VLAN" in-interface-list=VLAN
add action=accept chain=input comment="Allow Base_Vlan Full Access" disabled=yes in-interface=vlan_main
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
/ip firewall nat
add action=masquerade chain=srcnat comment="Default masquerade" ipsec-policy=out,none out-interface-list=WAN
/ip firewall service-port
set ftp disabled=yes
set tftp disabled=yes
/system clock
set time-zone-name=Europe/Riga
/system identity
set name=Ienakosais_AP_FIREWALL
/tool mac-server
set allowed-interface-list=LAN
/tool mac-server mac-winbox
set allowed-interface-list=LAN

```

---

<div class="post-metadata">

**Author:** ![infabo](https://forum.mikrotik.com/user_avatar/forum.mikrotik.com/infabo/32/55692_2.png) [@infabo](https://forum.mikrotik.com/u/infabo)\
**Post date:** [October 16, 2026, 12:23pm UTC](https://forum.mikrotik.com/t/trouble-getting-internet-on-vlan/273862/2 "2026-10-16T12:23:02Z")

</div>

> [@proceeder](#):
>
> ```auto
> /ip address
> add address=192.168.1.0/24 interface=vlan_main network=192.168.1.0
> 
> ```

192.168.1.0 is the network address - not a host ip address. Fix that and check again.

---

<div class="post-metadata">

**Author:** ![proceeder](https://forum.mikrotik.com/letter_avatar/proceeder/32/6_449c533f586939b6e5f246632a46421f.png) [@proceeder](https://forum.mikrotik.com/u/proceeder)\
**Post date:** [October 16, 2026, 4:36pm UTC](https://forum.mikrotik.com/t/trouble-getting-internet-on-vlan/273862/3 "2026-10-16T16:36:23Z")

</div>

Thank you! I feel so dumb now. I guess staring at same lines for hours doesnt help.

---

<div class="post-metadata">

**Author:** ![tadawson](https://forum.mikrotik.com/letter_avatar/tadawson/32/6_449c533f586939b6e5f246632a46421f.png) [@tadawson](https://forum.mikrotik.com/u/tadawson)\
**Post date:** [October 16, 2026, 5:57pm UTC](https://forum.mikrotik.com/t/trouble-getting-internet-on-vlan/273862/4 "2026-10-16T17:57:53Z")

</div>

It happens, and I think that we have all been there at one point or another . . .

---

<div class="post-metadata">

**Author:** ![infabo](https://forum.mikrotik.com/user_avatar/forum.mikrotik.com/infabo/32/55692_2.png) [@infabo](https://forum.mikrotik.com/u/infabo)\
**Post date:** [October 16, 2026, 6:19pm UTC](https://forum.mikrotik.com/t/trouble-getting-internet-on-vlan/273862/5 "2026-10-16T18:19:03Z")

</div>

I think there was already a forum discussion on the matter: should "address" accept such an address? Technically it is a valid ip address. I can't think of a use case where one would need a network address in /ip/address? If there aren't any, then a warning message would be helpful for users to easily spot the issue.

---

<div class="post-metadata">

**Author:** ![BartoszP](https://forum.mikrotik.com/user_avatar/forum.mikrotik.com/bartoszp/32/1386_2.png) [@BartoszP](https://forum.mikrotik.com/u/BartoszP)\
**Post date:** [October 17, 2026, 5:04pm UTC](https://forum.mikrotik.com/t/trouble-getting-internet-on-vlan/273862/6 "2026-10-17T17:04:36Z")

</div>

> [@infabo](#):
>
> I can't think of a use case where one would need a network address in /ip/address

Many full /24 VLANS that are concentrated at one bridge with eg. /21 mask concentrating traffic from interfaces servinf 256 hosts each.

---

<div class="post-metadata">

**Author:** ![infabo](https://forum.mikrotik.com/user_avatar/forum.mikrotik.com/infabo/32/55692_2.png) [@infabo](https://forum.mikrotik.com/u/infabo)\
**Post date:** [October 17, 2026, 8:57pm UTC](https://forum.mikrotik.com/t/trouble-getting-internet-on-vlan/273862/7 "2026-10-17T20:57:34Z")

</div>

I understand 192.168.1.0/21 is a valid host address. But still why 192.168.1.0/24 would serve a purpose?
