By the end of this lesson, you will:
Imagine a large office building with multiple departments (e.g., HR, Finance, IT). While everyone is connected to the same physical network, isolating traffic for each department improves security and performance. This is where VLANs come into play.
Virtual LANs (VLANs) allow logical segmentation of a physical network into smaller, isolated networks, and trunking enables communication between these VLANs across network devices.
configure terminal vlan 10 name HR vlan 20 name Finance vlan 30 name IT
interface FastEthernet0/1 switchport mode access switchport access vlan 10 interface FastEthernet0/2 switchport mode access switchport access vlan 20
interface GigabitEthernet0/1 switchport mode trunk switchport trunk allowed vlan 10,20,30
Scenario:
Task:
Scenario: Devices in VLAN 20 cannot communicate across switches.
Steps:
show vlan brief
show interfaces trunk
In the next chapter, we’ll explore Network Address Translation (NAT) and its role in enabling devices with private IPs to communicate on the Internet.
Your understanding of VLANs and trunking is growing—let’s keep building! 🚀