Hiring Partners
Segilola Resources Operating LimitedTaviatech TechnologiesFCMBMTN NigeriaAdvans La Fayette Microfinance BankAboki AfricaFirst Bank of NigeriaOPay
โ† Networking Basics Level Three ยท Lesson 5 of 11

Module Four

๐Ÿ“– Every lesson in this course is free to read right here, no account needed. Create a free account to track your progress, take the exam, and earn your certificate.
5
Networking Basics Level Three - Module Four

NETWORKING BASICS LEVEL THREE

MODULE FOUR: NETWORK SWITCHING, VLANs AND NETWORK SEGMENTATION

1. Introduction

Imagine a school with many classrooms. Students in each classroom need to communicate with their teachers and classmates. The school also needs a way to organise everyone so that messages reach the correct people.

A computer network works in a similar way. Computers, printers, phones and other devices need to communicate with one another. A network switch helps these devices communicate within a local network.

In this module, you will learn about network switches, how they work, what VLANs are and why organisations divide networks into smaller sections.

2. Learning Objectives

At the end of this module, you should be able to:

  • Explain what a network switch is.
  • Describe how switches help devices communicate.
  • Understand the difference between a switch and a router.
  • Explain what a MAC address is.
  • Describe how a switch learns device addresses.
  • Explain what VLANs are.
  • Understand network segmentation.
  • Describe the benefits of using VLANs.
  • Understand access ports and trunk ports.
  • Identify simple examples of network segmentation.

3. What Is a Network Switch?

Definition

A network switch is a device that connects computers, printers, servers and other devices within a local area network (LAN).

It helps information travel from one connected device to another. It uses the destination device's MAC address to decide where to send network information.

Simple Explanation

Think of a switch as a school receptionist. When a message arrives, the receptionist helps direct it to the correct classroom.

In the same way, a network switch receives information from one device and forwards it through the correct connection.

Example

Imagine a computer laboratory containing:

  • 10 desktop computers
  • One network printer
  • One server
  • One network switch

The switch connects these devices so they can communicate on the local network.

Illustration

          COMPUTER 1
               |
          COMPUTER 2
               |
          COMPUTER 3
               |
          +-------------+
          |   SWITCH    |
          +-------------+
               |
          NETWORK PRINTER
               |
             SERVER
    

Why Is a Switch Important?

  • It connects multiple devices.
  • It helps information reach the correct device.
  • It makes sharing printers and files easier.
  • It helps organisations build local networks.
  • It supports communication between computers.

4. How Does a Network Switch Work?

A switch works by receiving network frames and examining their destination MAC addresses.

A MAC address is a unique hardware address assigned to a network interface. It helps identify a device on a local network.

How a Switch Handles Information

  1. A device sends information into the switch.
  2. The switch reads the source MAC address.
  3. It learns which switch port is connected to that address.
  4. The switch checks the destination MAC address.
  5. It forwards the frame through the appropriate port if it knows the destination.

If the switch does not know where the destination device is, it may send the frame through other ports in the same VLAN. This is called flooding.

School Example

Imagine a teacher sending a note to a student in Classroom A. If the receptionist knows where the student sits, the note can be delivered directly. If the location is unknown, the receptionist may ask around.

Remember This

A switch uses MAC addresses to help forward information to the correct device.

5. What Is a MAC Address?

Definition

A MAC address (Media Access Control address) is a hardware address used to identify a network interface on a local network.

A network interface is the part of a device that allows it to connect to a network.

Example of a MAC Address

    00:1A:2B:3C:4D:5E
    

A MAC address is commonly written using hexadecimal characters. These include numbers from 0 to 9 and letters from A to F.

Simple Explanation

Think of a MAC address as an identification number for a network connection. It helps a switch recognise devices on its network.

MAC Address vs IP Address

MAC Address IP Address
Identifies a network interface at the link layer. Identifies a device's network location logically.
Usually assigned to the network interface by its manufacturer. Can be assigned manually or automatically.
Used by switches when forwarding local network frames. Used by devices and routers to deliver packets across networks.

