OSNTC.004: VLAN Basics

A managed network switch with its first ports grouped as VLAN 10 and the remaining ports grouped as VLAN 20, illustrating logical separation.

Simple explanation: A VLAN lets one physical managed switch behave like several separate local networks. The cable and switch can be shared, while devices are placed into different logical groups.

Definition: A virtual local area network (VLAN) is a logical group of switch ports and devices that share a Layer 2 network. A VLAN ID, such as 10 or 20, identifies that group on a switch.

In OSNTC.001: IP Addresses, we learned how an address identifies a network interface. OSNTC.002: Subnet Masks helps distinguish local addresses. OSNTC.003: Default Gateway explained the router path to other networks. This lesson adds a way to separate traffic at the switch.

Why use VLANs?

Imagine one office switch serving staff computers and IP phones. A network administrator can put the computers in a data VLAN and the phones in a voice VLAN. This separates traffic into logical groups without requiring a different physical switch for every group. The right design depends on network policy and switch configuration.

The cover shows a switch with ports grouped into VLAN 10 and VLAN 20. Those labels are examples only; VLAN numbers do not automatically mean “data,” “voice,” or any particular security level.

VLANs, IP subnets, and gateways

A VLAN is a Layer 2 switching concept. An IP subnet is a Layer 3 addressing range. Networks often assign one IP subnet to each VLAN, but the words do not mean the same thing. A VLAN assignment alone does not give a device an IP address or a default gateway.

Devices in separate VLANs generally cannot exchange ordinary traffic directly through Layer 2 switching. A router or Layer 3 switch can route between VLANs when that routing is configured. Firewalls or access rules can then limit what crosses between them. Segmentation helps organize traffic, but does not by itself guarantee security.

Access ports and trunk links

An access port usually connects an endpoint, such as a workstation, to one assigned VLAN. The endpoint commonly sends ordinary untagged Ethernet frames; the switch associates that port’s traffic with its configured VLAN.

A trunk is a switch-to-switch or switch-to-router link that can carry traffic for multiple VLANs. With IEEE 802.1Q, the network equipment adds VLAN tags to identify traffic on that link. Both ends need compatible settings, and only intended VLANs should be allowed. Cisco’s documentation summarizes the different access and trunk roles.

Watch a visual explanation

Practical Networking gives a short visual introduction to what VLANs are. Watch the explanation here, then use the office example below to check what VLAN membership does and does not tell us.

Video: “What are VLANs? — the simplest explanation” — Practical Networking.

A simple switch plan

Consider a managed switch with two configured groups: VLAN 10 for office computers and VLAN 20 for phones. Port 1 connects to a computer assigned to VLAN 10. Port 9 connects to an IP phone assigned to VLAN 20. Port 16 connects to another managed switch and is configured as a trunk carrying both VLANs.

The numbering and ports are illustrative. A switch does not infer the intended VLAN from a cable or device name. An authorized administrator must configure VLAN membership and, on trunk links, the VLANs allowed across the connection.

Paper check

Answer without changing a live switch: 1. If a laptop is plugged into an access port assigned to VLAN 10, which VLAN does the switch associate with its traffic? 2. Can a VLAN by itself route the laptop to VLAN 20? 3. What is the trunk in the example for?

Answers: 1. VLAN 10. 2. No. Inter-VLAN traffic needs a configured router or Layer 3 switch, and policy may control it. 3. It carries multiple configured VLANs between switches while keeping their traffic identified.

Key takeaway

A VLAN groups traffic logically on a switched network. Access ports usually place an endpoint in one VLAN; trunks carry multiple VLANs between network devices. IP subnetting and routing work alongside VLANs, and correct configuration matters.

Reference: Cisco’s access and trunk port documentation defines these port roles and shows how their settings are applied. This lesson is a concept overview; do not change production switch settings without authorization and the site’s approved network plan.

14 responses to “OSNTC.004: VLAN Basics”

  1. […] This lesson builds on OSNTC.001: IP Addresses, OSNTC.002: Subnet Masks, OSNTC.003: Default Gateway, and OSNTC.004: VLAN Basics. […]

    Like

  2. […] remains one of the most important network-defense fundamentals. BitcoinVersus recently covered VLAN basics and logical segmentation, which help reduce how freely traffic and administrative access can move across an environment when […]

    Like

  3. […] For Layer-3 traffic between networks, use router basics. For logical network separation, our VLAN basics lesson explains why multiple networks can share switching infrastructure while remaining logically […]

    Like

  4. […] foundations include network switch basics, router basics, and VLAN basics. At the engineer level, add physical route diversity and independent failure-domain […]

    Like

  5. […] assigned management address. The technician should also understand MAC addresses, network switches, VLANs, and ping/ICMP because BMC reachability problems are often ordinary network […]

    Like

  6. […] lives at Layer 2, so it directly interacts with the Ethernet frames, switch ports, trunks, and VLANs already covered in this course. Depending on platform and mode, a switch may run one spanning tree […]

    Like

  7. […] interface, controller, API, or other management system. Depending on the model, that can include VLANs, Quality of Service, access-control lists, port security, 802.1X authentication, link aggregation, […]

    Like

  8. […] is why VLAN configuration matters. If two member links disagree about trunk state or VLAN handling, the logical […]

    Like

  9. […] the port’s access/trunk mode, and whether a security feature has blocked forwarding. Review OSNTC.004: VLAN Basics and OSNTC.019: Spanning Tree before altering live switch […]

    Like

  10. […] network fault instead of immediately blaming the installer. Verify physical link, switch port, VLAN, DHCP response, correct boot-interface selection, firmware boot mode, and reachability to the […]

    Like

  11. […] routers, firewalls, hypervisors, and other VLAN-aware devices. This lesson builds directly on OSNTC.004: VLAN Basics, OSNTC.008: Ethernet Frame Basics, and OSNTC.021: Troubleshooting Switch […]

    Like

  12. […] crosses a trunk. This lesson follows OSNTC.021: Troubleshooting Switch Ports and builds directly on OSNTC.004: VLAN Basics and OSNTC.008: Ethernet Frame […]

    Like

  13. […] is called inter-VLAN routing. This lesson follows OSNTC.022: VLAN Trunking and 802.1Q and builds on OSNTC.004: VLAN Basics, OSNTC.013: Router Basics, and OSNTC.021: Troubleshooting Switch […]

    Like

  14. […] operation is already understood. Review Ethernet link negotiation, switch-port troubleshooting, VLANs, and 802.1Q trunks. A port that is already in the wrong VLAN or using the wrong trunk policy will […]

    Like

Leave a Reply