E
E
elisey4742017-08-23 21:49:11
Mikrotik
elisey474, 2017-08-23 21:49:11

Is the vlan-header parameter ignored by mikrotik?

Here https://wiki.mikrotik.com/wiki/Manual:Switch_Chip_... I quote
: In Gigabit switch chips when "vlan-mode=secure", it ignores switch port "vlan-header" options. VLAN table entries handle all the egress tagging/untagging and works as "vlan-header=leave-as-is" on all ports.
Does this mean that vlan-header does not play a role at all, or is it not necessary to set it in gigabit switches?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Zhurkin, 2017-10-24
@icCE

vlan-mode=secure in order to enforce a strict match to the contents of the VLAN table

disabled - ignore the vlan table, process packets containing vlan tags in the same way as if they did not contain vlan tags;
fallback - default mode - process packets containing vlan tags not represented in the vlan table in the same way as if they did not contain vlan tags. Packets containing vlan tags present in the vlan table, but the incoming port does not match any port in the vlan table entries, will not be dropped.
check - drop packets containing vlan tags not present in the vlan table. Packets containing vlan tags present in the vlan table, but the incoming port does not match any port in the vlan table entries, will not be dropped.
secure - drop packets containing vlan tags not present in the vlan table. Packets containing vlan tags present in the vlan table, but the incoming port does not match any port in the vlan table entries, will also be dropped.
When forwarding packets based on the identifier in the vlan tag, MAC addresses added to the MAC address table during training or manually are also taken into account.
Packets that do not contain vlan tags are processed in the same way as if they contained a vlan tag with vlan id = 0. This means that if the "vlan-mode" parameter is set to "check" or "secure", then in order to , in order to be able to forward packets without vlan tags, you will need to add a separate entry to the vlan table,
The vlan-header option (configurable via the /interface ethernet switch port menu) sets the VLAN tag mode on the outgoing port. This option functions only on the Atheros 8316 chip and can take the following values:
leave-as-is - the packet is not subject to changes on the outgoing port;
always-strip - if a VLAN header is present, it will be stripped from the packet;
add-if-missing - if the VLAN header is missing, it will be added to the packet.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question