6. What Is a MAC Address Table?

A MAC address table is a list that a switch builds to remember which MAC addresses can be reached through its ports.

It helps the switch know where to send information.

Example

Switch Port MAC Address Connected Device
Port 1 00:11:22:33:44:55 Computer A
Port 2 00:11:22:33:44:66 Computer B
Port 3 00:11:22:33:44:77 Printer

When Computer A sends information to the printer, the switch can use its MAC address table to forward the frame through Port 3.

Mini Summary

  • A switch learns MAC addresses.
  • It stores them in a MAC address table.
  • It uses the table to forward frames.

7. Types of Network Switches

Different switches are designed for different networking needs. Here are some common types.

7.1 Unmanaged Switch

An unmanaged switch is a simple switch that works without requiring users to configure its network settings.

Example: A small office may use an unmanaged switch to connect several computers and a printer.

7.2 Managed Switch

A managed switch allows a network administrator to configure and control network features.

These features may include:

  • VLANs
  • Port settings
  • Network monitoring
  • Traffic management
  • Security settings

7.3 Layer 2 Switch

A Layer 2 switch mainly forwards Ethernet frames using MAC addresses. It works at the Data Link Layer of the OSI model.

7.4 Layer 3 Switch

A Layer 3 switch can perform normal switching and some routing functions using IP addresses.

Comparison Table

Switch Type Main Feature
Unmanaged Simple operation with little configuration.
Managed Allows administrators to control network settings.
Layer 2 Forwards frames using MAC addresses.
Layer 3 Can switch and route network traffic.

8. Difference Between a Switch and a Router

A switch and a router are both important networking devices, but they perform different jobs.

Network Switch

A switch connects devices within a local network and forwards frames using MAC addresses.

Router

A router connects different IP networks and forwards packets using IP addresses.

Everyday Example

Imagine a school:

  • A switch helps students and computers communicate inside the school.
  • A router helps the school network communicate with other networks, such as the internet.
Switch Router
Connects devices within a LAN. Connects different networks.
Uses MAC addresses for normal Layer 2 forwarding. Uses IP addresses to forward packets.
Usually works at Layer 2. Works at Layer 3.

9. What Is Network Segmentation?

Definition

Network segmentation means dividing a large network into smaller sections.

Simple Explanation

Imagine a large school with different departments:

  • Administration
  • Teachers
  • Students
  • Library
  • Computer laboratory

Instead of treating the whole school as one large group, the school can organise each department separately.

A computer network can be organised in the same way. Different groups of devices can be placed into separate network sections.

Illustration

              SCHOOL NETWORK
                    |
          +---------+---------+
          |         |         |
      ADMIN       STAFF     STUDENTS
      NETWORK    NETWORK    NETWORK
          |         |         |
       Office    Teachers   Students'
      Computers  Computers  Computers
    

Why Is Segmentation Important?

  • It helps organise a network.
  • It can improve network performance.
  • It helps control communication between groups.
  • It can improve security.
  • It makes network management easier.

10. What Is a VLAN?

Definition

VLAN stands for Virtual Local Area Network. It is a way of dividing one physical switched network into separate logical networks.

Simple Explanation

Imagine that a school has one large computer laboratory. The computers are connected to the same network switch.

The school wants to separate the administration computers from the student computers, even though they use the same physical switch.

VLANs make this possible by placing devices into different logical groups.

Example

VLAN Department Devices
VLAN 10 Administration Office computers
VLAN 20 Teachers Teachers' computers
VLAN 30 Students Student computers
VLAN 40 Guests Guest devices

VLAN Illustration

              ONE PHYSICAL SWITCH
                       |
             +-------------------+
             |                   |
          VLAN 10             VLAN 20
        ADMINISTRATION        TEACHERS
             |                   |
        +----+----+          +---+---+
        |         |          |       |
      PC 1      PC 2       PC 3    PC 4

             +-------------------+
                       |
                    VLAN 30
                    STUDENTS
                       |
                 +-----+-----+
                 |           |
                PC 5        PC 6
    

