Community discussions

MikroTik App
 
Johonny
just joined
Topic Author
Posts: 2
Joined: Sat Dec 16, 2023 2:23 pm

How to add a VLAN tag on the WAN egress, RB260GS

Sat Dec 16, 2023 4:22 pm

Hi peoples,
So since my ISP requires now VLAN tagging (ID 10), I want to configure the switch RB260GS (which will sit behind the ISP modem and before the firewalls). The goal is, that on the wan port (port1) it accepts traffic with vlan ID 10 and adds the tag for egress. Port 2&3 (firewalls) should untag the traffic.
My test setup is a laptop configured with vlan id 10 connected to wan port and another laptop connected to port2.
With my current configuration, I can ping the untagged laptop with my tagged laptop, but not the other way around.
What do I need to change, so both laptops see each other?
You do not have the required permissions to view the files attached to this post.
 
User avatar
mkx
Forum Guru
Forum Guru
Posts: 11647
Joined: Thu Mar 03, 2016 10:23 pm

Re: How to add a VLAN tag on the WAN egress, RB260GS

Sat Dec 16, 2023 9:29 pm

I think that in VLANs tab it needs to be the other way around: WAN needs to be "leave as is" because ISP expects VLAN tags. And firewallX needs "add if missing" because it'll deal with untagged frames.

Similarly in VLAN tab: for WAN set VLAN header to "leave as is", firewallX needs "always strip". And set VLAN mode to "enabled" for firewallX.
After you get things running, you'll want to setn"VLAN receive" on WAN port to "only tagged" (whatever exact wording) and on firewallX to "only untagged and priority tagged". And I guess you don't need "force VLAN ID" enabled (but I'm not sure about this).

The reasoning: inside switch, all frames are tagged (or at least you can think this way). And then it's logical that all the settings are about frame headers on the outer side of switch port (on the cable).
 
User avatar
k6ccc
Forum Guru
Forum Guru
Posts: 1500
Joined: Fri May 13, 2016 12:01 am
Location: Glendora, CA, USA (near Los Angeles)
Contact:

Re: How to add a VLAN tag on the WAN egress, RB260GS

Sun Dec 17, 2023 8:27 pm

Agree with mkx.
Here are the VLAN and VLANs tabs for one of my CSS106-5G-1S (RB260GS) switches. Note that I do not use Optional, but rather "Strict" on the VLAN mode and "Only tagged" or "Only Untagged" on the VLAN Receive mode - UNLESS it is a Hybrid port (as the two Open Mesh WiFi Access Points ports are). In my case, the SFP (Trunk to F.R.) is the VLAN tagged port.

Image


Image

Hope this helps.
 
Johonny
just joined
Topic Author
Posts: 2
Joined: Sat Dec 16, 2023 2:23 pm

Re: How to add a VLAN tag on the WAN egress, RB260GS

Mon Dec 18, 2023 1:34 am

Thanks for the replies.
I'm not sure I explained correctly. I guess my ISP now sends and wants to receive tagged traffic. Which in turn means I have to add a tag to all frames that leave port "WAN" (which in my mind means "Egress" = "add if missing") and since he sends me tagged frames and I don't want any vlan tags coming to my firewalls I put the Egress of "Firewall" to "always strip". With this config I could only ping the other laptop when I set the laptops vlan id to 10, which I think is almost successful? But I couldn't ping from my untagged laptop to my tagged one.
Sorry for my noob problems, it's my first mikrotik switch.
 
User avatar
k6ccc
Forum Guru
Forum Guru
Posts: 1500
Joined: Fri May 13, 2016 12:01 am
Location: Glendora, CA, USA (near Los Angeles)
Contact:

Re: How to add a VLAN tag on the WAN egress, RB260GS

Mon Dec 18, 2023 2:54 am

Make sure that the laptop that can't be pinged has it's Windows Firewall set to allow ICMP traffic. Default is to not allow ICMP traffic.

Who is online

Users browsing this forum: ihexley and 4 guests