VLAN configuration generator
Choose the platform and intended port behavior instead of generating a generic VLAN fragment.
A VLAN ID alone is not a complete port configuration
A usable Layer 2 VLAN design also defines where frames enter untagged, where they remain tagged and which VLANs are permitted on trunks. The exact CLI depends on the operating system and hardware family.
Access and trunk are explicit interface modes
On common Cisco IOS/IOS XE switching platforms, an access port is placed in a single access VLAN with switchport mode access and switchport access vlan. A trunk uses switchport mode trunk and can restrict which VLANs are carried with switchport trunk allowed vlan.
RouterOS uses the bridge VLAN table and PVID together
In RouterOS bridge VLAN filtering, PVID classifies untagged ingress traffic on access ports, while the bridge VLAN table controls tagged and untagged membership. Ingress filtering and frame-type restrictions help prevent traffic from entering through ports where a VLAN is not expected.
Legacy Datacom syntax must not be generalized to DmOS
Datacom has multiple product and software generations. The legacy profile shown here is based on documented switchport commands from older equipment and must not be assumed to represent current DmOS syntax.
VLAN changes can remove your own management path
Before enabling filtering, changing a native/PVID setting or removing VLAN membership, confirm how the device itself is reached. Console or out-of-band access is preferable for disruptive VLAN migrations.