Quantcast
Channel: MikroTik
Viewing all articles
Browse latest Browse all 15172

Beginner Basics • VLAN question

$
0
0
Hello,

I am trying to setup router according to this example:

https://help.mikrotik.com/docs/display/ ... rewall/NAT

In one of untagged ports (ether1) I have switch (just bridge over all ports, nothing else). Do I need to setup vlan also on this switch, or it will work, since port is untagged? It does not work in my case (i am not able to ping gateway - 192.168.88.1), but I want to know theory first, to be able to better find cause (wrong router configuration or switch configuration).

This is code for bridge/vlan I am trying this configuration. I have two bridges ony my router and I want to merge them into one, so first I want to prototype setup on one bridge and once it is working move ports of the second there and add other vlan (production router, cant afford longer downtime):


Code:
/interface list memberadd interface=ether1 list=LANadd interface=ether11 list=LANadd interface=ether12 list=LANadd interface=sfp-sfpplus1-LAN list=LAN/interface bridgeadd name=bridge-home-88 vlan-filtering=yes/interface bridge portadd bridge=bridge-home-88 interface=ether1 pvid=88add bridge=bridge-home-88 interface=ether11 pvid=88add bridge=bridge-home-88 interface=ether12 pvid=88add bridge=bridge-home-88 interface=sfp-sfpplus1-LAN pvid=88/interface bridge vlanadd bridge=bridge-home-88 tagged=bridge-home-88 untagged=ether1,ether11,ether12,sfp-sfpplus1-LAN vlan-ids=88/interface vlanadd interface=bridge-home-88 name=vlan-home-88 vlan-id=88/ip addressadd address=192.168.88.1/24 interface=vlan-home-88 network=192.168.88.0there is also DHCP on interface=vlan-home-88and /ip firewall filteradd action=fasttrack-connection chain=forward connection-state=established,relatedadd action=accept chain=forward connection-state=established,related /ip firewall natadd action=masquerade chain=srcnat out-interface-list=WAN
If I do this:

/ip address
add address=192.168.88.1/24 interface=bridge-home-88 network=192.168.88.0 and do same with dhcp, it will start working, but this is not result I want.


I am also curious, why they are using in example 17 in last octet, any specific reason? add address=192.168.30.17/24 interface=vlan30 network=192.168.30.0

Thanks.

Statistics: Posted by jwa — Sun Jan 28, 2024 1:13 am



Viewing all articles
Browse latest Browse all 15172

Trending Articles