Skip to lesson
Lab setup

STAGE 01 • START FROM ZERO

Packet Tracer setup and Cisco IOS command modes

Create a two-PC switched network, configure IPv4 addresses, use Cisco IOS command modes, and verify connectivity with ping.

Beginner level • Hands-on lesson • Self-paced

THE NETWORK YOU’LL BUILD
PC 1
Switch
PC 2
One local network · 192.168.10.0/24
01

GET SET UP

Build your practice lab

Cisco Packet Tracer lets you practise with simulated networking devices. Install it using Cisco’s instructions, then open a new file.

Packet Tracer installation guide PDF ↗ (opens in a new tab)
  1. Place your devices

    Add two PCs and one switch to your workspace.

  2. Connect the network

    Connect each PC to a switch Ethernet port using the appropriate copper connection.

  3. Give each PC an address

    Open each PC’s IP configuration and enter the settings below.

PC 1
IP address
192.168.10.10
Subnet mask
255.255.255.0
PC 2
IP address
192.168.10.20
Subnet mask
255.255.255.0
Why no default gateway?

Both PCs are on the same local subnet, so they can communicate directly through the switch. Save your file before experimenting.

Device models, menus and supported commands vary by version. A simulator is useful practice, but it does not reproduce every behaviour of a real network.

02

COMMAND MODES

Understand the command prompt

The characters before your cursor tell you which mode you’re in. The same command may work in one mode and be unavailable in another.

Switch>
User EXEC

Limited viewing mode. Enter enable to move up.

Switch#
Privileged EXEC

Run most show commands here.

Switch(config)#
Global configuration

Enter with configure terminal.

Switch(config-if)#
Interface configuration

Configure the interface you selected.

Cisco IOS mode transitions

Open the switch’s CLI. Press Enter if needed, then type the commands after each prompt.

Cisco IOS · switch CLI
Switch> enable


Switch# configure terminal


Enter configuration commands, one per line. End with CNTL/Z.


Switch(config)# end


Switch# show version

Example session · prompts are shown for context and are excluded when copying.

Type the command, not the prompt.

Switch# and R1# tell you where you are; don’t paste them into the terminal. Use show version to record your device model and software.

exitMove up one mode

endReturn to privileged mode

?See available help

03

TEST THE CONNECTION

Test the connection with ping

On PC 1, open Desktop → Command Prompt. Test whether you can reach PC 2.

Packet Tracer · PC 1 command prompt
C:\> ping 192.168.10.20

Example session · prompts are shown for context and are excluded when copying.

  1. Observe: Allow address learning to settle, then repeat the ping. Record the result.
  2. Break the path: Disconnect one cable and ping again. What changed?
  3. Investigate: Reconnect the cable, generate traffic, and inspect the switch’s learned addresses.
Cisco IOS · privileged EXEC
Switch# show mac address-table

Example session · prompts are shown for context and are excluded when copying.

Reveal the explained answer

With matching addresses and active links, the PCs should communicate after address learning settles. Disconnecting a cable removes the path.

The MAC table learns source addresses on the connected switch ports. Exact addresses and output vary by device and version.

04 / QUICK KNOWLEDGE CHECK

Check your understanding

Where do you normally run show ip interface brief?

05

FURTHER PRACTICE

Related labs and exercises

Sources & content checks

Technical references checked on 25 October 2026. These are original teaching explanations, not official Cisco course material.

YOUR PROGRESS

Lesson completion

Mark this lesson complete after you can explain the prompts and complete the ping exercise.