The devices are connected to the same physical switch, but they belong to different logical networks.

11. Benefits of VLANs

VLANs provide several important benefits.

11.1 Better Organisation

VLANs allow network administrators to group devices according to departments, activities or responsibilities.

11.2 Improved Security

VLANs help separate groups of devices. Communication between different VLANs can be controlled using routing and security rules.

11.3 Reduced Unnecessary Traffic

Broadcast traffic is normally limited to devices within the same VLAN. This can reduce unnecessary network traffic in other VLANs.

11.4 Easier Management

Administrators can manage groups of devices more easily.

11.5 Flexible Network Design

Devices can belong to the same VLAN even when they are connected to different switches, provided the network is configured correctly.

12. What Is a VLAN ID?

A VLAN ID is a number used to identify a VLAN.

VLAN IDs are commonly in the range of 1 to 4094. Some values have special uses, so network administrators should follow the rules of their networking equipment.

Example

VLAN ID Department
10 Administration
20 Teachers
30 Students
40 Guests

The numbers help the switch identify which logical network each frame belongs to.

13. What Is an Access Port?

An access port is a switch port normally assigned to one VLAN. It is commonly used to connect end devices such as computers, printers and ordinary user devices.

Example

If a computer belongs to VLAN 10, the switch port connected to that computer can be configured as an access port in VLAN 10.

       COMPUTER
           |
           |
      ACCESS PORT
           |
        SWITCH
           |
        VLAN 10
    

14. What Is a Trunk Port?

A trunk port is a switch port that can carry traffic from multiple VLANs across a network connection.

Trunk links are often used to connect two switches or connect a switch to a router or another network device.

Simple Explanation

Imagine a road that carries buses from different school departments. Each bus has a label showing which department it belongs to.

A trunk link carries traffic for different VLANs. Ethernet VLAN tagging, commonly using IEEE 802.1Q, helps identify which VLAN each frame belongs to.

          SWITCH A
              |
          TRUNK LINK
              |
          SWITCH B

      Carries traffic for:
          VLAN 10
          VLAN 20
          VLAN 30
    

Access Port vs Trunk Port

Access Port Trunk Port
Normally carries traffic for one VLAN. Can carry traffic for multiple VLANs.
Often connects to computers and printers. Often connects switches and other network devices.
Usually sends frames without VLAN tags to ordinary end devices. Uses VLAN tags to identify traffic for different VLANs.

15. Can Devices in Different VLANs Communicate?

By default, devices in different VLANs are separated. They normally need a Layer 3 device, such as a router or Layer 3 switch, to communicate with one another.

This process is called inter-VLAN routing.

Example

Imagine:

  • Administration computers are in VLAN 10.
  • Teacher computers are in VLAN 20.

If a computer in VLAN 10 needs to communicate with a computer in VLAN 20, a router or Layer 3 switch must route the traffic.

           VLAN 10
         ADMIN NETWORK
               |
               |
          LAYER 3 DEVICE
          (ROUTER OR
          LAYER 3 SWITCH)
               |
               |
           VLAN 20
         TEACHER NETWORK
    

Network administrators can also use security rules to decide which groups are allowed to communicate.

16. What Is a Broadcast Domain?

Definition

A broadcast domain is a group of devices that can receive broadcast messages sent within that network section.

Simple Explanation

Imagine a teacher making an announcement to every student in one classroom. Everyone in that classroom can hear the message.

A network broadcast works in a similar way. It sends information to all devices within the same broadcast domain.

Each VLAN normally creates a separate broadcast domain.

Example

           SWITCH
              |
       +------+------+
       |             |
     VLAN 10       VLAN 20
       |             |
    Broadcast     Broadcast
     Domain        Domain
    

17. What Is the Difference Between a Collision Domain and a Broadcast Domain?

Collision Domain

A collision domain is a network section where data transmission could interfere with another transmission. Modern switched Ethernet networks using full-duplex connections largely avoid these collisions.

Broadcast Domain

A broadcast domain is the group of devices that receive broadcast traffic from one another.

