Switch configuration is a fundamental part of network infrastructure. Switches operate mainly at Layer 2 of the OSI model and are responsible for connecting devices within a local area network (LAN). Proper switch configuration ensures efficient traffic management, network segmentation using VLANs, and secure communication between devices.
In enterprise networks such as the Smart Campus architecture, switches are typically organized into three hierarchical layers:
Access Layer
Distribution Layer
Core Layer
Each layer has a specific role in the network design.
Modern campus networks follow a hierarchical design to improve scalability, performance, and manageability.
The Access Layer is the point where end devices connect to the network.
Examples of connected devices:
PCs
Printers
IP Phones
IoT devices
Wireless Access Points
Access switches typically perform the following functions:
Assign devices to VLANs
Provide port security
Control user access to the network
Example configuration for assigning ports to a VLAN:
interface range fa0/1-24
switchport mode access
switchport access vlan 10
Explanation:
interface range fa0/1-24: Selects multiple switch ports at once.
switchport mode access: Sets the ports to access mode so they belong to a single VLAN.
switchport access vlan 10: Assigns the ports to VLAN 10.
The Distribution Layer connects the Access Layer switches to the Core Layer and performs policy-based control.
Typical responsibilities include:
Routing between VLANs
Applying security policies
Aggregating multiple access switches
Managing traffic between different network segments
Common configurations include:
VLAN trunking
Inter-VLAN routing
Access Control Lists (ACLs)
Example trunk configuration:
interface gig0/1
switchport mode trunk
switchport trunk allowed vlan 10,20,30
Explanation:
switchport mode trunk: Allows multiple VLANs to pass through the link.
switchport trunk allowed vlan: Specifies which VLANs can travel across the trunk link.
The Core Layer is the backbone of the network and is responsible for high-speed data transport between distribution switches.
Core switches focus on:
Fast packet forwarding
High availability
Redundant paths
Minimal processing delay
The core layer typically avoids complex configurations to maintain maximum performance.
Key characteristics:
High bandwidth
Redundant links
Low latency
Click the links below to view the specific Cisco commands and configurations for each layer of the Smart Campus network: