cisco Cisco Networking Beginner Guide
New to Cisco IOS / Packet Tracer? Start here first.
Welcome! This guide is for club members who have never opened Packet Tracer or a router's command line before. It walks through the core ideas and commands you need for the CyberPatriot Cisco Networking module, explaining why each thing matters, not just what to type. It's meant to be read once, start to finish, in about 20-30 minutes — then used as a reference during practice.
If you want the full, exhaustive reference with every command and advanced hardening technique, see the master checklist (Cisco_Networking_Master_Checklist.md) once you're comfortable with the basics here.
Table of Contents#
- What Even Is This Module?
- Save Often: Your Safety Net
- Networking 101: Routers, Switches, and Why We Secure Them
- The Command-Line "Levels" (Modes)
- Your First Commands: Hostname and Basic Navigation
- Locking the Front Door: Enable Secret & Password Encryption
- Banner: The "No Trespassing" Sign
- Securing Console and VTY (Remote Access) Lines
- SSH: Secure Remote Login
- Port Security: Locking Down Switch Ports
- Shutting Down Unused Ports
- Access Control Lists (ACLs): Traffic Bouncers
- Saving Your Work for Real
- Checking Your Work:
showCommands - Golden Rules for the Competition
- Appendix: OSI Model, Simplified
- Appendix: Subnetting, Simplified
1. What Even Is This Module?#
In this CyberPatriot category, you're given a Packet Tracer file — a simulated network with routers, switches, computers, and sometimes servers — plus a list of questions and tasks. Some tasks ask you to type commands into a device to secure it (set a password, block unwanted traffic, etc.). Others are just written/multiple-choice questions about networking concepts.
Unlike the Windows/Linux competition images, this isn't a program silently scoring you in the background the whole time — it's closer to a guided worksheet: read a question, do the task, move to the next one.
Beginner tip: Don't panic if a command doesn't work the first time. Typos are extremely common when you're new to the CLI (command-line interface). Read the error message, check your spelling and spacing, and try again — nothing bad happens from a rejected command.
2. Save Often: Your Safety Net#
Before you type a single configuration command, learn this habit — it will save you more grief than any single security setting.
Save-As Before You Start#
In Packet Tracer, go to File → Save As and save the .pkt file under a new name (e.g., Practice1_start.pkt) before you make any changes. Then save-as again under a new incrementing name after each big step (e.g., Practice1_v1.pkt, Practice1_v2.pkt). If you accidentally break something — lock yourself out of a device, cut off connectivity — you can simply close without saving and reopen your last good version instead of starting the whole exercise over.
On the routers/switches themselves, get in the habit of typing copy running-config startup-config (explained in Section 13) often, not just at the very end. Devices can lose all unsaved configuration if they restart.
Things to remember#
- Save-As a new
.pktfilename before you begin. - Save-As again after finishing each major section below.
- Run
copy running-config startup-configon a device after you finish configuring it, not only at the end of the whole exercise.
3. Networking 101: Routers, Switches, and Why We Secure Them#
Before touching any commands, it helps to know what the devices in front of you actually do.
- A switch connects devices within the same local network (for example, all the computers in one room or building) and forwards data based on MAC addresses (a unique hardware ID burned into every network card). Think of a switch as a mail sorter for one building.
- A router connects different networks together (for example, your local network to the internet, or one VLAN to another) and forwards data based on IP addresses. Think of a router as the post office that routes mail between different buildings/cities.
- A hub (rarely used today) is a dumb, older device that just repeats every signal to every port — no intelligence, no addressing. You likely won't configure one, but you may be asked a conceptual question about it.
Why do we secure these devices at all? Routers and switches are the "front door" of a network — whoever controls them can see, redirect, or block all the traffic passing through. A misconfigured or unsecured router/switch (default passwords, open remote access, no traffic filtering) is one of the easiest ways for an attacker to compromise an entire network. That's exactly what this module is testing you on: can you find and fix those weaknesses?
4. The Command-Line "Levels" (Modes)#
Cisco devices don't give you full control the instant you connect — you move through a series of "modes," each unlocking more power and more commands. This is similar in spirit to how a regular user account on a computer can't install software, but an administrator account can.
The prompt (the text right before your cursor) always tells you which mode you're in:
| Mode | What it looks like | How you get there | What you can do |
|---|---|---|---|
| User EXEC | Router> |
This is where you start | Almost nothing — just basic viewing commands |
| Privileged EXEC | Router# |
Type enable from User EXEC |
Full visibility into the device (but not editing yet) |
| Global Configuration | Router(config)# |
Type configure terminal from Privileged EXEC |
Change device-wide settings (hostname, passwords, banners) |
| Interface Configuration | Router(config-if)# |
Type interface <name> from Global Config |
Change settings on one specific port/interface |
| Line Configuration | Router(config-line)# |
Type line console 0 or line vty 0 15 from Global Config |
Change settings for how people log into the device |
Router> enable
Router# configure terminal
Router(config)# interface gigabitEthernet0/0
Router(config-if)# exit
Router(config)# line console 0
Router(config-line)# exit
Router(config)# exit
Router#
Why does "privileged" mode exist and why is it locked behind enable? It's a safety gate. User EXEC mode lets anyone connected do harmless things like check status, but anything that could change the device's behavior — and therefore its security — requires proving you're an authorized administrator first. That's the entire idea behind the password you'll set on enable in Section 6.
Useful navigation commands#
enable (go from User EXEC into Privileged EXEC)
disable (go back down to User EXEC)
configure terminal (go from Privileged EXEC into Global Config)
exit (go up/out one level)
end (jump straight back to Privileged EXEC from anywhere — shortcut)
Beginner tip: If you're not sure what mode you're in, just look at the prompt.
>= User EXEC,#= Privileged EXEC,(config)#= Global Config,(config-if)#= Interface Config. When in doubt, typeendto jump back to a mode you recognize (Privileged EXEC) and start again.
5. Your First Commands: Hostname and Basic Navigation#
Giving the device a real name (instead of the generic default Router or Switch) is usually the very first configuration task, and it's required later for SSH to work.
Router> enable
Router# configure terminal
Router(config)# hostname R1
R1(config)#
Notice the prompt itself changed from Router(config)# to R1(config)# the instant you set the hostname — that's normal and expected.
Helpful shortcuts while typing#
Tab— auto-completes a command you've started typing (e.g., typingconfthen pressing Tab completes it toconfigure).?— typed by itself, or right after a partial word, shows you what commands/options are valid right now. Use this constantly while learning; it's not cheating, it's how the CLI is designed to be used.Ctrl+Z— jumps straight back to Privileged EXEC mode from anywhere, same as typingend.
6. Locking the Front Door: Enable Secret & Password Encryption#
Remember from Section 4 — Privileged EXEC mode (where all the real configuration power lives) is locked behind the enable command. Right now, anyone could type enable and get in with no password at all. Let's fix that.
R1(config)# enable secret Str0ngP@ss!
There are two similar-looking commands — always use enable secret, never enable password:
enable secret— stores the password encrypted (hashed) in the configuration. Even if someone views the config file, they can't easily read the real password back out. Use this one.enable password— stores the password as plain, readable text (or only weakly scrambled). Anyone who can see the configuration can read the password directly. Avoid this one.
Next, encrypt any other passwords you set (like line passwords) so they're not sitting in plain text in the config either:
R1(config)# service password-encryption
Try it#
Router> enable
Router# configure terminal
Router(config)# hostname R1
R1(config)# enable secret Str0ngP@ss!
R1(config)# service password-encryption
- Set
enable secret(neverenable password) on every router and switch. - Run
service password-encryptionon every device.
7. Banner: The "No Trespassing" Sign#
A banner is a message displayed to anyone connecting to the device, before they even log in. In real networking (and in this competition), you're expected to display a legal warning notice — not a friendly greeting.
R1(config)# banner motd #AUTHORIZED ACCESS ONLY. ALL ACTIVITY IS MONITORED AND LOGGED.#
motdstands for "Message Of The Day."- The
#symbols mark the start and end of your message — you can use any character that doesn't appear inside your message itself.
Beginner tip: Never write a welcoming banner like "Welcome to Router1!" A friendly greeting can be read as an invitation for anyone (including someone who shouldn't be there) to log in. Warning banners should sound like a "No Trespassing" sign, not a "Welcome Mat."
- Set a legal warning banner (
banner motd) on every device.
8. Securing Console and VTY (Remote Access) Lines#
There are two main ways someone logs into a router or switch:
- Console — a direct physical/cable connection (in real life, a cable plugged straight into the device). In Packet Tracer, this is like connecting a PC to the device with a console cable.
- VTY (Virtual Teletype) — remote access over the network, using Telnet or SSH, as if you were connecting from across the building (or across the internet).
Both need a password, or nobody protects your device even after you've locked enable.
R1(config)# line console 0
R1(config-line)# password ConsoleP@ss
R1(config-line)# login
R1(config-line)# exec-timeout 5 0
R1(config-line)# exit
password <text>sets what the line will ask for.logintells the device to actually require that password before letting someone in (withoutlogin, the password you set is ignored!).exec-timeout 5 0automatically disconnects an idle session after 5 minutes 0 seconds — so a login left open unattended doesn't stay open forever.
Checkpoint: If you're connected to the device remotely (over Telnet/SSH) rather than through the console, a mistake in this section can accidentally disconnect your own session. Save your
.pktfile first (see Section 2), and double-check your commands before pressing Enter.
VTY lines work almost the same way, but there can be several of them (commonly numbered 0 through 4, or 0 through 15) — make sure you configure all of them, not just the first few:
R1(config)# line vty 0 15
R1(config-line)# password VtyP@ss
R1(config-line)# login
R1(config-line)# exec-timeout 5 0
R1(config-line)# exit
- Set a password +
loginonline console 0. - Set a password +
loginon the full VTY range (e.g.,line vty 0 15). - Set
exec-timeouton both.
9. SSH: Secure Remote Login#
Telnet (the classic way to remotely log into a device) sends everything — including your password — as plain, unencrypted text over the network. Anyone "listening" on that network could read your password directly. SSH (Secure Shell) does the same job but encrypts everything, so it's the standard we always use instead.
Setting up SSH requires a few pieces in a specific order:
Router> enable
Router# configure terminal
Router(config)# hostname R1
R1(config)# ip domain-name cyberpatriot.local
R1(config)# username admin privilege 15 secret Str0ngP@ss!
R1(config)# crypto key generate rsa modulus 1024
R1(config)# ip ssh version 2
R1(config)# line vty 0 15
R1(config-line)# login local
R1(config-line)# transport input ssh
R1(config-line)# exec-timeout 5 0
R1(config-line)# exit
What each piece does:
hostnameandip domain-name— SSH keys are generated using the device's name and domain, so both must be set first.username admin privilege 15 secret ...— creates an actual user account (with a proper hashed password) that people log in as, instead of everyone sharing one line password.crypto key generate rsa modulus 1024— generates the encryption key pair SSH needs to work. (You'll see2048used in more advanced material — a larger number is more secure but takes a bit longer to generate; either works for learning.)ip ssh version 2— makes sure the device uses the modern, more secure version of SSH.login local— tells the VTY lines to check the username database (the account you just created) instead of one shared line password.transport input ssh— this is the important security step: it tells the VTY lines to accept only SSH connections, and refuses Telnet entirely.
Beginner tip: If you skip
transport input ssh, the device may still quietly accept unencrypted Telnet connections even though you've set up SSH. Always explicitly turn Telnet off this way.
- Set
hostnameandip domain-namebefore generating keys. - Create a real user account with
secret(notpassword). - Generate the RSA key and enable
ip ssh version 2. - Set
login localandtransport input sshon the VTY lines.
10. Port Security: Locking Down Switch Ports#
Imagine someone walks up to an empty network jack in a wall and plugs in their own laptop. If that port is active and untouched, they're instantly on your network. Port security limits which/how many devices are allowed to use a given switch port.
Switch(config)# interface fastEthernet0/1
Switch(config-if)# switchport mode access
Switch(config-if)# switchport port-security
Switch(config-if)# switchport port-security maximum 1
Switch(config-if)# switchport port-security mac-address sticky
Switch(config-if)# switchport port-security violation shutdown
Switch(config-if)# exit
What each line means:
switchport mode access— tells the switch this port connects to a single end device (like a PC), not another switch.switchport port-security— turns the feature on for this port.switchport port-security maximum 1— only 1 device (1 MAC address) is allowed to use this port at a time.switchport port-security mac-address sticky— instead of you typing in the exact allowed MAC address by hand, the switch automatically "remembers" the first device it sees on this port and locks it in.switchport port-security violation shutdown— if a different device tries to use this port (like someone unplugging the real PC and plugging in their own laptop), the port automatically shuts itself off.
You can apply this to a whole range of ports at once instead of typing it repeatedly:
Switch(config)# interface range fastEthernet0/1 - 9
Switch(config-if-range)# switchport mode access
Switch(config-if-range)# switchport port-security
Switch(config-if-range)# switchport port-security maximum 1
Switch(config-if-range)# switchport port-security mac-address sticky
Switch(config-if-range)# switchport port-security violation shutdown
Switch(config-if-range)# exit
- Apply port security to every switch port that has a real device (PC, printer, etc.) plugged into it.
11. Shutting Down Unused Ports#
Any switch or router port with nothing legitimately connected to it should simply be turned off. An open, active, unused port is free network access for anyone who finds it.
Switch(config)# interface range fastEthernet0/10 - 24
Switch(config-if-range)# shutdown
Switch(config-if-range)# description UNUSED_DISABLED
Switch(config-if-range)# exit
shutdownadministratively turns the port off (as opposed tono shutdown, which turns a port on).descriptionjust labels the port with a note for yourself/other admins — it doesn't affect security directly, but it makes your work easy to review later.
Beginner tip: Look at the topology diagram in Packet Tracer and compare it against the switch's ports. Any port with no cable drawn to a device is a candidate to be shut down. This is one of the fastest, easiest wins in the whole exercise.
- Identify every unused port on every switch and router in the topology.
-
shutdowneach one.
12. Access Control Lists (ACLs): Traffic Bouncers#
Concept first, syntax second. An ACL (Access Control List) is like a bouncer's list at a club door: a set of rules, checked in order from top to bottom, that decide whether a piece of network traffic is allowed through or turned away. Once traffic matches a rule, the router stops checking further rules and either lets it through (permit) or blocks it (deny).
There's one critical rule to memorize:
Every ACL has an invisible final rule: "deny everything else." Even if you never type it, it's always there at the end. If you write an ACL with only
denyrules and nopermitrule, you will block all traffic — including traffic you meant to allow.
There are two basic kinds:
- Standard ACL — can only look at where traffic is coming from (source address). Simple, but less precise.
- Extended ACL — can look at where it's coming from AND going to, plus the type of traffic (e.g., web browsing vs. email). More precise, more commonly used for specific rules.
A simple standard ACL example#
R1(config)# access-list 10 permit 192.168.1.0 0.0.0.255
R1(config)# access-list 10 deny any
This says: "allow any device in the 192.168.1.0 network through, and block everything else." That odd-looking 0.0.0.255 is called a wildcard mask — it's almost the reverse of a subnet mask, and it tells the router which part of the address must match exactly and which part can be anything. Wildcard masks are covered in more depth in the master checklist once you're ready.
Applying the ACL to an interface#
Writing an ACL doesn't do anything by itself — you have to tell the router where to use it:
R1(config)# interface gigabitEthernet0/0
R1(config-if)# ip access-group 10 in
R1(config-if)# exit
inmeans "check traffic as it enters the router on this interface." (outwould check traffic as it leaves.)
Checkpoint: Because of the invisible "deny everything else" rule, applying an incomplete or backwards ACL to the wrong interface can accidentally cut off your own access to the device. Save your
.pktfile before applying an ACL, and immediately test with apingafterward to make sure the traffic you meant to allow is still working.
- Understand: ACLs are checked top-to-bottom, and there's always an invisible final "deny all."
- Write a simple
permit/denyACL for the addresses the question specifies. - Apply it to the correct interface with
ip access-group <number> in(orout). - Test that legitimate traffic still works after applying it.
13. Saving Your Work for Real#
Everything you type into a device lives in something called the running configuration — but this only exists in the device's memory while it's powered on. If the device restarts (or Packet Tracer glitches, or your session times out), anything not saved is gone.
R1# copy running-config startup-config
You'll sometimes see this shortened to wr mem (short for "write memory") — it does the same thing.
Final checkpoint: Before you consider a device (or the whole exercise) finished, run
copy running-config startup-configon every single device you touched, and do one last Save-As on the.pktfile itself. It is very easy to do great work and lose credit for it simply because it was never saved.
- Run
copy running-config startup-configafter finishing each device, not just at the very end. - Do a final Save-As on the
.pktfile when you're done.
14. Checking Your Work: show Commands#
show Commands#After making any change, get in the habit of checking that it actually worked. show commands display information without changing anything, so they're always safe to run.
show running-config (see the entire current configuration)
show ip interface brief (quick view of every interface — up/down, IP address)
show vlan brief (list of VLANs and which ports belong to them)
show port-security interface fastEthernet0/1 (check port security status on one port)
show access-lists (see your ACLs and their rule counts)
show ip ssh (confirm SSH is enabled and which version)
Beginner tip:
show running-configcan be long. If you only care about one part, use the pipe filter, e.g.show running-config | section line vtyto see just the VTY line settings.
- After every change, use the matching
showcommand to confirm it actually took effect.
15. Golden Rules for the Competition#
- Read the entire question packet before touching anything. Later questions sometimes explain details (like IP addressing) that you need for earlier tasks.
- Don't break things that are supposed to work. The goal is to secure the network, not to disconnect everything. After each change, double check that legitimate devices can still communicate (ping, browse, etc.) unless the question specifically asks you to block that traffic.
- Save constantly — both the
.pktfile (Save-As with a new name) and each device's configuration (copy running-config startup-config). See Sections 2 and 13. - Work through every device, not just the one mentioned in the current question — the same kind of vulnerability (weak password, open port, missing banner) is often repeated across multiple devices.
- When a command fails, read the error message. Cisco IOS errors are usually specific about what went wrong (bad syntax, wrong mode, incomplete command) — use
?to check what's valid right where you are. - It's okay to not know something. Use
?at any prompt to see valid next commands, and don't be afraid to ask a teammate or mentor.
16. Appendix: OSI Model, Simplified#
Written questions often ask about "layers" of networking. The OSI model is a 7-layer way of describing how network communication is broken into stages, from the physical wire up to the application you're using.
| Layer # | Name | Plain-language idea |
|---|---|---|
| 7 | Application | The actual app talking to the network (web browser, email client) |
| 6 | Presentation | Formats/encrypts the data so both sides understand it |
| 5 | Session | Keeps track of an ongoing conversation between two devices |
| 4 | Transport | Breaks data into pieces and makes sure they all arrive (TCP/UDP) |
| 3 | Network | Figures out the path across different networks (IP addresses, routers) |
| 2 | Data Link | Handles delivery within one local network (MAC addresses, switches) |
| 1 | Physical | The actual cables, signals, and hardware |
Quick device mapping (a common question style):
- Hub → Layer 1 (just repeats electrical signals, no intelligence)
- Switch → Layer 2 (uses MAC addresses to forward data within a network)
- Router → Layer 3 (uses IP addresses to forward data between networks)
Memory trick (top to bottom): All People Seem To Need Data Processing (Application, Presentation, Session, Transport, Network, Data Link, Physical).
17. Appendix: Subnetting, Simplified#
An IP address plus a subnet mask describes both a specific device and the network it belongs to. A /24 network (mask 255.255.255.0) is the one you'll see most often as a beginner — it means the first three numbers of the IP address identify the network, and the last number identifies the individual device.
| CIDR notation | Subnet mask | Roughly how many devices fit |
|---|---|---|
| /24 | 255.255.255.0 | 254 |
| /25 | 255.255.255.128 | 126 |
| /26 | 255.255.255.192 | 62 |
| /27 | 255.255.255.224 | 30 |
| /30 | 255.255.255.252 | 2 (used for a link between two routers) |
Common private address ranges you'll see inside Packet Tracer topologies (these are never used directly on the public internet):
10.0.0.0–10.255.255.255172.16.0.0–172.31.255.255192.168.0.0–192.168.255.255
Once you're comfortable with the basics above, the master checklist has a full subnetting/CIDR reference table and step-by-step subnetting math if a question needs you to calculate an exact range.
You're ready for the basics. Practice these commands a few times in a blank Packet Tracer file until they feel natural, then move on to the full master checklist for deeper hardening techniques (VLANs and trunk security, DHCP snooping, spanning tree hardening, routing protocol authentication, and more).