Collision Domain Broadcast Domain
Related to possible frame collisions. Related to broadcast messages.
Switch ports normally separate collision domains. VLANs normally separate broadcast domains.
Modern full-duplex Ethernet greatly reduces collision concerns. Broadcasts remain limited to their VLAN unless routed or otherwise forwarded.

18. What Is Port Security?

Port security is a feature available on some managed switches that helps control which devices can connect through a switch port.

Depending on the switch, an administrator may configure rules about which MAC addresses are allowed on a particular port.

Why Is It Useful?

  • It can help prevent unauthorised devices from using a port.
  • It gives administrators more control over network connections.
  • It can support an organisation's network security policy.

Port security is only one part of network security. It should be combined with other protections, such as strong authentication, secure device settings and network monitoring.

19. Introduction to Network Switching Commands

Network administrators sometimes use command-line tools to inspect switches and network connections.

The exact commands depend on the switch manufacturer and model. The examples below are common Cisco-style commands for learning in an authorised practice environment.

19.1 Show MAC Address Table

    show mac address-table
    

This command displays the MAC addresses learned by a switch and the ports where they were discovered.

19.2 Show VLAN Information

    show vlan brief
    

This command displays VLAN information, including VLAN IDs and associated access ports.

19.3 Show Interface Status

    show interfaces status
    

This command displays information about switch ports, including whether they are connected.

19.4 Show Trunk Information

    show interfaces trunk
    

This command displays information about trunk connections and the VLANs they carry.

20. Practical Activity: Designing a Small School Network

Activity Goal

Design a simple network for a school with three departments.

School Departments

  • Administration
  • Teachers
  • Students

Required Equipment

  • One managed network switch
  • Six computers
  • One router or Layer 3 switch
  • Network cables

Network Design

Department Number of Computers VLAN ID
Administration 2 10
Teachers 2 20
Students 2 30

Simple Network Diagram

                 ROUTER
                    |
                    |
              NETWORK SWITCH
                    |
        +-----------+-----------+
        |           |           |
      VLAN 10     VLAN 20     VLAN 30
        |           |           |
      PC 1        PC 3        PC 5
      PC 2        PC 4        PC 6

    Administration Teachers  Students
    

Activity Instructions

  1. Draw the network diagram in your notebook.
  2. Label the switch and router.
  3. Assign VLAN 10 to Administration.
  4. Assign VLAN 20 to Teachers.
  5. Assign VLAN 30 to Students.
  6. Identify which ports connect to computers.
  7. Identify the connection that could carry multiple VLANs.
  8. Explain why the school might want to separate the departments.

If you have access to Cisco Packet Tracer, you can build this network in the simulator and practise the basic configuration under the guidance of your instructor.

21. Common Mistakes in Network Switching

  • Confusing switches with routers: A switch normally connects devices within a LAN, while a router connects different IP networks.
  • Thinking VLANs are physical cables: VLANs are logical network groups.
  • Assuming all VLANs communicate automatically: Communication between VLANs normally requires Layer 3 routing.
  • Confusing MAC addresses with IP addresses: They perform different jobs.
  • Confusing access ports with trunk ports: Access ports normally serve one VLAN, while trunk ports can carry multiple VLANs.

22. Key Vocabulary

Word Meaning
Switch A device that connects devices within a local network.
MAC Address A hardware address used to identify a network interface.
MAC Address Table A list of MAC addresses and the switch ports where they are learned.
VLAN A logical division of a switched network.
VLAN ID A number used to identify a VLAN.
Network Segmentation Dividing a network into smaller sections.
Access Port A switch port normally assigned to one VLAN.
Trunk Port A switch port that can carry traffic from multiple VLANs.
Broadcast Domain A group of devices that receive broadcast messages from one another.
Inter-VLAN Routing Communication between different VLANs through a Layer 3 device.
Port Security A switch feature that helps control which devices can use a port.

