VLANs, pt.2: vlan-filtering and management VLAN

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 ก.ค. 2024
  • Part 2 of a series where Druvis will take you deep into the wonderland of MikroTik VLANs. Let's keep learning RouterOS together!
    0:00 Intro
    1:18 bridge interface explained
    3:39 VLAN-filtering configuration
    11:19 management VLAN
    14:27 CRS1xx/CRS2xx configuration
    18:29 CRS1xx/CRS2xx management
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 80

  • @OstJoker
    @OstJoker 11 หลายเดือนก่อน +39

    To say truth, after 10+ years working in IT, this configuration method still blows my head :-)

    • @Aviatorpaal
      @Aviatorpaal 8 หลายเดือนก่อน +5

      I agree. The user friendliness could improve, some explanations would go a long way

    • @gmas
      @gmas 6 หลายเดือนก่อน +1

      it's madness

  • @mirmigois
    @mirmigois 11 หลายเดือนก่อน +15

    I love this video as well as every video you have made. I think it would be even more helpful to see every CLI command you write in an adjacent window at the same time as the result in a GUI. In complex videos like the one with VLANs, we have to do them in the lab and see the result in a GUI to be sure that we understood. You do a great job with the videos and we learn new tricks.

  • @jonpinkley2844
    @jonpinkley2844 11 หลายเดือนก่อน +26

    You should create a topic on the MikroTik forum to cover the VLAN mini-series, and post exports of the sample configurations for reference.
    I also think an additional video where you configure the hAP ac2 with a trunk link to the CRS326 would be useful. Then the hAP ac2 should be configured to do inter-vlan routing, as well as provide dhcp server, internet access and firewall configured on the hAP ac2. Then demonstrate how devices connected to the different vlans can communicate with each other via the hAP ac2. Possibly configure a "guest vlan" that can not establish a connection to a "trusted" vlan, but the trusted vlan can connect to a device on the guest vlan, the return traffic being allowed by an established/related rule in the forwarding chain.
    Then configure a vlan-filtered bridge on the L009 with access ports for each vlan. This should then act as another vlan-aware switch, with a management connection on vlan 99, but no other vlan interfaces.
    Then show that the access ports on the L009 can communicate with the the access ports on the CRS326 and CRS112, and as long as they are in the same vlan, that no (significant) CPU resources are used.
    A bonus would be configuring wifi on the hAP ac2 with different SSIDs, and how the access ports associated with each vlan/SSID can communicate.

  • @crapAllBusy
    @crapAllBusy 11 หลายเดือนก่อน +9

    wow! you have done a great job, thank you! add that "bridge ports = ingress, bridge vlan= egress" to the wiki

  • @cyrilpinto418
    @cyrilpinto418 17 วันที่ผ่านมา

    Clear as mud; moved from a Hex to a Tplink Smart Switch and setup in 5 mins.

  • @zacharysmith2371
    @zacharysmith2371 5 หลายเดือนก่อน

    This is a great overview and tutorial for how VLANs work on RouterOS. I feel like I understand it all much better now. Thanks especially for including the MGMT configuration and demonstrating HW offload + CPU access works with a practical example.

  • @francescocuscito6353
    @francescocuscito6353 11 หลายเดือนก่อน

    I want to clarify that your work is very much appreciated by me

  • @user-lx6ki2nx4l
    @user-lx6ki2nx4l 11 หลายเดือนก่อน +3

    One of the best explanations for begginers that get to see. In my work field we use this exact settings in action in a very poppulared hotel
    Well done saving me hours of explanation from my superior that i couldn't undestand without trainning

  • @cryozap
    @cryozap 11 หลายเดือนก่อน +1

    Nice video, exactly what I have looking for quite some time. I manage a broad variety of devices and always got stock with vlans. Now I do inderstand the, better. Thanks a lot.

  • @HiltonT69
    @HiltonT69 11 หลายเดือนก่อน

    Nice, detailed video. I run similar setups, but this is a very clear description of the CRS configurations.

  • @drumaddict89
    @drumaddict89 11 หลายเดือนก่อน

    thanks for a great video on a topic which bugged me for some years where i could have used that video to save me a lot of mind-lock-ups xD
    i had to figure it out mostly with the old docs and by trail and error :)
    great for beginners and users new to VLANs in ROS!

  • @kresimirpecar4925
    @kresimirpecar4925 11 หลายเดือนก่อน

    Excellent video as always 😊

  • @vhaelanvhaelan8417
    @vhaelanvhaelan8417 7 หลายเดือนก่อน

    Thanks so much for this video, it did clarify a lot or questions I had about VLAN setup in Mikrotik

  • @DickyChengHK
    @DickyChengHK 11 หลายเดือนก่อน

    Thanks for the detail video to let us know different approach vlan setup in Mikrotik device

  • @lisovik
    @lisovik 4 หลายเดือนก่อน

    Thank you! Everything quick and clear.

  • @drunkbear889
    @drunkbear889 11 หลายเดือนก่อน +5

    QinQ or VXLAN or VPLS video IMO

  • @mjsun42
    @mjsun42 11 หลายเดือนก่อน +4

    Thanks for the great video ! would be nice to see how to config a wifiwave2 AP with vlans, i.e Router (CAPsMAN) + Switch + wifiwave2 AP.

  • @javierhorrillo7343
    @javierhorrillo7343 11 หลายเดือนก่อน +2

    Pretty useful, specially for the non bridge vlan filtering method (CRS1xx, CRS2xx with HW), that is most of the times missed in examples.

  • @MrHacross
    @MrHacross 9 หลายเดือนก่อน +1

    Thank you so much! I was struggling to get a hAP ax2 to trunk on an interface and have the two different WiFi interfaces on different VLANs, etc. This video and your showing the configuration as you built it helped me to understand *where* in the GUI (Winbox) I needed to set the VLANs and what options vlan-filtering and ingress-filtering. There are just too many ways to go wrong in the GUI. I think in the future, I'll be using the CLI to manage my hAP.

    • @mikrotik
      @mikrotik  9 หลายเดือนก่อน

      You're welcome! Subscribe for more tips in the future.

  • @giuliano581
    @giuliano581 11 หลายเดือนก่อน +7

    Thanks! Please, can you make a video about vlans , qos and multiple ssid ? It might be useful to separate lan access, iot devices, media devices, etc

    • @katsurokurosaki7230
      @katsurokurosaki7230 11 หลายเดือนก่อน

      I second this, bonus points: With capsman!

  • @nlsqrs1
    @nlsqrs1 11 หลายเดือนก่อน

    Loved this video and it explained more than I could understand from the manuals. For future videos I would love it if you build on this to cover wireless vlan's using Capsman and a management network? It may be a bit long for some.

  • @oliver1121
    @oliver1121 11 หลายเดือนก่อน +4

    QinQ in the next video would be great thanks. If you could explain what happens when a Mikrotik Switch receives a QinQ frame as well that would be great. If I have the L3 QinQ interfaces on a Mikrotik Router and I just want my Mikrotik Switch to receive/forward the QinQ frames to the Router how would you do this (No VLAN stripping or anything like that just a trunk forward).

  • @cgolebio
    @cgolebio 11 หลายเดือนก่อน

    Should the bridge only have 1 trunk or are multiple trunks acceptable?
    Does master and slave port configuration apply anywhere?
    Last video you mentioned STP and RSTP. How is this config safe to use with these protocols or are there other considerations?
    I think going over wireless access points where you have multiple SSIDs which each corresponds to different VLANs plus management VLAN would be great.
    Also how to properly handle mdns between vlans and prevent flooding.

  • @arebacollins
    @arebacollins 3 หลายเดือนก่อน

    This is very useful, after struggling with ROMON in a 700 plus device network. :-(

  • @zekisanli2747
    @zekisanli2747 หลายเดือนก่อน

    Really good examples. Is there a code output of what is described? May I ask?

  • @okoeroo
    @okoeroo 11 หลายเดือนก่อน

    Yes. Very helpful

  • @dhiaahmed5420
    @dhiaahmed5420 11 หลายเดือนก่อน

    Please make a video about the firewall managle marking and how the packets get marked and when the mark is replaced. Thnx

  • @SimonJMudd
    @SimonJMudd 11 หลายเดือนก่อน +1

    Would be good to share final configuration as text so it's easier to copy and adjust for similar setups.

  • @isoplayer
    @isoplayer 11 หลายเดือนก่อน

    can we set a trunk port to allow all vlans , while set other ports in hyprid configuration for example in voip scenarios ?

  • @Anim4000
    @Anim4000 3 หลายเดือนก่อน

    for Internet Tagged VLAN (PPPoE) using this method do improve performance for 2Gbps internet plan?

  • @nick9323
    @nick9323 11 หลายเดือนก่อน +3

    Should rb5009 vlans be configured in the same manner as crs112 ?
    Would be nice to see "tagged vlans over wifi ssid"

    • @vhaelanvhaelan8417
      @vhaelanvhaelan8417 7 หลายเดือนก่อน

      No, the 5009 has a switch chip, so should be configured as the crs3xx series

  • @shaker9756
    @shaker9756 8 หลายเดือนก่อน

    Thank you so much for this detailed video and all the explaination. I have 3 routers behind each other and started a trunk from the first to the last. The devices I have in use are RB5009, CRS328 and hAP ax².
    I tried the complete same settings with all 3 devices to route the trunk and the VLANS through. It all worked with CRS328 and hAP ax². But after hours I am not able to bring also the RB5009 in the row.
    In the video you decribed the topic with different settings for CRS1xx/CRS2xx. Is there something similar with my RB5009 or should it work like you showed in the video until 14:24?

    • @shaker9756
      @shaker9756 8 หลายเดือนก่อน +1

      Ok I fixed it, after I found another very good video. It seems the issue was, that I configured more than one bridge, due to this config was in parallel free ports on my running router, with another network. The information from that video was, that more than 1 bridge is not a good idea, due to the router has only 1 switch chip on it. Since I changed it over my productive bridge, the connection is working.

    • @mikrotik
      @mikrotik  8 หลายเดือนก่อน +1

      When adding multiple bridges it will not be possible to hardware offload all of them, but vlan-filtering should still work in the confines of a single bridge. It is not possible, however, to do inter-bridge vlan-filtering.

  • @ameador01
    @ameador01 11 หลายเดือนก่อน +1

    I like the comments below. I also turn on Subtitles when listening and the commands you are discussing are behind the subtitles. I am somewhat struggling with VLANs in general - besides the multiple ways they are implemented in Mikrotik OSs. I would also love to see diagrams or animations - showing what is happening with the data packets as they are travelling the network, though the ports and bridges to get a better understanding of what tags are seen where. I know this is more complicated to ask but would be very helpful.

    • @RB01-lite
      @RB01-lite 11 หลายเดือนก่อน +7

      You can move the subtitles with your mouse :)

    • @ameador01
      @ameador01 11 หลายเดือนก่อน +3

      @@RB01-lite HA! I never knew that! Thanks!

  • @XtrAMassivE
    @XtrAMassivE 5 หลายเดือนก่อน

    So if you want to make multiple VLANs, with DHCP, etc, you need to also make an interface VLAN for every VLAN? Does every other switch also require a interface VLAN for every VLAN or just he management VLAN?

  • @m-electronics5977
    @m-electronics5977 2 หลายเดือนก่อน

    10:01 but when we add an IP address to the network port itself on the laptop then it should work?

  • @rudypieplenbosch6752
    @rudypieplenbosch6752 7 หลายเดือนก่อน

    I just received the crs510, there is already a bridge configured for management, is this bridge HW offloaded? Or do i need to create a 2nd bridge which is hardware offloaded ? Also, my trunc will be a 100Gbit port, do i need to add vlans to each of the 4 25Gbit ports that make up the 100Gbit connection, or do i only need todo the settings on the first qfsp28-1-1 port ?

    • @mikrotik
      @mikrotik  7 หลายเดือนก่อน +1

      All bridges are offloaded by default when created, but other settings might prevent them from being offloaded. The easiest way to know is to just check the bridge port section - letter H indicates whether a particular port is offloaded or not. When it comes to the 25Gbit ports, you need to configure them just like any other interface.

    • @rudypieplenbosch6752
      @rudypieplenbosch6752 7 หลายเดือนก่อน

      @@mikrotik Thanks for the information, so for a 100Gbit trunk, i need to add the same vlan table to each of the 4 port members.

  • @mochouinard
    @mochouinard 11 หลายเดือนก่อน +2

    Some video graphics error at 3:33 for example.

  • @mannins79
    @mannins79 11 หลายเดือนก่อน +1

    Idea for the next video: Advanced capsman configuration please!

  • @martinskupcis2375
    @martinskupcis2375 4 หลายเดือนก่อน

    CapMan + Vlan {possible vlan configuration from capman?} + quest and internal wifi ?

  • @Rob_Turner_UK
    @Rob_Turner_UK 11 หลายเดือนก่อน

    brave taking this topic on....

  • @m-electronics5977
    @m-electronics5977 2 หลายเดือนก่อน

    15:38 why that is so? Why the software can't do it at the same way like on the bigger switches?

  • @MustaMT
    @MustaMT 11 หลายเดือนก่อน

    Yes all is clear. However work was on L2 only. Third video should discuss L3 and how to isolate on that level please. All possible isolation options not just simple drop rules.

  • @msdelfin
    @msdelfin 11 หลายเดือนก่อน

    Druvis, what linux distribution you are using?

    • @RB01-lite
      @RB01-lite 11 หลายเดือนก่อน

      At work EndeavourOS. At home arch btw

  • @michalpavlikpb
    @michalpavlikpb 11 หลายเดือนก่อน +2

    HI, what OS do you using ? THX for answer

    • @RB01-lite
      @RB01-lite 11 หลายเดือนก่อน +2

      Its EndeavourOS which is basically arch linux + kde plasma

    • @mirmigois
      @mirmigois 11 หลายเดือนก่อน

      @@RB01-lite What you did and 2.5 protocol works on linux and you using mac-address to connect through winbox. I installed winbox along wine on ubuntu but i can not use 2.5 protocol. If there is a trick could you do a video about 2.5 protocol on linux

    • @RB01-lite
      @RB01-lite 11 หลายเดือนก่อน

      @@mirmigois What exactly are you trying to do? And what goes wrong?

    • @mirmigois
      @mirmigois 11 หลายเดือนก่อน

      @@RB01-lite when i use linux and want to connect with winbox to a mikrotik that has IP 0.0.0.0 (reset without any config, default or by user) i can't connect by selecting mikrotik's mac address. I have to switch to windows to login to mikrtotik

    • @RB01-lite
      @RB01-lite 10 หลายเดือนก่อน

      @@mirmigois Did you disable DHCP client and add an IP to the interface in linux?

  • @TheLateral18
    @TheLateral18 9 หลายเดือนก่อน

    is it silly to set up vlans on a home switch , one vlan for a firestick , one vlan for the PC and another one for the ps5

    • @mikrotik
      @mikrotik  9 หลายเดือนก่อน

      Don’t forget IoT 😀 that adds at least 20

  • @azurtem-com
    @azurtem-com 11 หลายเดือนก่อน

    Another clear and well constructed presentation, thanks Druvis.

  • @UPPERKEES
    @UPPERKEES 4 หลายเดือนก่อน

    I don't get why the term bridge is used. Isn't that an outdated network device to just bridge 2 networks?

  • @railwireorbit7401
    @railwireorbit7401 6 หลายเดือนก่อน

    I am amazed only by vlan configuration on linux OS. Can you tell me which OS is this?

    • @mikrotik
      @mikrotik  6 หลายเดือนก่อน +1

      It's an Arch based distro using KDE Plasma desktop environment and NetworkManager. Most Linux distros will use NetworkManager, but might have a different GUI.

    • @railwireorbit7401
      @railwireorbit7401 6 หลายเดือนก่อน

      @@mikrotik Thank You So Much for your response.

  • @m-electronics5977
    @m-electronics5977 2 หลายเดือนก่อน

    8:15 I learned sth. new. You don't have to put the access ports for some VLAN into the bridge VLAN menu as untagged.

  • @raulallue
    @raulallue 11 หลายเดือนก่อน

    Good vídeo, spanish version? 😅😅

  • @andikadioey4680
    @andikadioey4680 11 หลายเดือนก่อน +4

    we need a new thread for this in forum, just for basic one not advanced one, maybe with winbox config step by step, cli command is nigtmare for beginner 😁😁😁

    • @crash939burn
      @crash939burn 11 หลายเดือนก่อน

      vlan is very simple, just match the numbers, vlan numbers and bridge it, the the bridge counts as the actual interface

  • @Aviatorpaal
    @Aviatorpaal 8 หลายเดือนก่อน

    This is too difficult. After 50+ configuration attempts of a hybrid port against a bridge I am lost in the rabbit hole

  • @francescocuscito6353
    @francescocuscito6353 11 หลายเดือนก่อน

    I am strongly, interested, because I just have to configure my LGH LTE18 RouterOs Kit, but your illustration is useless to me, following your illustration (even if it helped me with Google Translation) it is only in English. Although I have made every effort to simulcast your explanation. It was all in vain. Is there an alternative? Thank you.

    • @mikrotik
      @mikrotik  11 หลายเดือนก่อน +1

      It is not feasible to translate illustrations. If you are referring to the one breaking down the ethernet frame, than you can just look that up on wikipedia. Other then that, the one showing CPU and Switch chip was just used to explain how a bridge interface with hardware offloading (HW=yes) will move processing from CPU to the Swtich chip, so if you need a management interface you have to ensure CPU can communicate through the Switch chip.

  • @dimitris470
    @dimitris470 11 หลายเดือนก่อน +3

    Nice video series, but it's too dense, even if incomplete. First of all, all those options are not suitable for every device. You need to check the support pages for VLAN switching to see what's best for your device and its hardware. Also configuring the bridges differently than your physical chips can lead to weird routing and bottlenecks. In my opinion the videos should have been structured differently. Something like, first video should talk about Vlans in general. Without mentioning anything about hardware technicalities or mikrotik specifics. Second should be a general presentation of how routeros and winbox abstract the various vlan details into the various entities like bridges, interfaces etc. And then, it should be separate videos about each router generation, device type (like APs) or even specific models that requires special attention to optimize things like hardware offloading.

  • @jtmuzix
    @jtmuzix 10 หลายเดือนก่อน

    You are an amazing teacher! Please create more highly technical videos. Why not tackle hardware off-loading and utilizing the best of a switch and a router. Each with different types of supported hardware off-loading. :) I write that because I have a crs326-24g switch and a ccr2004 passive cooled router. I find that you can use the switch as a router and vice versa but the switch has l3-hw-offloading where the router does not and I do not understand the hardware offloading the router does exactly.

    • @mikrotik
      @mikrotik  10 หลายเดือนก่อน

      It all depends on the switch chip, some info can be found in the following links:
      help.mikrotik.com/docs/display/ROS/Switch+Chip+Features#SwitchChipFeatures-Introduction
      help.mikrotik.com/docs/display/ROS/Bridging+and+Switching#BridgingandSwitching-BridgeHardwareOffloading