Introduction to Packet Tracer & Basic Switch Configurations
Technical Education Track – Computer Maintenance
Course: Computer Technology 4 (4–806)
Academic Level: Third Year – Semester 2
Academic Year: 2025/2026
Lesson: 4
Lesson Objectives
Upon completing this lesson, students should be able to:
Understand the fundamental operation modes of a network switch.
Configure basic switch settings, including device addressing.
Verify and troubleshoot basic switch configurations.
Apply configuration commands in the proper hierarchical sequence.
Part 1: The Switch as a Computer
1.1 Understanding Switch Architecture
A network switch operates as a specialized computer designed for packet
forwarding and network communication. It contains dedicated hardware
components and runs an operating system (Cisco IOS).
Instructor Insight: Think of a switch as a traffic director for network data,
with specialized hardware optimized for making forwarding decisions at wire
speed.
1.2 Switch Components and Their Functions
Componen
Function Volatility Learning Note
t
Executes operating The "brain" –
CPU N/A
system instructions processes commands
Running configuration Volatile (lost on Temporary working
RAM
and routing table power-off) memory
POST diagnostics and
ROM Non-volatile Firmware for startup
bootstrap program
Persistent
NVRAM Startup configuration Non-volatile
configuration storage
Flash Cisco IOS operating Operating system
Non-volatile
Memory system storage
Device connection
Interfaces Physical network ports N/A
points
1.3 Switch Boot-Up Process
The switch follows a systematic sequence during startup, similar to a
computer booting its operating system.
Process Flow:
1. POST Execution – Hardware diagnostic testing.
2. Bootstrap Loading – Initial program execution from ROM.
3. IOS Location and Loading – Operating system retrieved from flash
memory.
4. Configuration File Loading – Startup configuration loaded from
NVRAM.
Learning Pathway: This sequence ensures hardware is functional before
loading software, then applies configurations.
Verification Command:
show version
Displays platform model, IOS version, bootstrap version, interface details,
and memory capacity.
Part 2: Switch Configuration Modes
2.1 Understanding Mode Hierarchy
Mode Prompt Access Level Practical Use
Limited (view-
User EXEC switch> Basic monitoring
only)
Full view, limited Advanced
Privileged EXEC switch#
config troubleshooting
Global System-wide Hostname,
switch(config)#
Configuration changes passwords
Interface switch(config-
Port-level settings IP, duplex
Configuration if)#
switch(config-
Line Configuration Access control Console, VTY
line)#
2.2 Navigation Commands
enable
configure terminal
interface [type/number]
line [console | vty]
exit
end
Teaching Strategy: Have students practice mode transitions until they
become automatic.
Part 3: Basic Switch Configuration
3.1 Configuration Philosophy
A minimal but secure switch configuration follows these principles:
1. Identification – Unique hostname for management.
2. Security – Access control using passwords and banners.
3. Connectivity – Proper addressing for network access.
4. Persistence – Saving configurations to survive reboots.
3.2 Step-by-Step Configuration Guide
Phase 1: Device Identification and Security
Switch# configure terminal
Switch(config)# hostname SW1
SW1(config)# banner motd #Unauthorized Access Prohibited#
Instructor Note: The banner appears before login and is important for legal
compliance.
Phase 2: Access Control
SW1(config)# enable secret class
! Console access protection
SW1(config)# line console 0
SW1(config-line)# password cisco
SW1(config-line)# login
SW1(config-line)# exit
! Remote access protection
SW1(config)# line vty 0 4
SW1(config-line)# password cisco
SW1(config-line)# login
SW1(config-line)# exit
! Encrypt all plain-text passwords
SW1(config)# service password-encryption
Security Best Practice: Always use enable secret rather than enable
password when possible.
Phase 3: Network Connectivity
! Default gateway for remote management
SW1(config)# ip default-gateway [Link]
! Disable time-consuming DNS lookups
SW1(config)# no ip domain-lookup
! Management interface configuration
SW1(config)# interface vlan99
SW1(config-if)# ip address [Link] [Link]
SW1(config-if)# no shutdown
SW1(config-if)# exit
Concept Reinforcement: The default gateway is the switch’s exit point to
other networks.
Phase 4: Configuration Persistence
SW1# copy running-config startup-config
! OR
SW1# write memory
Critical Reminder: Unsaved configurations are lost on reboot.
Part 4: Port Configuration and Network Concepts
4.1 Duplex Communication Understanding
Simultaneo
Mode Direction Typical Use Common Issues
us
Half- Bidirection
No Legacy hubs Collisions
Duplex al
Full- Bidirection Modern Device
Yes
Duplex al switches compatibility
Technical Note: Gigabit Ethernet and 10Gb Ethernet require full-duplex
operation.
4.2 Auto-MDIX Technology
Automatically detects straight-through or crossover cables.
Internally adjusts pin configuration.
Eliminates manual cable selection.
Verification Command:
show controllers ethernet-controller
4.3 Port Verification Methodology
! Comprehensive port analysis
show interfaces [interface-id]
! Quick status overview
show ip interface brief
Troubleshooting Framework:
1. Layer 1 – Physical connectivity and carrier detect.
2. Layer 2 – Protocol and data-link status.
3. Layer 3 – IP addressing and network reachability.
Part 5: Verification and Troubleshooting System
5.1 Essential Verification Commands
Command Primary Use Key Information
Current
show running-config Active configuration
settings
Saved Configuration loaded on
show startup-config
settings boot
Layer 1 and Layer 2
show interfaces Port status
health
show ip interface
Overview IP status summary
brief
show version System info IOS, hardware, uptime
show mac-address- Switching
MAC-to-port mappings
table data
5.2 Systematic Verification Approach
1. Apply configuration in the correct mode.
2. Verify using the appropriate show command.
3. Test functionality.
4. Save changes after confirmation.
5. Document the configuration.
Learning Activities and Assessment
Activity 1: Component Location Mastery
Startup configuration: NVRAM
IOS operating system: Flash Memory
Bootstrap program: ROM
Routing table: RAM
Diagnostic software (POST): ROM
Running configuration: RAM
Activity 2: Command Syntax Proficiency
Plain-text EXEC password: enable password class
Encrypted EXEC password: enable secret class
Set hostname: hostname SW1
Configure banner MOTD: banner motd # message #
Default gateway: ip default-gateway [Link]
Encrypt passwords: service password-encryption
Display MAC table: show mac-address-table
Check interface f0/1: show interface f0/1
Simultaneous send/receive: full-duplex
Accept straight/crossover cables: auto-mdix
Activity 3: Mode Recognition and Verification
Global configuration prompt: Switch(config)#
Command to change switch name: hostname
Interface configuration prompt: Switch(config-if)#
Display startup configuration: show startup-config
Show hardware/software information: show version
Save running configuration: copy running-config startup-config