Page Nav

HIDE

Grid

GRID_STYLE

Getting Started with Cisco Packet Tracer: A Complete Beginner's Guide

Cisco Packet Tracer is the free network simulator that almost every CCNA student starts with, and most of the labs on this blog are built in...

Cisco Packet Tracer is the free network simulator that almost every CCNA student starts with, and most of the labs on this blog are built in it. In this guide I take you from download to your first working network: installing Packet Tracer 8.x, understanding the workspace, choosing the right cables, reading link lights, configuring a router from the CLI, and watching packets move in simulation mode. If you have never opened Packet Tracer before, follow along from top to bottom and you will finish with a small network that really works.

What Packet Tracer is (and is not)

Packet Tracer is a simulator developed by Cisco for the Networking Academy. It does not run real Cisco IOS; it imitates IOS behavior closely enough for CCNA-level work. That makes it light (it runs well on a basic laptop) and easy to use, but it also means some commands and features are missing.

TopicPacket TracerGNS3 / Cisco Modeling Labs
How it worksSimulation of IOSEmulation of real IOS/IOS XE images
CostFree with a Networking Academy accountGNS3 free (you supply images); CML is paid
Hardware needsLowMedium to high (RAM and CPU per router)
Command coverageMost CCNA commandsEverything the real image supports
ExtrasSimulation mode, IoT devices, activities with gradingConnect to real networks, Wireshark on any link
Best forCCNA study and first labsAdvanced labs, automation, CCNP and above

My advice: learn the basics in Packet Tracer, and move to GNS3 when a lab needs a feature Packet Tracer does not support. I say clearly in each lab post which platform it needs.

Download and install

  1. Go to the Cisco Networking Academy website (netacad.com) and create a free account.
  2. Enroll in the free self-paced course Getting Started with Cisco Packet Tracer. Enrolling unlocks the download page.
  3. Download the installer for your system. Packet Tracer 8.x is available for 64-bit Windows 10/11, Ubuntu (a .deb package) and macOS.
  4. Run the installer and accept the defaults. On Ubuntu, install with sudo apt install ./CiscoPacketTracer_<version>_Ubuntu_64bit.deb from the download folder.
  5. On first launch, sign in with your Networking Academy account. After that, you can usually work offline for a while before it asks you to sign in again.

Only download Packet Tracer from Cisco. Copies on file-sharing sites are often outdated or bundled with malware.

A tour of the workspace

When Packet Tracer opens you see a large empty white area, the logical workspace, where you place and connect devices. Around it are the parts you will use every day:

AreaWhereWhat it is for
Logical / Physical tabsTop left of the workspaceLogical shows the topology; Physical shows cities, buildings, racks and cable lengths
Tools barNear the topSelect, Inspect, Delete, Resize, Place Note, Draw, Add Simple PDU, Add Complex PDU
Device-type selectionBottom leftCategories: Network Devices (routers, switches, wireless, security), End Devices, Components, Connections, Miscellaneous, Multiuser
Device-specific selectionBottom, next to the categoriesThe actual models, for example 1941, 2911, 4321 routers and 2960, 3560 switches
Realtime / Simulation tabsBottom rightSwitch between live operation and step-by-step packet animation

Click any device in the workspace and a window opens with tabs. Routers and switches have Physical (power switch and module slots), Config (a simple GUI for basic settings) and CLI. PCs have Desktop, where you find IP Configuration, Command Prompt, Web Browser and other tools. Servers add a Services tab for HTTP, DHCP, DNS, AAA, FTP and more.

A tip for learning: when you change a setting on a router's Config tab, the equivalent IOS command is printed in the box at the bottom of the window. It is a nice way to discover the CLI syntax, but practice typing in the CLI tab, because that is what the exam and real jobs expect.

Cables and link lights

Click the Connections category (the lightning bolt) to see the cable types:

CableUse it for
Automatically Choose Connection TypePacket Tracer picks for you. Handy, but learn the real rules too
ConsolePC RS-232 port to router or switch Console port
Copper Straight-ThroughDifferent device types: PC to switch, switch to router
Copper Cross-OverSimilar device types: switch to switch, router to router, PC to router, PC to PC
FiberFiber ports (SFP modules, FastEthernet/Gigabit fiber)
Serial DCE / Serial DTESerial WAN links between routers; the DCE end provides the clock

Once a cable is connected, the small triangles at each end tell you its state:

  • Green – the link is up.
  • Amber/orange – the switch port is up but Spanning Tree is still in listening/learning (about 30 seconds), or the port is blocking. Wait, or click Fast Forward Time.
  • Red – the link is down: the interface is shut down, the wrong cable is used, or the device is powered off.

Router interfaces are administratively down by default, so a new router link always shows red until you type no shutdown. Switch ports are up by default.

Your first lab: two PCs, a switch and a router

Let us build a small LAN with a default gateway. Place these devices and connect them:

PC0 PC1 SW1 (2960) R1 (2911) Fa0 Fa0/1 Fa0 Fa0/2 G0/1 G0/0 192.168.1.10/24 GW .1 192.168.1.11/24 GW .1 192.168.1.1/24 LAN 192.168.1.0/24
Figure: Your first Packet Tracer topology
DevicePortConnects toIP address / gateway
PC0Fa0SW1 Fa0/1 (straight-through)192.168.1.10/24, GW 192.168.1.1
PC1Fa0SW1 Fa0/2 (straight-through)192.168.1.11/24, GW 192.168.1.1
SW1 (2960-24TT)G0/1R1 G0/0 (straight-through)No IP needed for this lab
R1 (2911)G0/0SW1 G0/1192.168.1.1/24

Step 1: Place and connect the devices

  1. From Network Devices > Routers drag a 2911 into the workspace. From Switches drag a 2960. From End Devices drag two PCs.
  2. Click a device's label to rename it (R1, SW1, PC0, PC1). The label is only a name on the diagram; the hostname is set in the CLI.
  3. Choose Copper Straight-Through, click PC0, choose FastEthernet0, then click SW1 and choose FastEthernet0/1. Repeat for PC1 to Fa0/2 and for SW1 GigabitEthernet0/1 to R1 GigabitEthernet0/0.

The PC links turn amber and then green after Spanning Tree finishes. The link to R1 stays red, because the router interface is still shut down.

Step 2: Configure the PCs

On PC0 open Desktop > IP Configuration, keep Static selected, and enter IPv4 Address 192.168.1.10, Subnet Mask 255.255.255.0 and Default Gateway 192.168.1.1. Do the same on PC1 with 192.168.1.11.

Step 3: Configure the router in the CLI

Click R1, open the CLI tab and press Enter. If you ever see "Would you like to enter the initial configuration dialog?", type no.

Router> enable
Router# configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)# hostname R1
R1(config)# interface gigabitEthernet0/0
R1(config-if)# ip address 192.168.1.1 255.255.255.0
R1(config-if)# no shutdown

%LINK-5-CHANGED: Interface GigabitEthernet0/0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/0, changed state to up
R1(config-if)# end
R1# copy running-config startup-config
Destination filename [startup-config]?
Building configuration...
[OK]

Notice how the prompt changes: > is user EXEC mode, # is privileged EXEC mode, (config)# is global configuration and (config-if)# is interface configuration. Press Tab to complete a command, and type ? to see what can come next. copy running-config startup-config saves the configuration so it survives a reload.

Verify the lab

R1# show ip interface brief
Interface              IP-Address      OK? Method Status                Protocol
GigabitEthernet0/0     192.168.1.1     YES manual up                    up
GigabitEthernet0/1     unassigned      YES unset  administratively down down
GigabitEthernet0/2     unassigned      YES unset  administratively down down
Vlan1                  unassigned      YES unset  administratively down down

Status up and Protocol up on G0/0 mean the interface is working. Now open Desktop > Command Prompt on PC0:

C:\>ping 192.168.1.1

Pinging 192.168.1.1 with 32 bytes of data:

Request timed out.
Reply from 192.168.1.1: bytes=32 time<1ms TTL=255
Reply from 192.168.1.1: bytes=32 time<1ms TTL=255
Reply from 192.168.1.1: bytes=32 time<1ms TTL=255

Ping statistics for 192.168.1.1:
    Packets: Sent = 4, Received = 3, Lost = 1 (25% loss),
Approximate round trip times in milli-seconds:
    Minimum = 0ms, Maximum = 0ms, Average = 0ms

The first ping often times out while PC0 and R1 resolve each other's MAC addresses with ARP. That is normal; run the ping again and all four replies arrive. Also ping PC1 (192.168.1.11) from PC0 to test the switch.

Watching packets in simulation mode

Simulation mode is the feature that makes Packet Tracer special for learning. It freezes time so you can watch each packet hop by hop.

  1. Click the Simulation tab at the bottom right. The Simulation Panel opens with an Event List.
  2. Click Edit Filters and leave only ICMP and ARP selected, so the list is not flooded with STP and CDP frames.
  3. Choose Add Simple PDU (the closed envelope in the tools bar), click PC0 and then PC1.
  4. Click Capture/Forward to move one step at a time, or Play to animate.
  5. Click any envelope in the workspace or any row in the Event List to open the PDU details. The OSI Model tab explains what each layer did, and the inbound/outbound PDU tabs show the frame and packet headers.

If you clear the ARP cache on PC0 first (arp -d in its Command Prompt), you will see the ARP broadcast flood out of every switch port, the unicast ARP reply, and then the ICMP echo request and reply. Watching this once teaches more than reading about it ten times.

Habits that save time

  • Save often with File > Save As. Your work is a .pkt file. Graded Networking Academy activities use .pka files and show your score in the Activity Results window.
  • Use the Physical tab carefully. To add a module (for example an HWIC-2T serial card), turn the device off with its power switch first. When it powers back on, it loads the startup-config, so anything you did not save with copy running-config startup-config is lost.
  • Use Fast Forward Time (the button next to the Realtime clock) instead of waiting for Spanning Tree or routing protocols to converge.
  • Add notes with Place Note to label subnets and VLANs on your diagram.
  • Turn on port labels in Options > Preferences (Always Show Port Labels in Logical Workspace) so you always see which interface a cable uses.

Common beginner mistakes

  • Router link stays red. You forgot no shutdown on the router interface.
  • Ping fails between PCs. A typo in an IP address or subnet mask. Run ipconfig on each PC and compare.
  • Ping to the router fails but PCs reach each other. Wrong gateway on the PC, or the router interface is in a different subnet.
  • Wrong cable. Router to switch is straight-through; router to PC directly is cross-over.
  • Typing commands in the wrong mode. ip address belongs under the interface, not in global config.
  • "% Invalid input detected" for a real command. Packet Tracer does not support every IOS command. Check the command in the help (?) or move that lab to GNS3.

Summary

You installed Packet Tracer from Cisco Networking Academy, learned the workspace, the cable types and the meaning of link lights, configured a router from the CLI, verified it with show ip interface brief and ping, and watched ARP and ICMP in simulation mode. With these skills you can follow every Packet Tracer lab on this blog. A good next step is basic router security (passwords and SSH), then VLANs and subnetting.

Prefer video? Watch more hands-on labs on the Technical Hakim YouTube channel.

Related tutorials

  • Basic Cisco Router Setup: Hostname, Passwords, Banner and SSH
  • Configuring Static VLANs on a Cisco Switch (Packet Tracer Lab)
  • Subnetting Made Simple: /24 to /30 with Worked Examples
  • Network Troubleshooting with ping, traceroute and show Commands
  • How to Install and Set Up GNS3 on Windows: Beginner's Guide
  • CCNA Lab Practice: 25 Hands-On Tasks with Answers

Sources

  • Cisco Networking Academy – Getting Started with Cisco Packet Tracer (course)
  • Cisco Packet Tracer 8.x Help Files and Tutorials (built into the application under Help)
  • Cisco IOS Interface and Hardware Component Configuration Guide
  • IEEE 802.1D – Spanning Tree Protocol (port states and timers)

No comments