Network and IP Planning · #08

Online VLAN ID and Trunk List Normalizer

Simplifies VLAN lists and shows allowed-VLAN and native-VLAN differences between both ends of a trunk.

  • Data is processed in your browser and not sent to a server

Tool

IDs and ranges separated by comma, space or ;.

May be left empty.

What does this tool do?

A VLAN allowed on one end of a trunk but not the other silently cuts off part of that VLAN. A native VLAN mismatch puts untagged traffic into the wrong VLAN. The tool compares both ends and rewrites the list in a short form you can paste into devices.

How to use it

  1. Enter end A's allowed VLAN list (10,12-14,20); spaces and semicolons also work as separators.
  2. For a comparison, enter end B and both native VLANs (optional).
  3. Press Calculate.

Fields

End A allowed VLANs
IDs and ranges separated by comma, space or ;.
End A native VLAN
May be left empty.
End B allowed VLANs (optional)
End B native VLAN

Worked example

InputValue
End A allowed VLANs10,12-14,13
End A native VLAN1
End B allowed VLANs (optional)10,12,14,20
End B native VLAN99

Expected result: A: 10,12-14 (duplicate 13 and order fixed); B: 10,12,14,20; common 10,12,14; only on A 13; only on B 20; native 1 ≠ 99.

VLAN 13 is missing on end B, so its traffic does not cross the trunk; VLAN 20 is dropped on end A. The native VLAN mismatch triggers CDP/LLDP warnings and untagged frames land in a different VLAN on the far end.

Method and assumptions

The list is expanded into a set of integers, sorted and consecutive values written back as ranges. Usable 802.1Q VLAN IDs are 1–4094; 0 and 4095 are reserved.

Comparison uses set intersection and differences. A native VLAN that is not in the allowed list is reported.

Using the result and troubleshooting

Paste the normalized list straight into switchport trunk allowed vlan. The 'only A' and 'only B' rows are the VLANs to add or remove on one end.

Limits and common mistakes

  • Vendor-specific reserved ranges are not applied without a verified profile; check your device documentation.
  • It does not connect to devices; it compares the lists you enter.

Frequently asked questions

Why move the native VLAN away from 1?

VLAN 1 carries many control protocols; an unused native VLAN reduces VLAN hopping risk. What matters most is that both ends match.

Related tools and service

  • VLAN and VLSM IP PlannerSplits one parent block into several VLANs; returns subnet, gateway, DHCP range and spare capacity per VLAN, with XLSX export.

Related service: Switch, Router and Network Device Installation

Network online tools · See all online tools