# 802.1Q-Tag-Decoder und Trunk-VLAN-Rechner

> Dekodieren Sie ein 802.1Q-Tag oder den Anfang eines Frames: TPID, PCP mit seiner Verkehrsart, DEI und VID mit dargestellten Bits, gestapelte 802.1ad-Tags und den folgenden EtherType, benannt nach der Liste der IANA. Oder fügen Sie die Trunk-Zeilen beider Enden ein, in der Syntax von Cisco IOS XE, Junos, AOS-CX, RouterOS, Switch Engine, Fabric Engine, Arista EOS oder Huawei VRP, und sehen Sie, welche VLANs den Trunk passieren, welche ein Ende verwirft und wo die nativen VLANs nicht übereinstimmen.

- Tool: https://ronutz.com/de/tools/vlan-tag-and-trunk-calculator
- Family: Netzwerk

---

## Was das Tool tut

Ein VLAN (Virtual Local Area Network) hält seine Frames von denen jedes anderen VLANs getrennt, und auf einem Link, der mehrere VLANs überträgt, gibt jeder Frame mit einem vier Oktette langen Tag nach IEEE 802.1Q an, zu welchem VLAN er gehört. Das Tool beantwortet die beiden Fragen, die am häufigsten aufkommen, wenn sich ein Trunk nicht wie erwartet verhält, in zwei Modi:

- **802.1Q-Tag.** Fügen Sie die Oktette eines Tags oder des Anfangs eines Frames (Ziel-MAC, Quell-MAC, dann die Tags) hexadezimal ein. Die Seite zeigt für jedes Tag TPID, PCP, DEI und VID mit seinen 32 Bit, Oktett für Oktett dargestellt, die Verkehrsart des PCP und wie er unter den vier PCP-Auswahlen dekodiert wird, gestapelte Tags (Q-in-Q, 802.1ad) und was folgt: einen EtherType, eine Länge oder keines von beiden, benannt nach der Liste der IANA.
- **Trunk-VLANs.** Fügen Sie die Zeilen des Trunk-Ports beider Enden eines Links ein, jedes in der Syntax seines eigenen Herstellers: Cisco IOS XE, Juniper Junos, HPE Aruba AOS-CX, MikroTik RouterOS, Extreme Switch Engine, Extreme Fabric Engine, Arista EOS oder Huawei VRP, die acht Hersteller des Switch-Kurses. Die Seite zeigt, was jedes Ende überträgt, was es getaggt und ungetaggt sendet und, VLAN für VLAN und in beide Richtungen, ob ein Frame im selben VLAN ankommt, in einem anderen landet, verworfen wird oder von einem Verhalten abhängt, das die gelesenen Herstellerseiten nicht nennen.

Alles wird in Ihrem Browser berechnet.

## Das Tag: was das Tool liest