23. Important Things to Remember

  1. A switch connects devices within a local network.
  2. Switches use MAC addresses to forward Ethernet frames.
  3. A MAC address table helps a switch locate connected devices.
  4. Network segmentation divides a network into smaller sections.
  5. VLAN means Virtual Local Area Network.
  6. Each VLAN normally forms a separate broadcast domain.
  7. An access port normally belongs to one VLAN.
  8. A trunk port can carry traffic from multiple VLANs.
  9. Inter-VLAN routing allows different VLANs to communicate.
  10. Network segmentation can improve organisation, performance and security.

24. Module Review Questions

Multiple-Choice Questions

1. What is the main purpose of a network switch?

  1. To print documents
  2. To connect devices within a local network
  3. To create computer games
  4. To charge computers

2. Which address does a Layer 2 switch normally use to forward frames?

  1. Email address
  2. Home address
  3. MAC address
  4. Website address

3. What does VLAN stand for?

  1. Virtual Local Area Network
  2. Very Large Access Network
  3. Visual Local Address Number
  4. Virtual Link Access Node

4. What is network segmentation?

  1. Deleting a network
  2. Dividing a network into smaller sections
  3. Switching off computers
  4. Changing a computer's wallpaper

5. Which port normally carries traffic for one VLAN?

  1. Access port
  2. Trunk port
  3. Power port
  4. Printer port

6. Which port can carry traffic from multiple VLANs?

  1. USB port
  2. Access port
  3. Trunk port
  4. Audio port

7. What does a MAC address table help a switch do?

  1. Store photographs
  2. Identify which ports can reach particular MAC addresses
  3. Connect to a television
  4. Increase screen brightness

8. What is normally needed for devices in different VLANs to communicate?

  1. A keyboard
  2. A printer
  3. A Layer 3 device
  4. A speaker

9. What does a broadcast domain describe?

  1. A group of devices that receive broadcast messages from one another
  2. A group of computer games
  3. A collection of printers
  4. A type of monitor

10. Which command displays VLAN information on many Cisco switches?

  1. show vlan brief
  2. show pictures
  3. open browser
  4. print document

Short Answer Questions

  1. What is a network switch?
  2. Explain what a MAC address is.
  3. What is the purpose of a MAC address table?
  4. Explain the difference between a switch and a router.
  5. What is network segmentation?
  6. What is a VLAN?
  7. List four benefits of VLANs.
  8. Explain the difference between an access port and a trunk port.
  9. What is inter-VLAN routing?
  10. Why might a school separate its administration network from its student network?

25. Practical Thinking Exercise

A school has 30 computers. Ten computers are used by teachers, ten by students and ten by administrators.

Answer these questions:

  1. How many departments are in the school network?
  2. How many VLANs could the school create if each department needs its own VLAN?
  3. Suggest a VLAN ID for each department.
  4. Why is it useful to separate the departments?
  5. What device could help the different VLANs communicate when permitted?

26. Final Module Summary

In this module, we learned that a network switch connects devices within a local network. It uses MAC addresses to help forward information to the correct devices.

We also learned about network segmentation and VLANs. These technologies help organisations divide large networks into smaller, more organised sections.

Access ports normally connect end devices to one VLAN, while trunk ports can carry traffic from multiple VLANs. When devices in different VLANs need to communicate, inter-VLAN routing makes this possible.

Remember: switches connect devices, VLANs organise network groups, and routers help different IP networks communicate.

End of Module Four

Congratulations! You have completed Module Four of Networking Basics Level Three.

In the next module, you will learn about wireless networking, Wi-Fi standards, wireless access points and wireless network security.

๐Ÿ† Get Certified

๐Ÿ”’

Earn this certificate

Every lesson is already free to read. Sign up, finish the lessons, pass the exam (โ‚ฆ2,000 or 20,000 coins), and get a verified certificate with your name on it.

๐ŸŽ“ Sign Up to Get Certified
๐Ÿ› ๏ธ Practice Tools
Hands-on simulators & labs - subscription required.
โ†’
๐ŸŽฏ Internship Tasks
Real-world tasks to build your portfolio - unlock them with a subscription.
โ†’