Community discussions

MikroTik App
 
lurch
just joined
Topic Author
Posts: 23
Joined: Mon Jan 24, 2022 5:45 pm

allowing traffic between vlans

Wed May 11, 2022 10:53 am

Using the following configuration on a device plugged into ether12 on vlan100 i'm unable to ping a device on vlanid please could someone tell me what firewall (i assume) rule i would need or is it something else?
/interface bridge
add admin-mac=xxxxxxxxxxx auto-mac=no comment=defconf name=bridge \
    vlan-filtering=yes

/interface vlan
add interface=bridge name=vlan100 vlan-id=100

/interface list
add name=WAN
add name=LAN

/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik

/ip pool
add name=vlan100_pool ranges=10.20.20.1-10.20.20.253

/ip dhcp-server
add address-pool=vlan100_pool bootp-support=none disabled=no interface=vlan100 \
    lease-time=1d name=vlan100_dhcp
add bridge=bridge comment=defconf interface=ether12 pvid=100

/interface bridge vlan
add bridge=bridge vlan-ids=1
add bridge=bridge tagged=sfp-sfpplus1,bridge vlan-ids=100

/ip address
add address=192.168.88.1/24 comment=defconf interface=bridge network=\
    192.168.88.0
add address=10.10.0.9/24 interface=ether2 network=10.10.0.0
add address=10.20.20.254/24 interface=vlan100 network=10.20.20.0

/ip dhcp-server network
add address=10.20.20.0/24 dns-server=8.8.8.8,8.8.4.4 gateway=10.20.20.254 \
    netmask=24

/ip firewall nat
add action=masquerade chain=srcnat out-interface=bridge src-address=\
    10.20.20.0/24
 
User avatar
Sahafi2001
newbie
Posts: 41
Joined: Mon Apr 12, 2021 3:22 pm
Contact:

Re: allowing traffic between vlans

Wed May 11, 2022 11:22 am

Try to do like this
/interface bridge port
add bridge=bridge interface=ether12
/interface bridge vlan
add bridge=bridge tagged=ether12 vlan-ids=100
/ip address
add address=10.10.0.9/24 interface=ether12 network=10.10.0.0
;
 
lurch
just joined
Topic Author
Posts: 23
Joined: Mon Jan 24, 2022 5:45 pm

Re: allowing traffic between vlans

Wed May 11, 2022 1:30 pm

Hi thanks but i'm a bit confused does that mean I would have to do this for every port I want to allow traffic to flow between the vlans for?

ether12 is already a bridge port
[admin@RouterOS] /interface bridge port> add bridge=bridge interface=ether12
failure: device already added as bridge port
 
Zacharias
Forum Guru
Forum Guru
Posts: 3459
Joined: Tue Dec 12, 2017 12:58 am
Location: Greece

Re: allowing traffic between vlans

Wed May 11, 2022 1:40 pm

Can you show a network diagram of your topology and point on the traffic that you assume it is blocked ?
 
erlinden
Forum Guru
Forum Guru
Posts: 1957
Joined: Wed Jun 12, 2013 1:59 pm
Location: Netherlands

Re: allowing traffic between vlans

Wed May 11, 2022 1:42 pm

Can you please have a look at this great topic about VLAN's:
viewtopic.php?f=23&t=143620

By default all intervlan communication is allowed, you have to block it manually.
 
lurch
just joined
Topic Author
Posts: 23
Joined: Mon Jan 24, 2022 5:45 pm

Re: allowing traffic between vlans

Wed May 11, 2022 1:56 pm

Hi I just rebooted the router and inter vlan started working most strange thank you for your help

Who is online

Users browsing this forum: LunaticRv, nizce and 23 guests