Das Tag-Format steht in Abschnitt 9 von [IEEE P802.1ad/D2.4](https://www.ieee802.org/1/files/public/docs2004/802-1-ad-D2-4.pdf), dem öffentlichen Entwurf von IEEE 802.1 aus dem Jahr 2004, der den Text von 802.1Q in der geänderten Fassung enthält. Es ist ein nicht genehmigter Entwurf, und die aktuelle Ausgabe, 802.1Q-2022, ist bei der [IEEE Standards Association](https://standards.ieee.org/ieee/802.1Q/10323/) „Active Standard“, aber nicht öffentlich; das Tool liest den Entwurf für den Aufbau und die Tabellen, die 802.1Q beibehalten hat, und daneben das aktuelle [YANG-Typenmodul](https://raw.githubusercontent.com/YangModels/yang/main/standard/ieee/published/802.1/ieee802-dot1q-types.yang) der IEEE (Revision 2023-10-26).

- **TPID**, zwei Oktette: 0x8100 ist das C-TAG, „An 802.1Q Customer VLAN, using the 81-00 EtherType“, und 0x88A8 das S-TAG, „An 802.1Q Service VLAN, using the 88-A8 EtherType originally introduced in 802.1ad, and incorporated into 802.1Q (2011)“ (YANG-Typen). 0x9100 wird ebenfalls als Tag gelesen, nur weil die [Seite von Juniper zu Bridging und VLANs](https://www.juniper.net/documentation/us/en/software/junos/multicast-l2/topics/topic-map/bridging-and-vlans.html) festhält: „Junos OS switches support the TPID value 0x9100 for Q-in-Q“; es ist kein Tag-Typ von 802.1Q, die Liste der IANA nennt es nicht, und die Seite sagt, dass sie die TCI dahinter allein auf das Wort dieser Juniper-Seite hin im Aufbau von 802.1Q liest. Kein anderer Wert wird als Tag gelesen.
- **TCI**, zwei Oktette: der PCP in den ersten drei Bits, dann ein Bit, dann die 12-Bit-VID (P802.1ad/D2.4, Abbildung 9-1). Der PCP sitzt im ersten Oktett, daher wird jedes Feld aus zwei Oktetten mit dem ersten Oktett als höherwertigem gelesen: die Big-Endian-Reihenfolge, die Network Byte Order, die [Big-Endian und Little-Endian: die Byte-Reihenfolge erklärt](https://ronutz.com/de/learn/big-endian-and-little-endian) erklärt.
- **PCP**, 0 bis 7. Mit der Standardauswahl 8P0D ist PCP *n* die Priorität *n*; ein Port, der auf 7P1D, 6P2D oder 5P3D eingestellt ist, liest manche Werte als andere Priorität oder als verwerfbar (Tabelle 6-5), und die Seite zeigt alle vier. Die Verkehrsart ist die, die Tabelle G-2 für die Priorität angibt: 1 Background (BK), 0 Best Effort (BE), 2 Excellent Effort (EE), 3 Critical Applications (CA), 4 Video (VI), 5 Voice (VO), 6 Internetwork Control (IC), 7 Network Control (NC). Background steht absichtlich bei 1: „the value 1 effectively communicates a lower priority than 0“ (Anhang G.4). Der [QoS-Leitfaden für AOS-CX](https://arubanetworking.hpe.com/techdocs/AOS-CX/10.14/HTML/qos_4100i-6000-6100/Content/Chp_Overview/end-to-end-qos-beh.htm) von HPE Aruba nennt heute dieselben acht.
- **DEI**, ein Bit. Das aktuelle [Bridge-Modell](https://raw.githubusercontent.com/YangModels/yang/main/standard/ieee/published/802.1/ieee802-dot1q-bridge.yang) der IEEE nennt es Drop Eligible Indicator: Mit use-dei True markiert ein Port den Frame als verwerfbar; andernfalls gilt „the DEI shall be transmitted as zero and ignored on receipt“. Im C-TAG von 2004 war dasselbe Bit der CFI, der Canonical Format Indicator (Abschnitt 9.6); im S-TAG war es immer DE (Abschnitt 9.7).
- **VID**, 0 bis 4095. Tabelle 9-2 gibt drei Werten eine Bedeutung: 0 ist „The null VLAN ID“, ein Tag, das „contains only priority information“; 1 ist „The default PVID value used for classifying frames on ingress“; FFF (4095) ist „Reserved for implementation use“ und darf nicht „transmitted in a tag header“ werden. Der YANG-Bereich vlanid reicht von 1 bis 4094, und auch Juniper reserviert 0 und 4095 („VLAN ID 0 is reserved for tagging the priority of frames“, [802.1Q VLAN IDs](https://www.juniper.net/documentation/us/en/software/junos/multicast-l2/topics/concept/ethernet-802-1q-vlan-id-by-interface-type.html)). Ein Frame mit Priority-Tag landet in der PVID des empfangenden Ports, „the VLAN-ID assigned to untagged frames or Priority-tagged frames received on this port“ ([IEEE8021-Q-BRIDGE-MIB](https://www.ieee802.org/1/files/public/MIBs/IEEE8021-Q-BRIDGE-MIB-202211080000Z.mib)).

**Gestapelte Tags.** Tags wiederholen sich bis zu einem Typ, der kein TPID ist (höchstens acht). Provider Bridging setzt das S-TAG nach außen und das C-TAG des Kunden nach innen („the MSDU of the associated frame can contain a Customer VLAN tag“, Abschnitt 9.7); daher warnt die Seite vor einem S-TAG innerhalb eines C-TAG und vor zwei C-TAGs hintereinander, was kein Stapeln nach 802.1ad ist und zugleich die Form des Double-Tagging-Falls, den der [Artikel zu VLANs](https://ronutz.com/de/learn/vlans-and-8021q-trunking) beschreibt.

**Nach den Tags.** [RFC 9542](https://www.rfc-editor.org/rfc/rfc9542.txt) (BCP 141, löst RFC 7042 ab), Abschnitt 3: EtherTypes „are equal to or larger than 0x0600“, eine Länge „must ... be less than 0x5DD, or it could be mistaken as an EtherType“, und „the LLC encapsulation EtherType 0x8870“ kann an die Stelle einer Länge treten. Daher wird 0x0000 bis 0x05DC als Länge gelesen (ein Frame nach IEEE 802.3, gefolgt von LLC), 0x05DD bis 0x05FF als keines von beiden und der Rest als EtherType, benannt so, wie die [Liste der IANA](https://www.iana.org/assignments/ieee-802-numbers/ieee-802-numbers.xml) ihn beschreibt (zuletzt aktualisiert am 03.11.2024; wo sich zwei Zeilen überlappen, gewinnt die engste). Die IANA vermerkt, dass die Liste „is contributed unverified information“ und dass die IEEE Registration Authority die öffentliche Liste führt; ein Wert, den die IANA nicht aufführt, wird als nicht aufgeführt angezeigt, nie geraten.

**Adressen.** Beginnen die Oktette bei einer Ziel-MAC, zeigt die Seite beide Adressen mit dem M-Bit von RFC 9542 („If it is a one, the address is groupcast (multicast or broadcast)“) und dem X-Bit (lokal), Abschnitt 2.1.1, markiert die Dokumentationsadressen von RFC 9542 (00-00-5E-00-53-00 bis -FF, 01-00-5E-90-10-00 bis -FF, Abschnitt 2.1.4) und warnt, wenn bei einer Quelladresse das M-Bit gesetzt ist.

**Wo die Oktette beginnen.** „Automatisch“ liest Oktette, die mit 0x8100, 0x88A8 oder 0x9100 beginnen, als Tag und alles andere ab 14 Oktetten als Anfang eines Frames und sagt, wofür es sich entschieden hat; die beiden anderen Auswahlen erzwingen das eine oder das andere (eine Ziel-MAC kann mit 81-00 beginnen).

## Trunks: was die Zeilen jedes Herstellers bedeuten

Fügen Sie die Zeilen des Trunk-Ports so ein, wie der Switch sie anzeigt; Zeilen, die nicht die VLANs des Trunks betreffen, werden als nicht gelesen aufgeführt. Eine bloße Liste wie `10,20,30-40` funktioniert ebenfalls. Die Regeln jedes Herstellers stammen aus dessen eigener Dokumentation, gelesen am 8. November 2026:

- **Cisco IOS XE** (Catalyst 9300; [VLAN-Trunks, 17.18](https://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst9300/software/release/17-18/configuration_guide/vlan/b_1718_vlan_9300_cg/configuring_vlan_trunks.html) und die [Befehlsreferenz 17.18](https://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst9300/software/release/17-18/command_reference/b_1718_9300_cr/vlan_commands.html), im Browser gelesen, weil die Website von Cisco automatisierte Abrufe verweigert; die [Befehlsreferenz 17.17](https://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst9300/software/release/17-17/command_reference/b_1717_9300_cr/vlan_commands.html), über WebFetch abgerufen). `switchport trunk allowed vlan` nimmt „all | none | [add | remove | except]vlan-atom [,vlan-atom...]“ an; all „specifies all VLANs from 1 to 4094. This is the default“; „Do not enter any spaces between comma-separated VLAN parameters or in hyphen-specified ranges“; die no-Form „resets the list to the default list“. `switchport trunk native vlan` setzt das native VLAN „for sending and receiving untagged traffic“, „VLAN 1 is the default native VLAN ID on the port“, und „If a packet has a VLAN ID that is the same as the sending-port native VLAN ID, the packet is sent without a tag“; die Liste der erlaubten VLANs umfasst die VLANs, die „receive and send traffic on this interface in tagged format“. Die VLANs 1002 bis 1005 sind „reserved for Token Ring and FDDI VLANs“, und das Gerät „does not forward FDDI, FDDI-Net, TrCRF, or TrBRF traffic“ ([VLANs, 17.18](https://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst9300/software/release/17-18/configuration_guide/vlan/b_1718_vlan_9300_cg/configuring_vlans.html)); die Seite vermerkt sie, wenn die Liste sie enthält.
- **Juniper Junos mit ELS** ([Bridging und VLANs](https://www.juniper.net/documentation/us/en/software/junos/multicast-l2/topics/topic-map/bridging-and-vlans.html); [Ethernet Switching User Guide](https://www.juniper.net/documentation/us/en/software/junos/multicast-l2/multicast-l2.pdf), 23. September 2026). `vlan members` nimmt ein VLAN oder mehrere zwischen `[` und `]` an, per ID, per Bereich (`members 120-130`) oder per Name; aufeinanderfolgende `set`-Zeilen ergänzen die Mitglieder (das eigene Beispiel des Leitfadens endet mit `members [ 1 sales support ]`), und Namen werden über die mit eingefügten Zeilen `set vlans NAME vlan-id N` aufgelöst. `native-vlan-id` setzt das native VLAN. Ein Trunk ohne natives VLAN „recognizes untagged control packets, but it does not recognize untagged data packets“, und die logische Schnittstelle „must be configured with the same VLAN ID as the native VLAN ID“; ein natives VLAN, das kein Mitglied ist, empfängt also nichts ungetaggt. `members all` wird abgelehnt: Die gelesenen Seiten lassen offen, für welche VLANs es unter ELS steht.
- **HPE Aruba AOS-CX** (Layer 2 Bridging Guide 10.16: [vlan trunk allowed](https://arubanetworking.hpe.com/techdocs/AOS-CX/10.16/HTML/l2_bridging_6300-6400/Content/Chp_vlans/vlan_cmds/vla-tru-all.htm), über WebFetch und im Browser abgerufen, [vlan trunk native](https://arubanetworking.hpe.com/techdocs/AOS-CX/10.16/HTML/l2_bridging_6300-6400/Content/Chp_vlans/vlan_cmds/vla-tru-nat.htm) und [vlan trunk native tag](https://arubanetworking.hpe.com/techdocs/AOS-CX/10.16/HTML/l2_bridging_6300-6400/Content/Chp_vlans/vlan_cmds/vla-tru-nat-tag.htm), im Browser abgerufen, weil die Website automatisierte Abrufe verweigert; die zuvor für die beiden Seiten zum nativen VLAN zitierten Adressen der Befehlsreferenz antworten jetzt mit 404 Not Found). Die Liste ist „a single ID, or a series of IDs separated by commas (2, 3, 4), dashes (2-4), or both (2-4,6)“; all ist „all the VLANs currently configured on the switch and any new VLANs that are configured in the future“, was das Tool als 1 bis 4094 zählt und auch so sagt. „By default, VLAN ID 1 is assigned as the native VLAN ID“, und das Setzen eines nativen VLANs lässt den Switch `vlan trunk allowed all` ausführen, daher gilt danach: „To only allow specific VLANs on the trunk, issue the vlan trunk allowed command specifying only specific VLANs“. Eine Liste nach all ersetzt es; eine Liste nach einer Liste ergänzt diese („Multiple VLAN IDs can be assigned“), so liest das Tool die beiden Seiten. `no vlan trunk allowed` entfernt VLANs, und wenn das letzte entfernt ist, gilt für den Trunk: „will trunk all the VLANs currently defined on the switch“. Mit `vlan trunk native ... tag` gilt: „Incoming packets that are untagged are dropped except for BPDUs“ und „Egress packets are tagged“. Ein natives VLAN, das in der Liste der erlaubten VLANs fehlt, wird nicht übertragen: Das eigene Beispiel der Seite zum nativen VLAN lautet „Assigning native VLAN ID 20 to trunk interface 1/1/2 and then removing it from the list of allowed VLANs. (Only allow VLAN 10 on the trunk.)“
- **MikroTik RouterOS** ([Handbuch 7.24, Bridge VLAN Filtering](https://manual.mikrotik.com/docs/7.24/bridging-and-switching/)). Das `vlan-ids` jedes Bridge-VLAN-Eintrags („vlan-ids=100-115,120,122,128-130“) mit `tagged=` oder `untagged=` macht den Port zu einem getaggten oder ungetaggten Mitglied; `pvid` (Standard 1) „specifies which VLAN the untagged ingress traffic is assigned to“; mit frame-types auf dem Standardwert admit-all wird der Port für seine PVID „automatically added as untagged“; `frame-types=admit-only-vlan-tagged` am Port lässt nur getaggte Frames zu. Das Tool liest jeden eingefügten Eintrag als einen, der den Trunk-Port aufführt, und warnt, wenn der Port in mehreren VLANs ungetaggt ist, wovor RouterOS warnt.
- **Extreme Switch Engine** ([Befehlsreferenzen 33.7.1](https://documentation.extremenetworks.com/Switch%20Engine%20v33.7.1%20Command%20References/downloads/Switch_Engine_33_7_1_Command_References.pdf)). `configure vlan NAME|ID add ports ... tagged|untagged` („Default: Untagged.“), `delete ports` und Namen aus `create vlan NAME tag N` (Tags 2 bis 4094: „tag 1 is assigned to the default VLAN, and tag 4095 is assigned to the management VLAN“). Das Default-VLAN „initially contains all ports“ und „is untagged on all ports“. „Untagged ports can only be a member of a single VLAN“, und mit `configure vlan untagged-ports auto-move` auf dem Standardwert inform verschiebt ein ungetaggtes Hinzufügen den Port mit einer Meldung aus seinem bisherigen ungetaggten VLAN; bei ausgeschaltetem auto-move lehnt das Tool die Zeile ab, wie es der Switch täte.
- **Extreme Fabric Engine** ([Benutzerhandbuch 9.4](https://documentation.extremenetworks.com/Fabric%20Engine%20v9.4%20User%20Guide/fe_9.4_ug_revacdev/content/documents/Switch_Operating_Systems/VOSS_and_Fabric_Engine/fabric_engine_user_guide/adding_or_removing_ports_in_a_vlan.shtml), [Befehlsreferenzen 9.4](https://documentation.extremenetworks.com/Fabric%20Engine%20v9.4%20Command%20References/downloads/Fabric_Engine_9_4_Command_References.pdf)). `vlan members add|remove` nimmt eine VLAN-ID von 1 bis 4059 an: „the system reserves VLAN IDs 4060 to 4094 for internal use“, mit den Boot-Flags vrf-scaling und spbm-config-mode auch 3500 bis 3998. `default-vlan-id` und `untag-port-default-vlan` („Untags the default VLAN for the port“, standardmäßig deaktiviert) bilden das native VLAN.

- **Arista EOS** ([EOS 4.37.0F User Manual, Virtual LANs](https://www.arista.com/en/um-eos/eos-virtual-lans-vlans), im Browser gelesen, weil die Website automatisierte Abrufe verweigert). Im Trunk-Modus gilt: „The interface may be a member of multiple VLANs, as configured by the switchport trunk allowed vlan command“ und „Untagged traffic is associated with the interface's native VLAN“; der Standardmodus ist Access, und das Tool liest die eingefügten Zeilen als die eines Trunk-Ports und sagt, wenn `switchport mode trunk` fehlt. `switchport trunk allowed vlan` nimmt eine Liste an („Valid v_range formats include number, range, or comma-delimited list of numbers and ranges“), `add`, `remove`, `except`, `all` oder `none`; „By default, interfaces handle tagged traffic for all VLANs“, und die Formen no und default stellen all wieder her. `switchport trunk native vlan` nimmt ein VLAN an („The default native VLAN for all interfaces is VLAN 1“), dessen Frames ungetaggt hinausgehen, es sei denn, Egress Priority Tagging sendet „priority tagged Ethernet frames in place of untagged frames“; seine Formen no und default „restore vlan 1 as the trunk mode native VLAN“. Mit `tag` gilt: „interface drops all untagged frames“; die Handbuchseite lässt offen, ob die eigenen Frames des nativen VLANs dann getaggt hinausgehen, daher wird ein natives VLAN, das in der Liste der erlaubten VLANs steht, in dieser Richtung als nicht bestätigt markiert. Ein natives VLAN, das in der Liste der erlaubten VLANs fehlt, wird als nicht übertragen gelesen, und die Seite sagt, worauf das beruht: auf keinem Satz des Handbuchs, sondern auf dem eigenen Beispiel von Arista, dessen Liste der erlaubten VLANs 6-10 die Ausgabe „Trunking Native Mode VLAN: 1 (inactive)“ zeigt, wo andere Beispiele „1 (default)“ ausgeben.
- **Huawei VRP** (S5700 und S6700 V200R025C00: die [Befehlsreferenz, VLAN Configuration Commands](https://support.huawei.com/enterprise/en/doc/EDOC1100514211/834147df/vlan-configuration-commands) und der [Konfigurationsleitfaden Ethernet Switching, Adding and Removing VLAN Tags](https://support.huawei.com/enterprise/en/doc/EDOC1100514531/f9b8a34a/adding-and-removing-vlan-tags), beide im Browser gelesen, weil die Website automatisierte Abrufe verweigert). `port link-type trunk` macht den Port zum Trunk (Standard ist negotiation-desirable, auf dem S5736-S negotiation-auto). `port trunk allow-pass vlan` nimmt durch Leerzeichen getrennte VLAN-IDs an, `to` für einen Bereich, höchstens zehn Einträge pro Befehl, oder `all` („Adds a trunk interface to all VLANs“); „If you run the port trunk allow-pass vlan command multiple times in the same interface view, the interface is added to all the specified VLANs“, und die undo-Form entfernt sie. „By default, a trunk interface is in VLAN 1.“ `port trunk pvid vlan` setzt das Standard-VLAN (Standard 1; eine spätere Zeile ersetzt es, und die undo-Form „restores the default VLAN of a trunk interface to the default setting“), aber dieser Befehl „does not add the trunk interface to the default VLAN“: „A trunk interface forwards frames with the default VLAN ID only after it is added to the default VLAN using the port trunk allow-pass vlan command“. Tabelle 4-2 des Leitfadens liefert den Rest: Ein ungetaggter Frame erhält die ID des Standard-VLANs und wird übertragen, wenn dieses VLAN zugelassen ist, und verworfen, wenn es nicht zugelassen ist; ein getaggter Frame wird nur angenommen, wenn sein VLAN zugelassen ist; beim Senden gehen die Frames des Standard-VLANs ungetaggt hinaus und die der anderen zugelassenen VLANs getaggt. „If a specified VLAN does not exist, the configuration does not take effect“: Das Tool kann nicht sehen, welche VLANs auf einem Switch existieren, daher zählt es jedes VLAN, das die Zeilen nennen, und sagt das. `port trunk allow-pass only-vlan` wird mit Begründung abgelehnt: Der Befehl „configures VLANs allowed by the interface that is configured as a trunk interface through LNP negotiation“, nach `port link-type negotiation`, und das Tool liest statische Trunks.

## Trunks: wie die beiden Enden verglichen werden

Für jedes VLAN von 1 bis 4094 und jede Richtung sendet das sendende Ende das VLAN ungetaggt, wenn es das native (ungetaggte) VLAN dieses Endes ist, getaggt, wenn es in der Liste des Endes steht, und sonst gar nicht. Ein getaggter Frame landet in dem VLAN, das sein Tag nennt, wenn das empfangende Ende dieses VLAN überträgt, und wird verworfen, wenn nicht. Ein ungetaggter Frame landet im nativen VLAN des empfangenden Endes, seiner PVID (die Definition aus der MIB der IEEE oben): im selben VLAN, wenn die beiden nativen VLANs übereinstimmen, in einem anderen, wenn nicht, und nirgends an einem Ende, das ungetaggte Datenframes verwirft (Junos ohne natives VLAN, AOS-CX mit getaggtem nativem VLAN, Arista mit `native vlan tag`, RouterOS, das nur getaggte Frames zulässt), oder dessen natives VLAN nicht übertragen wird (siehe unten).

Das Ergebnis listet die VLANs auf, die in beide Richtungen im selben VLAN ankommen, die nur von A nach B oder nur von B nach A gehen, die in einem anderen VLAN landen und die nicht bestätigt sind, dann eine Tabelle mit Bereichen von VLANs mit demselben Verbleib und die Auswertung jedes Endes Zeile für Zeile.

**Abweichendes natives VLAN.** Legen die beiden Enden ungetaggte Frames in verschiedene VLANs, sagt die Seite das mit der Warnung von Cisco: Weicht das native VLAN an einem Ende vom anderen ab, „spanning-tree loops might result“; „Make sure the native VLAN for an IEEE 802.1Q trunk is the same on both ends“.

**Ein natives VLAN, das in der Liste der erlaubten VLANs fehlt.** Das ist die klassische Falle, und die gelesenen Hersteller sagen nicht alle dasselbe. Unter AOS-CX wird es nicht übertragen (das Beispiel der Seite zum nativen VLAN oben); unter Arista EOS liest das Tool es anhand der Beispielausgabe von Arista als nicht übertragen; unter Huawei VRP werden die Frames des Standard-VLANs „only after it is added to the default VLAN“ weitergeleitet; unter Junos gilt für die Schnittstelle: „must be configured with the same VLAN ID as the native VLAN ID“. An diesen Enden geht nichts ungetaggt hinüber, und die Seite sagt das ganz oben wie auch in der Auswertung des Endes.

**Nicht bestätigt, nie geraten.** Unter Cisco IOS XE und Fabric Engine lassen die gelesenen Seiten offen, ob ein solches natives VLAN übertragen wird: Die Befehlsreferenz 17.18 und der VLAN-Leitfaden von Cisco halten in jedem Satz zum nativen VLAN nur fest, dass die Liste der erlaubten VLANs für Datenverkehr „in tagged format“ gilt und das native VLAN „for sending and receiving untagged traffic“. Die Seite markiert dieses VLAN als nicht bestätigt, sagt, warum, und schlägt vor, es in die Liste aufzunehmen. Dasselbe gilt für ungetaggte Ankünfte an einem Port von Switch Engine, der in keinem VLAN ungetaggt ist, an einem Port von Fabric Engine mit ausgeschaltetem untag-port-default-vlan und für die Art, wie ein erlaubtes natives VLAN einen Arista-Port mit `native vlan tag` verlässt. Die Bewertung ist nur grün, wenn jedes gesendete VLAN in beide Richtungen in seinem eigenen VLAN hinübergeht und es keine Warnung gibt.

## Was das Tool ablehnt, und warum

- **Modus „802.1Q-Tag“**: Text, der nicht hexadezimal ist, eine ungerade Anzahl von Ziffern, mehr als 128 Oktette oder 4.000 Zeichen, mehr als acht Tags, ein abgeschnittenes Tag, der Anfang eines Frames mit weniger als 14 Oktetten, Oktette, für die ein Beginn bei einem TPID erzwungen wird, der keiner ist, und ein unbekannter Beginn.
- **Modus „Trunk-VLANs“**: VLAN 0 („The null VLAN ID ... shall not be configured“) und 4095 (reserviert, Tabelle 9-2), IDs über 4094 oder mit führenden Nullen, rückwärts geschriebene Bereiche, leere Listeneinträge, Leerzeichen in einer Liste von Cisco oder AOS-CX, IDs von Fabric Engine ab 4060 und Listen in dessen Befehlen für ein einzelnes VLAN, `default-vlan-id 0` (der Bereich erlaubt es, aber die Referenz lässt offen, was es bedeutet), Optionen von Fabric Engine, die die Seiten nicht beschreiben, nicht aufgelöste VLAN-Namen, ein VLAN von Switch Engine, das ohne Tag angelegt, aber getaggt hinzugefügt wird, Tags außerhalb von 2 bis 4094, ein VLAN von RouterOS, das am Port zugleich getaggt und ungetaggt ist, ein Port von Arista oder Huawei, der kein Trunk ist (`switchport mode access`, `port link-type hybrid` und Ähnliches), eine Liste von Arista mit Leerzeichen, eine Liste von Huawei mit Kommas oder Bindestrichen, mit mehr als zehn Einträgen oder einem `to` ohne zweites VLAN, `port trunk allow-pass only-vlan` von Huawei (ein Befehl für per LNP ausgehandelte Trunks), ein Ende ohne Trunk-Zeile, ein Ende mit mehr als 64 Zeilen, 256 Zeichen pro Zeile oder 4.000 Zeichen und ein unbekannter Hersteller.

## Durchgerechnete Beispiele

Die Beispiele sind das VLAN-Lab aus Kapitel 2.3 des offenen Kurses [Betrieb und Wartung von LAN-Switches](https://ronutz.com/de/materials/lan-switch-operations-and-maintenance), sein Block B12 (MODERN CLI): VLAN 10 USERS, 20 VOICE und 99 MGMT getaggt auf dem Trunk, 999 als natives VLAN, und die Frames verwenden die Dokumentationsadressen von RFC 9542.

- **Tag**: `00 00 5e 00 53 01 00 00 5e 00 53 02 81 00 a0 14 08 00` ist ein Frame von 00-00-5E-00-53-02 an 00-00-5E-00-53-01 mit einem C-TAG mit der TCI 0xA014: PCP 5 (101, Voice), DEI 0, VID 20, das VLAN VOICE des Labs; dann EtherType 0x0800, den die Liste der IANA als „Internet Protocol version 4 (IPv4)“ beschreibt. Unter 7P1D, 6P2D und 5P3D wird derselbe PCP 5 zur Priorität 4 dekodiert.
- **Weitere Beispiele**: ein S-TAG mit VID 100 außerhalb eines C-TAG mit VID 10, dann IPv6; ein Priority-Tag (VID 0, PCP 5, dann ARP); VID 4095; der TPID 0x9100 von Junos; und ein Frame an eine Gruppenadresse für die Dokumentation, dessen Typfeld 0x002E ist, eine Länge von 46 Oktetten.
- **Trunk**: das Cisco-Ende des Labs (`switchport trunk allowed vlan 10,20,99`, `switchport trunk native vlan 999` und `switchport trunk allowed vlan add 999`) gegen sein Junos-Ende (`vlan members [ USERS VOICE MGMT ]`, aufgelöst zu 10, 20 und 99, `native-vlan-id 999` und `vlan members 999`). Die VLANs 10, 20 und 99 kommen in beide Richtungen getaggt im selben VLAN an, 999 ungetaggt.
- **Das Lab mit zwei anderen Herstellern**: die Zeilen für Switch Engine (das ungetaggte Hinzufügen von NATIVE999 verschiebt den Port mit der Meldung von auto-move aus Default) gegen die Zeilen für RouterOS: 10, 20, 99 und 999 kommen alle in beide Richtungen im selben VLAN an. Dasselbe gilt für die Zeilen für Arista (`switchport trunk native vlan 999`, dann `allowed vlan add 999`) gegen die Zeilen für Huawei (`port trunk pvid vlan 999`, `port trunk allow-pass vlan 999` und `undo port trunk allow-pass vlan 1`).
- **Die Falle bei vier Herstellern**: Zwei weitere Beispiele behalten die Zeilen des Labs ohne 999 in der Liste der erlaubten VLANs. Cisco gegen AOS-CX: 10, 20 und 99 gehen hinüber, und 999 ist vom Ende von Cisco aus nicht bestätigt und am Ende von AOS-CX nicht übertragen. Arista gegen Huawei: 10, 20 und 99 gehen hinüber, und 999 geht in keiner Richtung hinüber, am Ende von Arista nicht übertragen (Beispielausgabe von Arista) und am Ende von Huawei nicht weitergeleitet (die PVID wurde nie mit allow-pass hinzugefügt). Beide Bewertungen sind gelb.
- **Eine Abweichung**: ein Cisco-Ende mit nativem VLAN 1 gegen ein AOS-CX-Ende mit nativem VLAN 10, beide erlauben 1, 10 und 20: VLAN 20 geht hinüber; ungetaggte Frames von VLAN 1 aus Cisco landen in VLAN 10, und ungetaggte Frames von VLAN 10 aus AOS-CX landen in VLAN 1.

## Was das Tool nicht tut

Es liest Konfigurationszeilen, keinen laufenden Switch: Es nimmt an, dass jedes genannte VLAN auf beiden Switches existiert, der Link aktiv und an beiden Enden ein Trunk ist und nichts anderes (Pruning, Spanning Tree, VLAN-Registrierung mit MVRP) ein VLAN entfernt. Es handelt kein Trunking aus (DTP), verfolgt kein VLAN über mehr als einen Link, übersetzt keine VLANs und liest keine ganze Mitschnittdatei: Fügen Sie die ersten Oktette eines Frames ein. Das [Trunk-Lab](https://ronutz.com/de/learn/vlans-and-8021q-trunking) des Artikels zu VLANs verfolgt einen Frame Schritt für Schritt über einen Trunk.

## Ergebnisse teilen

Unter der Bewertung erzeugt **Ergebnisse teilen** einen Link auf diese Seite, und zwar nur, wenn Sie die Schaltfläche wählen. Der Link enthält nach dem `#` im Modus „802.1Q-Tag“ die Oktette so, wie eingegeben (`input` und, wenn er nicht automatisch ist, `start`), im Modus „Trunk-VLANs“ `mode=trunk` mit Hersteller und Zeilen beider Enden so, wie eingegeben (`avendor`, `aconfig`, `bvendor`, `bconfig`). Die Felder des anderen Modus sind nicht enthalten. Das Popover ergänzt einen Warnhinweis: Die Oktette eines Frames enthalten zwei MAC-Adressen, die Geräte identifizieren, und Trunk-Zeilen enthalten Namen von Schnittstellen und VLANs, die ein privates Netzwerk beschreiben.

Laut [RFC 3986](https://www.rfc-editor.org/rfc/rfc3986) (Abschnitt 3.5, abgerufen am 08.11.2026) ist das Fragment „separated from the rest of the URI prior to a dereference“, also vor der Dereferenzierung vom Rest der URI getrennt; daher werden diese Werte beim Öffnen des Links nicht an den Server gesendet. Sie bleiben in der Adressleiste und im Verlauf dessen, der den Link öffnet, und wer den Link hat, kann sie lesen.

- **Länge.** Ein Link enthält höchstens 16.384 Zeichen, die Grenze, die die Website für jeden Wert nach dem `#` setzt.
- **Öffnen eines Links.** Der Modus und seine Felder werden so gesetzt, wie eine Eingabe sie setzen würde (ein fehlender Beginn bedeutet „Automatisch“), der andere Modus behält seine Werte, und die Seite rechnet. Ein Link mit unbekanntem Modus, unbekanntem Beginn oder unbekanntem Hersteller (ein Hersteller ist eine der acht IDs, die unter „API“ aufgeführt sind), mit einem Feld des anderen Modus, einem leeren oder fehlenden Feld oder einem Wert über den Grenzen wird ignoriert. Ob angenommen oder nicht, die Werte verschwinden danach sofort aus der Adresse der Seite, ohne dass eine Anfrage gesendet wird.

## Herkunft

Die Engine ist Bit-Arithmetik, eine Tabellensuche und Mengenarithmetik, ohne Uhr, ohne Netzwerk und ohne Zufall. Sie bringt 176 Referenzvektoren (Golden Vectors) mit (Satz `vlan-tag-and-trunk-calculator-golden-2026-11-08b`): 71 berechnete (33 Tag-Auswertungen und 38 Trunk-Vergleiche, einschließlich der Beispiele und der weiteren Beispiele), 46, die die Sätze mit den Regeln und die Bereiche der Tabelle zum Verbleib festschreiben, 51 Ablehnungen und 8 API-Bodys. Jeder berechnete erwartete Wert wurde von einer separaten Python-Implementierung abgeleitet, nicht durch Ausführen dieser Engine: mit eigenem Hexadezimal-Parser und eigener Bit-Arithmetik, eigener Auswertung des XML der IANA, den Tabellen 6-5 und G-2, nach PCP neu abgetippt, und einem eigenen Parser für jeden Hersteller mit Python-Sets für die VLAN-Arithmetik. Ein Abgleich jedes ihrer 1.687 Felder mit der Engine fand keinen Unterschied.

## API

Dieselbe Engine beantwortet `/api/v1/vlan-tag-and-trunk-calculator` in der HTTP-API der Website; der Vertrag steht auf der [API-Seite](https://ronutz.com/de/api), die auch angibt, ob diese Website die API bereitstellt.

- **Anfrage.** Ein JSON-Objekt. Tag: `{"mode": "tag", "input": "81 00 a0 14 08 00"}`, mit optionalem `start` (`auto`, `tpid` oder `mac`). Trunk: `{"mode": "trunk", "a": {"vendor": "cisco-ios-xe", "config": "switchport trunk allowed vlan 10,20"}, "b": {"vendor": "aruba-aos-cx", "config": "vlan trunk allowed 10,20"}}`; die Hersteller sind `cisco-ios-xe`, `juniper-junos`, `aruba-aos-cx`, `mikrotik-routeros`, `extreme-switch-engine`, `extreme-fabric-engine`, `arista-eos` und `huawei-vrp`.
- **Antwort, Tag.** `mode`, `start`, `startAuto`, `octets`, `hex`, `destination` und `source` (`hex`, `colon`, `group`, `local`, `documentation` oder null), `tags` (jedes mit `index`, `offset`, `tpid`, `kind`, `name`, `tci`, `bits`, `pcp`, `pcpBits`, `acronym`, `trafficType`, `decodings`, `dei`, `vid`, `vidHex`, `vidBits`, `vidMeaning`, `notes`), `next` (`value`, `number`, `kind`, `name`, `text` oder null), `after`, `verdict`, `warnings` und `notes`.
- **Antwort, Trunk.** `mode`, `a` und `b` (jedes mit `end`, `vendor`, `vendorName`, `allowed`, `allowedCount`, `allowedText`, `tagged`, `taggedText`, `untaggedOut`, `untaggedIn`, `untaggedInVlan`, `native`, `nativeConfirmed`, `allConfigured`, `read`, `notRead`, `warnings`, `notes`), `carried`, `carriedCount`, `carriedText`, `aOnly`, `aOnlyText`, `bOnly`, `bOnlyText`, `crossed`, `crossedText`, `unconfirmed`, `unconfirmedText`, `rows` (jede mit `from`, `to`, `ab` und `ba` mit `as`, `outcome` und `into`), `nativeMismatch`, `verdict`, `warnings` und `notes`. VLAN-Listen sind Bereiche `[low, high]` und Text wie `10,20,30-40`.
- **Fehler.** HTTP 400, `invalid_input`, mit der Meldung der Engine, zum Beispiel `End B, line 2: port trunk allow-pass only-vlan applies only to an interface negotiated as a trunk: ...`.

## Quellen

- [IEEE P802.1ad/D2.4, Provider Bridges, unapproved draft amendment to IEEE Std 802.1Q, 27 September 2004](https://www.ieee802.org/1/files/public/docs2004/802-1-ad-D2-4.pdf) (abgerufen am 08.11.2026): Abschnitt 9, Abbildung 9-1, Tabellen 9-1, 9-2, 6-5 und G-2, Anhang G.4
- [IEEE 802.1, ieee802-dot1q-types YANG module, revision 2023-10-26](https://raw.githubusercontent.com/YangModels/yang/main/standard/ieee/published/802.1/ieee802-dot1q-types.yang) (abgerufen am 08.11.2026): c-vlan, s-vlan, vlanid, vlan-index-type, priority-type, pcp-selection-type
- [IEEE 802.1, ieee802-dot1q-bridge YANG module, revision 2023-10-26](https://raw.githubusercontent.com/YangModels/yang/main/standard/ieee/published/802.1/ieee802-dot1q-bridge.yang) (abgerufen am 08.11.2026): pvid, use-dei
- [IEEE 802.1, IEEE8021-Q-BRIDGE-MIB, LAST-UPDATED 2022-11-08](https://www.ieee802.org/1/files/public/MIBs/IEEE8021-Q-BRIDGE-MIB-202211080000Z.mib) (abgerufen am 08.11.2026): ieee8021QBridgePvid
- [IEEE Standards Association, IEEE 802.1Q-2022](https://standards.ieee.org/ieee/802.1Q/10323/) (abgerufen am 08.11.2026): Active Standard
- [RFC 9542, IANA Considerations and IETF Protocol and Documentation Usage for IEEE 802 Parameters, April 2024](https://www.rfc-editor.org/rfc/rfc9542.txt) (abgerufen am 08.11.2026): Abschnitte 2.1.1, 2.1.4 und 3; BCP 141, löst RFC 7042 ab, weder abgelöst noch aktualisiert ([RFC-Index](https://www.rfc-editor.org/rfc-index.xml), am selben Tag abgerufen)
- [IANA, IEEE 802 Numbers, Ethertypes, zuletzt aktualisiert am 03.11.2024](https://www.iana.org/assignments/ieee-802-numbers/ieee-802-numbers.xml) (abgerufen am 08.11.2026)
- [HPE Aruba Networking, AOS-CX 10.14 Quality of Service Guide, End-to-end QoS behavior](https://arubanetworking.hpe.com/techdocs/AOS-CX/10.14/HTML/qos_4100i-6000-6100/Content/Chp_Overview/end-to-end-qos-beh.htm) (am 08.11.2026 über WebFetch abgerufen)
- [Juniper Networks, Bridging and VLANs](https://www.juniper.net/documentation/us/en/software/junos/multicast-l2/topics/topic-map/bridging-and-vlans.html) und [802.1Q VLAN IDs and Ethernet Interface Types](https://www.juniper.net/documentation/us/en/software/junos/multicast-l2/topics/concept/ethernet-802-1q-vlan-id-by-interface-type.html) (abgerufen am 08.11.2026)
- [Juniper Networks, Ethernet Switching User Guide, veröffentlicht am 23.09.2026](https://www.juniper.net/documentation/us/en/software/junos/multicast-l2/multicast-l2.pdf) (abgerufen am 08.11.2026)
- [Cisco, Catalyst 9300 IOS XE 17.18 VLAN Configuration Guide, Configuring VLAN Trunks](https://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst9300/software/release/17-18/configuration_guide/vlan/b_1718_vlan_9300_cg/configuring_vlan_trunks.html) (am 08.11.2026 über WebFetch abgerufen und am 08.11.2026 erneut im Browser: Die Website verweigert automatisierte Abrufe) und [Configuring VLANs](https://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst9300/software/release/17-18/configuration_guide/vlan/b_1718_vlan_9300_cg/configuring_vlans.html) (am 08.11.2026 über WebFetch abgerufen), aktualisiert am 31. Juli 2025
- [Cisco, Catalyst 9300 IOS XE 17.18 Command Reference, VLAN Commands: switchport trunk](https://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst9300/software/release/17-18/command_reference/b_1718_9300_cr/vlan_commands.html) (am 08.11.2026 im Browser abgerufen: Die Website verweigert automatisierte Abrufe)
- [Cisco, Catalyst 9300 IOS XE 17.17 Command Reference, VLAN Commands](https://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst9300/software/release/17-17/command_reference/b_1717_9300_cr/vlan_commands.html) (am 08.11.2026 über WebFetch abgerufen)
- [HPE Aruba Networking, AOS-CX 10.16 Layer 2 Bridging Guide, vlan trunk allowed](https://arubanetworking.hpe.com/techdocs/AOS-CX/10.16/HTML/l2_bridging_6300-6400/Content/Chp_vlans/vlan_cmds/vla-tru-all.htm) (am 08.11.2026 über WebFetch abgerufen und am 08.11.2026 erneut im Browser: Die Website verweigert automatisierte Abrufe)
- [HPE Aruba Networking, AOS-CX 10.16 Layer 2 Bridging Guide, vlan trunk native](https://arubanetworking.hpe.com/techdocs/AOS-CX/10.16/HTML/l2_bridging_6300-6400/Content/Chp_vlans/vlan_cmds/vla-tru-nat.htm) und [vlan trunk native tag](https://arubanetworking.hpe.com/techdocs/AOS-CX/10.16/HTML/l2_bridging_6300-6400/Content/Chp_vlans/vlan_cmds/vla-tru-nat-tag.htm) (am 08.11.2026 im Browser abgerufen: Die Website verweigert automatisierte Abrufe)
- [Arista Networks, EOS 4.37.0F User Manual, Virtual LANs (VLANs)](https://www.arista.com/en/um-eos/eos-virtual-lans-vlans) (am 08.11.2026 im Browser abgerufen: Die Website verweigert automatisierte Abrufe)
- [Huawei, S5700 and S6700 V200R025C00 Command Reference, VLAN Configuration Commands](https://support.huawei.com/enterprise/en/doc/EDOC1100514211/834147df/vlan-configuration-commands) (am 08.11.2026 im Browser abgerufen: Die Website verweigert automatisierte Abrufe)
- [Huawei, S5700 and S6700 V200R025C00 Configuration Guide - Ethernet Switching, Adding and Removing VLAN Tags](https://support.huawei.com/enterprise/en/doc/EDOC1100514531/f9b8a34a/adding-and-removing-vlan-tags) (am 08.11.2026 im Browser abgerufen: Die Website verweigert automatisierte Abrufe): Tabelle 4-2
- [MikroTik, RouterOS Manual 7.24, Bridging and Switching](https://manual.mikrotik.com/docs/7.24/bridging-and-switching/) (abgerufen am 08.11.2026)
- [Extreme Networks, Switch Engine v33.7.1 Command References](https://documentation.extremenetworks.com/Switch%20Engine%20v33.7.1%20Command%20References/downloads/Switch_Engine_33_7_1_Command_References.pdf) (abgerufen am 08.11.2026): Seiten 1569, 1605, 1608 und 1782
- [Extreme Networks, Fabric Engine v9.4 User Guide, Add or Remove Ports in a VLAN](https://documentation.extremenetworks.com/Fabric%20Engine%20v9.4%20User%20Guide/fe_9.4_ug_revacdev/content/documents/Switch_Operating_Systems/VOSS_and_Fabric_Engine/fabric_engine_user_guide/adding_or_removing_ports_in_a_vlan.shtml) und [Command References](https://documentation.extremenetworks.com/Fabric%20Engine%20v9.4%20Command%20References/downloads/Fabric_Engine_9_4_Command_References.pdf) (abgerufen am 08.11.2026)
- [RFC 3986, Uniform Resource Identifier (URI): Generic Syntax](https://www.rfc-editor.org/rfc/rfc3986) (abgerufen am 08.11.2026): Abschnitt 3.5, das Fragment, das die Werte eines Links von „Ergebnisse teilen“ enthält

## Standards and references

- [IEEE P802.1ad/D2.4, Provider Bridges (unapproved draft amendment to IEEE Std 802.1Q, 27 September 2004): clause 9 and Tables 9-1, 9-2, 6-5 and G-2](https://www.ieee802.org/1/files/public/docs2004/802-1-ad-D2-4.pdf) - the tag: TPID then TCI (PCP bits 8 to 6, then CFI in a C-TAG or DE in an S-TAG, then the 12-bit VID); C-TAG 81-00; VID 0 the null VLAN ID, 1 the default PVID, FFF reserved and never transmitted; the PCP decoding under 8P0D, 7P1D, 6P2D and 5P3D; the traffic type of each priority; the S-TAG outside the C-TAG
- [IEEE 802.1, ieee802-dot1q-types YANG module, revision 2023-10-26: c-vlan (81-00), s-vlan (88-A8), vlanid 1..4094, vlan-index-type, priority-type, pcp-selection-type](https://raw.githubusercontent.com/YangModels/yang/main/standard/ieee/published/802.1/ieee802-dot1q-types.yang) - the two tag types and their EtherTypes as 802.1Q has them today; the VLAN ID range; values 0 and 4095 not permitted as VLAN indices; the four PCP selections
- [IEEE 802.1, ieee802-dot1q-bridge YANG module, revision 2023-10-26: pvid (default 1) and use-dei](https://raw.githubusercontent.com/YangModels/yang/main/standard/ieee/published/802.1/ieee802-dot1q-bridge.yang) - the Drop Eligible Indicator in the VLAN tag, used only when use-dei is True and otherwise transmitted as zero and ignored on receipt; the PVID, "the primary (default) VID assigned to a specific Bridge Port", default 1
- [IEEE 802.1, IEEE8021-Q-BRIDGE-MIB (LAST-UPDATED 2022-11-08): ieee8021QBridgePvid](https://www.ieee802.org/1/files/public/MIBs/IEEE8021-Q-BRIDGE-MIB-202211080000Z.mib) - the PVID is "the VLAN-ID assigned to untagged frames or Priority-tagged frames received on this port": the rule by which an untagged frame lands in the receiver's native VLAN
- [IEEE Standards Association, IEEE 802.1Q-2022, Bridges and Bridged Networks: Active Standard](https://standards.ieee.org/ieee/802.1Q/10323/) - 802.1Q-2022 is the current, active edition; its full text is not public, which is why the public draft, YANG and MIB are read
- [RFC 9542, IANA Considerations and IETF Protocol and Documentation Usage for IEEE 802 Parameters, April 2024 (BCP 141; obsoletes RFC 7042): sections 2.1.1, 2.1.4 and 3](https://www.rfc-editor.org/rfc/rfc9542.txt) - the M (group) and X (local) bits; the documentation MAC addresses; EtherTypes 0x0600 and above, lengths below 0x05DD, 0x8870 for LLC encapsulation; tags followed by another tag, an EtherType or an LSAP
- [IANA, IEEE 802 Numbers: Ethertypes (last updated 2024-11-03)](https://www.iana.org/assignments/ieee-802-numbers/ieee-802-numbers.xml) - the 216 rows packed in ethertypes.ts, shown as IANA publishes them; IANA's caveat that the list is contributed and unverified and that the IEEE Registration Authority keeps the public list
- [HPE Aruba Networking, AOS-CX 10.14 Quality of Service Guide (4100i, 6000, 6100), End-to-end QoS behavior: CoS and traffic type (read via WebFetch)](https://arubanetworking.hpe.com/techdocs/AOS-CX/10.14/HTML/qos_4100i-6000-6100/Content/Chp_Overview/end-to-end-qos-beh.htm) - the same eight traffic types for CoS 0 to 7 as the draft's Table G-2, and "CoS 1 is deliberately set as the lowest CoS"
- [Juniper Networks, Bridging and VLANs (Junos OS, Layer 2 networking): VLAN IDs, TPIDs, native VLAN on switches with ELS](https://www.juniper.net/documentation/us/en/software/junos/multicast-l2/topics/topic-map/bridging-and-vlans.html) - VLAN IDs 0 and 4095 reserved by Junos; the TPID 0x9100 for Q-in-Q; an ELS trunk does not recognize untagged data packets without native-vlan-id, and the logical interface must be a member of the native VLAN; vlan members by name or ID
- [Juniper Networks, 802.1Q VLAN IDs and Ethernet Interface Types](https://www.juniper.net/documentation/us/en/software/junos/multicast-l2/topics/concept/ethernet-802-1q-vlan-id-by-interface-type.html) - "VLAN ID 0 is reserved for tagging the priority of frames"
- [Juniper Networks, Ethernet Switching User Guide (Junos OS), published 2026-09-23: vlan members ranges and set adding to the members](https://www.juniper.net/documentation/us/en/software/junos/multicast-l2/multicast-l2.pdf) - vlan members 120-130 and members 500-501 (ranges); successive set lines adding to members [ 1 sales support ]
- [Cisco, VLAN Configuration Guide, Cisco IOS XE 17.18.x (Catalyst 9300 Switches), Configuring VLAN Trunks, updated 31 July 2025 (read via WebFetch; read again in a browser on 2026-11-08: the site refuses automated reads)](https://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst9300/software/release/17-18/configuration_guide/vlan/b_1718_vlan_9300_cg/configuring_vlan_trunks.html) - all VLANs allowed by default; no spaces in the list; VLAN 1 the default VLAN on all trunk ports, removable, management traffic continues; native VLAN 1 by default, untagged traffic forwarded in it, sent untagged on egress; the mismatch warning; nothing, in any sentence on the native VLAN, about a native VLAN left out of the allowed list
- [Cisco, VLAN Configuration Guide, Cisco IOS XE 17.18.x (Catalyst 9300 Switches), Configuring VLANs, updated 31 July 2025 (read via WebFetch)](https://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst9300/software/release/17-18/configuration_guide/vlan/b_1718_vlan_9300_cg/configuring_vlans.html) - VLAN IDs 1002 to 1005 reserved for Token Ring and FDDI VLANs, not forwarded by the device; VLAN 1 the default VLAN
- [Cisco, Command Reference, Cisco IOS XE 17.18.x (Catalyst 9300 Switches), VLAN Commands: switchport trunk (read in a browser on 2026-11-08: the site refuses automated reads)](https://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst9300/software/release/17-18/command_reference/b_1718_9300_cr/vlan_commands.html) - the allowed list is the VLANs that "receive and send traffic on this interface in tagged format"; the native VLAN is for "sending and receiving untagged traffic"; VLAN 1 the default native VLAN; every VLAN list includes all VLANs by default; a packet of the native VLAN "is sent without a tag"; no sentence on a native VLAN left out of the allowed list
- [Cisco, Command Reference, Cisco IOS XE 17.17.x (Catalyst 9300 Switches), VLAN Commands: switchport trunk (read via WebFetch)](https://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst9300/software/release/17-17/command_reference/b_1717_9300_cr/vlan_commands.html) - the vlan-list format all | none | [add | remove | except] vlan-atom[,vlan-atom...]; all is 1 to 4094 and the default; the no forms; the native VLAN default 1; the allowed list is for traffic in tagged format
- [HPE Aruba Networking, AOS-CX 10.16 Layer 2 Bridging Guide (6300/6400): vlan trunk allowed (read via WebFetch; read again in a browser on 2026-11-08: the site refuses automated reads)](https://arubanetworking.hpe.com/techdocs/AOS-CX/10.16/HTML/l2_bridging_6300-6400/Content/Chp_vlans/vlan_cmds/vla-tru-all.htm) - the VLAN-LIST format; all meaning every VLAN configured on the switch, now and later; multiple VLAN IDs assigned; the no form removing; the last VLAN removed trunking all VLANs
- [HPE Aruba Networking, AOS-CX 10.16 Layer 2 Bridging Guide (6300/6400): vlan trunk native (read in a browser on 2026-11-08: the site refuses automated reads)](https://arubanetworking.hpe.com/techdocs/AOS-CX/10.16/HTML/l2_bridging_6300-6400/Content/Chp_vlans/vlan_cmds/vla-tru-nat.htm) - native VLAN 1 by default; setting it runs vlan trunk allowed all; a later allowed list keeps only the VLANs it names; the no form returns to VLAN 1; the example "Assigning native VLAN ID 20 to trunk interface 1/1/2 and then removing it from the list of allowed VLANs. (Only allow VLAN 10 on the trunk.)": a native VLAN left out of the allowed list is not carried
- [HPE Aruba Networking, AOS-CX 10.16 Layer 2 Bridging Guide (6300/6400): vlan trunk native tag (read in a browser on 2026-11-08: the site refuses automated reads)](https://arubanetworking.hpe.com/techdocs/AOS-CX/10.16/HTML/l2_bridging_6300-6400/Content/Chp_vlans/vlan_cmds/vla-tru-nat-tag.htm) - untagged incoming packets dropped except BPDUs; egress packets tagged
- [MikroTik, RouterOS Manual 7.24: Bridging and Switching, Bridge VLAN Filtering](https://manual.mikrotik.com/docs/7.24/bridging-and-switching/) - vlan-ids lists (100-115,120); tagged and untagged ports of the bridge VLAN table; pvid 1 by default; frame-types admit-all by default, and a port that admits untagged frames added as untagged for its PVID; VLANs missing from the table dropped; several untagged VLANs on one port warned against
- [Extreme Networks, Switch Engine v33.7.1 Command References: configure vlan add ports (p. 1569), configure vlan tag (p. 1605), configure vlan untagged-ports auto-move (p. 1608), create vlan (p. 1782)](https://documentation.extremenetworks.com/Switch%20Engine%20v33.7.1%20Command%20References/downloads/Switch_Engine_33_7_1_Command_References.pdf) - tagged or untagged ports, untagged by default; one untagged VLAN a port; Default (tag 1) untagged on all ports; tags 2 to 4094 (4095 for the management VLAN); auto-move inform by default
- [Extreme Networks, Fabric Engine v9.4 User Guide: Add or Remove Ports in a VLAN](https://documentation.extremenetworks.com/Fabric%20Engine%20v9.4%20User%20Guide/fe_9.4_ug_revacdev/content/documents/Switch_Operating_Systems/VOSS_and_Fabric_Engine/fabric_engine_user_guide/adding_or_removing_ports_in_a_vlan.shtml) - vlan members add and remove with one VLAN ID, 1 to 4059; 4060 to 4094 reserved for internal use, and 3500 to 3998 with the vrf-scaling and spbm-config-mode boot flags; VLAN 1 the default VLAN
- [Extreme Networks, Fabric Engine v9.4 Command References: default-vlan-id (p. 139), untag-port-default-vlan (p. 345), encapsulation dot1q](https://documentation.extremenetworks.com/Fabric%20Engine%20v9.4%20Command%20References/downloads/Fabric_Engine_9_4_Command_References.pdf) - default-vlan-id 0 to 4059; untag-port-default-vlan untags the default VLAN, disabled by default; encapsulation dot1q enables tagging
- [Arista Networks, EOS 4.37.0F User Manual, Virtual LANs (VLANs): switchport mode, switchport trunk allowed vlan, switchport trunk native vlan (read in a browser on 2026-11-08: the site refuses automated reads)](https://www.arista.com/en/um-eos/eos-virtual-lans-vlans) - trunk mode: "Untagged traffic is associated with the interface's native VLAN"; default mode access; allowed vlan v_range ("number, range, or comma-delimited list of numbers and ranges"), add, all, except, none, remove, all by default ("interfaces handle tagged traffic for all VLANs"), no and default restoring all; native vlan default 1, the no and default forms "restore vlan 1 as the trunk mode native VLAN", native traffic leaving untagged unless egress priority tagging sends "priority tagged Ethernet frames in place of untagged frames"; tag ("tag interface drops all untagged frames"; nothing on the native VLAN's egress then, so an allowed native VLAN is not confirmed); the example output "Trunking Native Mode VLAN: 1 (inactive)" for an allowed list of 6-10, read as not carried
- [Huawei, S5700 and S6700 V200R025C00 Command Reference, VLAN Configuration Commands: port link-type, port trunk allow-pass vlan, port trunk pvid vlan (read in a browser on 2026-11-08: the site refuses automated reads)](https://support.huawei.com/enterprise/en/doc/EDOC1100514211/834147df/vlan-configuration-commands) - port link-type default negotiation-desirable (negotiation-auto on the S5736-S); allow-pass vlan { vlan-id1 [ to vlan-id2 ] }&<1-10> | all ("Adds a trunk interface to all VLANs"), cumulative across lines, the undo form removing; allow-pass only-vlan for a trunk negotiated through LNP only (prerequisite port link-type negotiation); "By default, a trunk interface is in VLAN 1"; a VLAN that does not exist does not take effect (said, not modelled); pvid vlan 1 to 4094, default 1, the latest line winning, the undo form restoring the default, forwarded "only after it is added to the default VLAN using the port trunk allow-pass vlan command"
- [Huawei, S5700 and S6700 V200R025C00 Configuration Guide - Ethernet Switching, VLAN Configuration, Adding and Removing VLAN Tags: Table 4-2 (read in a browser on 2026-11-08: the site refuses automated reads)](https://support.huawei.com/enterprise/en/doc/EDOC1100514531/f9b8a34a/adding-and-removing-vlan-tags) - a trunk port: an untagged frame takes the default VLAN ID and is transmitted when that VLAN is permitted, discarded when it is denied; a tagged frame accepted only when its VLAN is permitted; on egress the default VLAN's frames leave untagged when permitted, other permitted VLANs tagged
- [RFC Editor, RFC index (XML): the current status of RFC 9542 and RFC 7042](https://www.rfc-editor.org/rfc-index.xml) - RFC 9542 (BCP 141) obsoletes RFC 7042 and is neither obsoleted nor updated

## Related reading

- [Layer 2 redundancy: LAG, MLAG and spanning tree](https://ronutz.com/en/learn/layer-2-redundancy-lag-mlag-and-spanning-tree.md): Redundant links at layer 2 either get blocked by spanning tree or bundled by link aggregation, and a bundle that ends on two switches needs a pair that agrees on who it is. The numbers behind STP and RSTP convergence, the guards that stop loops, multi-chassis link aggregation in five vendors' own documents, stacking and virtual chassis, the IEEE's DRNI, and EVPN multihoming as the standard answer. After reading, you can predict how each design fails, compute its timers, and know what to test before you trust it.
- [Least and most significant bit: bit numbering and bit order](https://ronutz.com/en/learn/least-and-most-significant-bit.md): Every bit of a binary number has a weight, and the least significant bit is worth 1 while the most significant bit is worth the most and, in two's complement, carries the sign. What significance means, why LSB and MSB sometimes mean bytes, the three ways documents number bits (LSB 0, MSB 0 and 1-based) and the same field read all three ways, the order bits travel on Ethernet, a UART, PPP, I2C and SPI, canonical and bit-reversed MAC addresses, masks, shifts, parity and reflected CRCs, the bugs a wrong order causes, and three cases on this site: Huawei's PortState printed bit 1 first, the I/G and U/L bits of a MAC address, and the DNS header flags.
- [The Ethernet frame, field by field: preamble to FCS, the 802.1Q tag, and the sizes that matter](https://ronutz.com/en/learn/the-ethernet-frame-field-by-field.md): Every Ethernet frame is the same short sequence of fields: a preamble to wake the receiver, two addresses, one field that is either a length or a type, the payload, and a checksum. What each field holds, why the minimum is 64 octets and the maximum 1518, where the 802.1Q tag goes and what it carries, and why jumbo frames are not in the standard.
- [VLAN hopping: switch spoofing, double tagging and the trunk settings that close both](https://ronutz.com/en/learn/vlan-hopping-switch-spoofing-and-double-tagging.md): A VLAN boundary rests on three decisions a switch makes about every frame: which VLAN a frame belongs to, which ports accept tags, and which VLAN travels untagged on a trunk. VLAN hopping attacks each of them. This part explains the IEEE 802.1Q classification rules those decisions come from, works through switch spoofing with the trunk-negotiation table and double tagging with the frame written out byte by byte at each switch, follows the voice VLAN and the 2022 VLAN 0 bypass of layer 2 filters, and gives the settings that close every path, from the vendors' guides, the NSA's hardening guidance and the DISA checklist. After reading, you can compute a tag by hand, predict whether a given frame crosses a VLAN boundary, say why double tagging is one-way, and audit a trunk and an access port for the settings that matter.
- [VLANs and 802.1Q trunking: tagged, untagged, native, and the voice VLAN](https://ronutz.com/en/learn/vlans-and-8021q-trunking.md): A VLAN turns one switched network into several that cannot hear each other's broadcasts, and 802.1Q is how a single cable carries many of them at once. Access and trunk ports in the standard's own terms, the native VLAN and the mismatch that loops a network, the VLAN-hopping attacks and the settings that stop them, the voice VLAN behind every desk phone, and why traffic between VLANs always needs a router.
