Community discussions

MikroTik App
 
nikolausp
just joined
Topic Author
Posts: 1
Joined: Wed Apr 20, 2022 1:49 pm

VLAN beginner question

Wed Apr 20, 2022 4:42 pm

Hi all,

I am new to MikroTik and now I need some hints on how to configure an VLAN interface.
I reduced my configuration to the following:
ether1: Internet
ether9: connected PC ("PC9" IP 10.1.1.9/24, GW 10.1.1.1)
ether10: connected PC ("PC10" IP 10.1.1.10/24, GW 10.1.1.1)
On WebFig - Bridge - VLAN, I added item with bridge1, VLAN ID 10 and untagged interfaces ether9,ether10 (I do no see it on console)

Problem: PC9 cannot ping GW 10.1.1.1 nor Internet (e.g. 1.1.1.1)

Working configuration:
ether9 IP address 10.1.1.1/24
then "PC9" has access to the Internet (ping 1.1.1.1) and GW 10.1.1.1

What I want:
vlan10 (ports ether9, ether10) with interface vlan10 ip address 10.1.1.1/24 acting as gateway for two PCs

[admin@MikroTik] /ip> route print
...
# DST-ADDRESS PREF-SRC GATEWAY DISTANCE
0 A S 0.0.0.0/0 192.168.1.1 1
1 ADC 10.1.1.0/24 10.1.1.1 vlan10 0
2 ADC 192.168.1.200/24 192.168.1.1 ether1 0
3 ADC 192.168.88.0/24 192.168.88.1 bridge1 0

[admin@MikroTik] /routing> export
# apr/20/2022 15:16:17 by RouterOS 6.49.6
# software id = RAUU-49GG
#
# model = CRS326-24G-2S+
# serial number = .....


Remark:
When I connect a switch with vlan tag 10 to ether9, then all is fine (PC9 can ping Internet)
Only with untagged (switch or PC9) connected to ether9, I do not get connection

Any hint where to search&find is very appreciated

BR Klaus
 
User avatar
anav
Forum Guru
Forum Guru
Posts: 19176
Joined: Sun Feb 18, 2018 11:28 pm
Location: Nova Scotia, Canada
Contact:

Re: VLAN beginner question

Thu Apr 21, 2022 4:32 pm

Use winbox LOL,
Check out ITEM C here. - viewtopic.php?t=182373
 
User avatar
Buckeye
Forum Veteran
Forum Veteran
Posts: 890
Joined: Tue Sep 11, 2018 2:03 am
Location: Ohio, USA

Re: VLAN beginner question

Thu Apr 21, 2022 8:33 pm

Use winbox LOL,
Check out ITEM C here. - viewtopic.php?t=182373
@anav

What is the distinction between a hybrid port and a trunk port?
In your Item C example the trunk port still allows untagged vlan 1 (at least I don't see anything preventing it, you didn't specify a pvid, but if you don't specify, it just uses pvid 1), so only distinction I see between ether5 and ether8 in the example is that ether8 has vlan 1 untagged, vlan 11,14,15,16 tagged (and this is called a trunk) whereas ether5 has vlan 10 untagged and vlan 11 tagged (and this is called a hybrid).

Is the only distiction that for MikroTik, if the untagged vlan is not vlan 1, then MiktroTik (only they seem to have this distinction) calls it Hybrid.
HP has a different definition for Hybrid (and it is more like a port using protocol or mac based vlans) where mulitple vlans on the port are untagged, but assumed to be kept separate by the switch on ingrees based on something other than a vlan tag. Here's what I am talking about. HPE Networking Switches - Understanding VLAN port Types

I never understood why MikroTik makes this distinction.

Secondary question. If a pvid other than 1 is specified for the bridge, does that by definition then make the bridge a hybrid? And if this case, can vlan 1 be defined as vlan that is tagged? (not that there would be a good reason to do so, I am just trying to understand this MikroTik naming convention, where most vendor would just call it a trunk, possibly with the provision that the pvid is also stated (in Cisco they would call this the Native vlan on the trunk).
 
User avatar
anav
Forum Guru
Forum Guru
Posts: 19176
Joined: Sun Feb 18, 2018 11:28 pm
Location: Nova Scotia, Canada
Contact:

Re: VLAN beginner question

Thu Apr 21, 2022 8:49 pm

I am interested in the practical and not an indepth discussion of vlan1. It is a native vlan that is in the background that does not carry traffic and is related to the bridge NOT the ports. Consider it invisible wrt to the ports.

A hybrid port will appear like an access port under /interface bridge ports because it is required to tell the router which port will have traffic incoming traffic that will need to be tagged to that vlan, and untagged for return traffic and this is done by setting the PVID

A trunk port does not have a PVID set on the bridge port/wlan under /interface bridge ports.


At least, thats the way I think of it, so I dont hurt my brain.

Who is online

Users browsing this forum: No registered users and 29 guests