Home/Blog/CCNA & VLAN
10 min readReviewed

VLANs and trunks: organising a switched network

Divide a physical network into logical broadcast domains and understand access ports, tagged trunks and controlled inter-VLAN routing.

What you will take away

Knowledge you can put to work.

  • Explain access ports, trunks and 802.1Q tags
  • Connect VLAN segmentation with routing and security policy
  • Diagnose native-VLAN and allowed-VLAN mismatches

VLANs divide Layer-2 broadcast domains. Access ports assign endpoint traffic to a VLAN; 802.1Q trunks carry several VLANs. Communication between VLANs needs routing and deliberate security rules.

VLANs separate broadcast domains

Without additional segmentation, ports in the same VLAN share a broadcast domain. Smaller domains improve organisation and limit broadcast traffic and fault scope. Logical grouping can follow communication needs instead of the physical cable location.

An access port assigns untagged endpoint traffic to one VLAN. A trunk transports frames from several permitted VLANs using IEEE 802.1Q tags; the native VLAN may travel untagged depending on configuration. The four-byte tag appears between the source MAC and type fields and carries a VLAN ID in the range 1–4094.

Devices in different VLANs need Layer-3 routing even on the same physical switch. Segmentation becomes a security control only with rules governing traffic between VLANs. Plan server, user, management, voice and guest networks around required communication, not only departments.

Access and trunk configuration examples

An endpoint can send ordinary Ethernet frames while the switch assigns its access VLAN. A link between network devices can instead carry several VLANs. These Cisco-style examples illustrate the configuration; apply them only to the intended interfaces and an agreed design.

  • Access port: interface Gi0/1 → switchport mode access → switchport access vlan 10
  • Trunk port: interface Gi0/24 → switchport mode trunk → switchport trunk allowed vlan 10,20

Both ends of a trunk need the same agreement

Configure trunk mode, native VLAN and allowed VLANs consistently at both ends. A VLAN missing from a trunk may work in only part of the network. A native-VLAN mismatch can produce warnings, incorrect classification and security problems. Do not carry every VLAN over every trunk without a need.

Many environments restrict VLAN 1 and automatic trunk negotiation. Disable unused access ports and place them in an unused VLAN. Management access belongs in a separate controlled network.

Use the MAC table to see where frames arrive

Check VLAN existence, port mode, access VLAN, trunk permissions and Spanning Tree state. The MAC table should show endpoints on the expected VLAN and port. If an entry is absent, the frame has not arrived or was dropped earlier.

Ping is not a complete VLAN test because routing, ACLs and host firewalls also affect it. Packet captures and targeted Layer-2 checks separate segmentation problems from faults higher in the stack.

Practical checklist

  1. 01

    Create and name the VLAN on all involved switches.

  2. 02

    Verify access ports, voice VLANs and endpoint assignments.

  3. 03

    Compare trunk mode, native VLAN and allowed lists at both ends.

  4. 04

    Inspect the MAC table and Spanning Tree state for the affected VLAN.

  5. 05

    Verify inter-VLAN routing, ACLs and default gateway separately.

Frequently asked questions

Is a VLAN automatically a security zone?

It separates Layer-2 broadcast domains. Security requires controlled routing, firewall rules, secure switch configuration and suitable endpoint controls.

What is the native VLAN?

Traffic for this VLAN is usually sent untagged over an 802.1Q trunk. Both ends must agree on its assignment.

From reading to action

How Bissolux can help

Turn the checks in this guide into a practical plan. Tell us about your systems and requirements so we can agree the work, responsibilities and scope.

Illustrative server racks and network environmentAdvertisement · Bissolux
Illustrative working environment
Bissolux · our offerPlan your protection

Network and access segmentation

Separate network areas, devices and access with suitable rules and documented responsibilities.

Infrastructure diagram connecting workstations, network, servers and separate backupAdvertisement · Bissolux
Illustrative service preview
Bissolux · our offerA system that fits

IT infrastructure

Plan network, server and cloud capacity, access and ongoing responsibilities around your actual workloads.