Cisco Packet Tracer
Presenter:
What is the CLI Console?
The CLI (Command Line Interface) console in Packet Tracer is a text-based interface
that allows you to interact with network devices by typing commands.
It provides a way to configure and manage devices like routers and switches using
Cisco's IOS commands.
In contrast, the GUI (Graphical User Interface) offers a visual approach, where users
can click on icons and menus to perform similar tasks.
The CLI is important because it offers more precise control and access to advanced
features that might not be available through the GUI.
It is also essential for learning real-world networking skills, as many network devices
in professional environments are configured using CLI.
CLI versus GUI
What is the CLI Console? (2)
• GUI (Graphical User Interface) • CLI Command Line Interface)
CLI versus GUI
This Presentation:
1. Interfaces
a. CLI
b. GUI
c. Comparison
2. Configuring Network Switch
a. User Mode
b. Exec Mode
c. Advanced Login
Contents
Our last session:
1. DISCUSSED AND EXPLORED;
a) CONNECTIVITY
b) WIRELESS TECHNOLOGIES
c) IOT (INTERNET OF THINGS)
2. DEVELOPED A SMALL OFFICE NETWORK IN PT
3. IMPLEMENTED & DEVELOPED AN UNDERSTANDING OF
PAIRING AND TETHERING TO CONNECT DEVICES
Reflection
Today’s Key Terms:
• CLI (Command Line Interface), GUI, Console
• Privileged EXEC Mode, Terminal Emulation
• VLAN (Virtual Local Area Network), Inter-VLAN Routing
• Running Configuration
Words to Look Out For
Today’s Aims
1. DISCUSS AND EXPLORE;
a) CLI / CONSOLE CONFIGURATION
b) GUI / CLI COMPARISON
c) CONSOLE CONNECTIVITY
2. DEVELOP A SMALL OFFICE NETWORK IN PT
3. IMPLEMENT & CONFIGURE EXEC MODE AND BACKUP
RUNNING CONFIG TO RESTORE
Aims
Launch Packet Tracer
• If you have not already done so, launch Cisco Packet
Tracer and login to your NetAcad account.
Small Office Network
Adding Devices
• Add the following 6 devices to your workspace:
Where on
Device Model Name Quantity Packet Tracer?
PC PC-PT 2 End Devices > End Devices > PC
End Devices > End Devices > SERVER
Server Server-PT 1
Network Devices > Switches > 2950T
Switch 2950T-24 1
Network Devices > Routers > 2911
Router 2911 1
End Devices > End Devices > Laptop
Laptop Laptop-PT 1
Small Office Network
Unconnected Network Design
• Your Workspace will now look like this:
Small Office Network
Configuring the 2911 Router
• Next, we will configure our 2911 Router
Click on the CONFIG TAB
• Click on the GigabitEthernet0/0 Port
2911 Router Config
Configuring the 2911 Router (2)
• Assign IP address as [Link] and subnet mask as
[Link] (The Subnet Mask should autofill as you click
on the field, if not, input this value)
• Turn on the port status
2911 Router Config
Configuring the 2911 Router (3)
• Follow the same process and configure the GigabitEthernet0/1 interface
by assigning IP address as [Link] and subnet mask as [Link] and
turn on the port status
• ROUTER
CONFIGURATION
REFLECTION:
IP Address Subnet Mask: IP Address Subnet Mask:
Device Name: GigabitEthernet0/0: GigabitEthernet0/1:
2911 Router0 [Link] [Link] [Link] [Link]
2911 Router Config
CONFIGURING AND ADDRESSING PCS
• Just as we did for our router, we will now configure our 2 PCS:
• Click on PC0 and go to FastEthernet0 in config and assign IP
address and subnet mask for the PC0 as [Link] [Link]
PC Config
CONFIGURING AND ADDRESSING PCS (2)
• Using the same method, click on PC1 apply the following
settings:
• a. INTERFACE: FastEthernet0
• b. IP ADDRESS: [Link]
• c. SUBNET MASK: [Link]
PC Config
CONFIGURING AND ADDRESSING PCS (3)
• For both of the PCs (PC0, PC1) go to GLOBAL, SETTINGS in
Config and assign default gateway as [Link]
• PC CONFIGURATION REFLECTION:
IP Address Subnet Mask: Default Gateway:
Device Type: Device Name: FastEthernet0:
PC PC 0 [Link] [Link] [Link]
PC PC 1 [Link] [Link] [Link]
PC Config
CONFIGURING AND ADDRESSING SERVER
• Click on the Server, go to the global settings in config and
assign default gateway as [Link]
Server Config
CONFIGURING AND ADDRESSING SERVER (2)
• Now, go to the FastEthernet0 interface and assign IP address
and subnet mask as [Link], [Link]
Server Config
CONFIGURING & ADDRESSING LAPTOP
• Click on the Laptop icon
• Go to FastEthernet0 in Config and assign IP address and
subnet mask for the Laptop as [Link] [Link]
Laptop Config
Connect: From Device to On Port: Cable-Type
Physical Device
Name:
Port: Connect to:
Connectivity Switch0 FastEthernet0/1 PC0 FastEthernet0 Copper Straight-
Through
• We will now connect
our small office Switch0 FastEthernet0/2 PC1 FastEthernet0 Copper Straight-
Through
devices using copper
straight-through
cabling and Console Switch0 FastEthernet0/3 Router0 GigabitEthernet0 Copper Straight-
Through
cable.
• Develop the Router0 GigabitEthernet0/1 Server0 FastEthernet0 Copper Straight-
Through
connectivity in your
network using the
Switch0 Console Laptop0 RS 232 Console Cable
table as your guide:
Physical Connectivity
Connected Network Design
• Your network topology will now look like this:
• All connected and configured with addresses – we will now
connect to the Laptop via Console
Small Office Network
CONNECT TO LAPTOP USING CONSOLE
• We will now use the laptop to access the command line
interface (CLI) on the switch and view the configuration
information
• Click on Laptop0
• Click the Desktop tab in the configuration window.
Console Connectivity
CONNECT TO LAPTOP USING CONSOLE (2)
• Open the Terminal option.
• Accept the defaults and click OK.
Console Connectivity
CONNECT TO LAPTOP USING CONSOLE (3)
The Terminal Configuration window
• The Terminal Configuration window allows users to configure
network devices using a command-line interface (CLI).
It simulates the terminal environment where users can input
commands to manage and configure routers, switches, and
other network devices, similar to how they would in a real-world
networking scenario.
Console Connectivity
CONNECT TO LAPTOP USING CONSOLE (3)
• A terminal window will now open, and the switch console will be displayed
•
If the switch is not yet fully
powered up, messages may
scroll on the screen.
• Wait until the scrolling stops
and the message “Press RETURN to
get started!” appears on the
screen.
• Press ENTER to continue.
Console Connectivity
Privileged Exec Mode
• Cisco networking devices open in User EXEC mode by default
when accessing the device through a console connection.
• User EXEC mode provides access to the device to view
information about the status and operation of the device. In
order to alter the configuration on the device, you must enter the
Privileged EXEC mode.
Exec Modes
Privileged Exec Mode (2)
• At the Switch> prompt, enter a question mark (?) and press ENTER. A
list of commands that are available in User EXEC mode will be
displayed.
• To enable the Privilege EXEC
mode, type enable at the prompt
and press ENTER (Switch> enable)
• Notice that the prompt
has changed to indicate
Privileged EXEC mode.
(Switch#)
Exec Modes
Privileged Exec Mode (3)
• Enter a question mark (?) at the prompt.
• A list of available commands will be
displayed.
• If the message --More- appears
at the bottom of the screen, press the
spacebar to advance to the next
screen.
• You will note that there are a lot
more commands available in this
permission level
Console Connectivity
Privileged Exec Mode (4)
• Enter the show running-config command to view the current
configuration running on the device and press ENTER.
(Switch# show running-config)
• The configuration information will display one interface at a
time.
Console Connectivity
Privileged Exec Mode (5)
• The running configuration
consists of configuration
information that a Cisco IOS
device uses to operate on a
network. See image here for
examples:
• In this instance, because the
switch is new, it has a
minimal default configuration.
• Press CTRL-C to return
to the switch prompt.
Console Connectivity
Copy Configuration Information to the Device
• We will now:
a) Copy configuration information into the device
b) Change the device name
c) Set a password for the console connection.
Enter global configuration mode.
• To configure a device, you must first enter the configuration mode.
• Ensure that your terminal is in Privilege Exec mode
• Remember, to enable the Privilege EXEC
mode, type enable at the prompt and press ENTER. (Switch> enable)
Config Code
Copy Configuration Information to the Device (2)
• Enter the command configure terminal and press ENTER.
(Switch# configure terminal)
• Notice how the switch prompt
changes to indicate that you
are now in the configuration
mode.
“When all lines are input,
end with CNTL/Z. Switch(config)#”
Config Code
Copy Commands and Paste the Commands to the Switch.
• Select the list of commands below and press CTRL-C to
copy to the clipboard.
hostname SmallOffice
line con 0
password SmallOffice123
login
end
Copy & Paste Commands
Copy Commands and Paste the Commands to the Switch (2)
• To paste the commands into the switch, right-click at the switch
prompt and select Paste from the drop-down menu. The commands
will appear on the console as shown below:
Switch(config)# hostname SmallOffice
SmallOffice (config)# line con 0
SmallOffice (config-line)# password SmallOffice123
SmallOffice (config-line)# login
SmallOffice (config-line)# end
%SYS-5-CONFIG_I: Configured from console by console
Copy & Paste Commands
Copy Commands and Paste the Commands to the Switch (3)
• The commands are now active on the switch. Commands
entered in configuration mode take effect immediately and
become part of the running configuration on the device.
• Press ENTER.
• Notice that the switch prompt has
changed to reflect the new name
assigned to the device.
Copy & Paste Commands
Testing the New Configuration Settings
• The new configuration commands set a password for the console
connection. To test that configuration change, type exit and
press ENTER
• The screen will refresh and the Press RETURN
to get started! message will display.
Press ENTER.
• You will now be prompted for the
password you set earlier
Verification
Testing the New Configuration Settings (2)
• If the terminal times out, just press ENTER once again
• Enter the password SmallOffice123
and press ENTER.
• (Packet Tracer is Case-Sensitive)
• NOTE: For security reasons, you will not be able to view the password
being input - The User EXEC prompt will appear – if you input correctly,
you will see the prompt below – if not, try again
Verification
Saving the Updated Configuration to the Device
• In this part, we will explore and establish how to save the configuration
changes to permanent memory on the device.
• If the configuration changes are not saved, they will be lost if the device
loses power or is intentionally rebooted.
• When a Cisco IOS device starts, it reads the configuration file that is
permanent memory and loads it into the running configuration in RAM.
• Configuration changes are only made to the running configuration. The
changes must be saved so that they will become available to a device on
startup.
Saving Config Settings
Use the enable command to enter the Privileged EXEC mode on the switch.
• Input the following command at the switch prompt:
enable and press ENTER
• The terminal will now enter Privileged Exec mode
Enable Command
Copy the current running configuration to the startup configuration
• We will now use the:
copy running-config startup-config
command to save the current configuration running on the device to
the startup configuration that will load when the device powers up.
• At the prompt, input: copy running-config startup-config and
press ENTER
Enable Command
Copy the current running configuration to the startup configuration (2)
• Press ENTER to accept the default filename
• The system will now Build the Configuration and confirm when
complete:
Default Config Copy Name
VERIFYING SAVED CONFIG CHANGES
• Next, we will verify that the configuration changes were saved
properly. We will reload the device using the reload command.
• Reloading the router will reboot the IOS software and IOS will
load the saved configuration file.
• If the new configuration was made and saved in permanent
memory, the device will prompt you for a password to access
the device console:
Verification
VERIFYING SAVED CONFIG CHANGES
• At the command prompt, input: reload and press ENTER
• At the prompt, press ENTER to continue
Verification
VERIFYING SAVED CONFIG CHANGES (2)
• The IOS will start building:
• Before long, the Cisco IOS will be ready to load
Verification
VERIFYING SAVED CONFIG CHANGES (3)
• Press ENTER when the message Press RETURN to get
started! appears.
•
If the configuration was saved successfully, the User Access
Verification message will be displayed.
Verification
VERIFYING SAVED CONFIG CHANGES (4)
• Enter the password SmallOffice123 at the password prompt.
• If the password is correct, the User EXEC prompt will appear.
• Great job!
• That now completes the CLI
configuration activity.
• Save your network as: Explore Device Configuration Using CLI
(Console).pkt
Verification
Summary of Achievements - Reflection
• By completing this walkthrough, you will have gained hands-on experience in configuring networking
devices using the Command Line Interface (CLI).
• You will have learned to connect to devices via console connections, configure routers and switches,
and manage network settings effectively.
• This practical knowledge enhances understanding of network infrastructure and device management.
• Acquiring these skills is crucial for both academic and career advancement. Academically, it provides
a solid foundation for further studies in networking and IT.
• Professionally, mastering CLI opens up numerous opportunities in the IT industry, such as roles in
network administration, systems engineering, and IT support.
• These skills are highly valued, as they enable professionals to efficiently manage and troubleshoot
network environments, ensuring robust and secure network operations.
Reflection
YOUR TURN!
1. What is the purpose of using the CLI in networking devices?
2. How do you access the Privileged EXEC mode on a Cisco switch?
3. What command is used to view the current running configuration on a device?
4. Why is it important to save the running configuration to the startup configuration?
5. What are the steps to configure an IP address on a router interface?
6. How can you set a password for console access on a switch?
7. What is the significance of using a console cable in network configuration?
8. How do you verify that configuration changes have been saved correctly?
9. What command is used to reload a device and why would you do this?
10. What are the benefits of mastering CLI for networking professionals?
Challenge 1
YOUR TURN!
1. Expand the small office network by adding a second
switch and connecting additional PCs. Configure the
new switch and PCs with appropriate IP addresses and
ensure connectivity across the network.
2. Implement VLANs on the existing switch to segment the
network into different departments. Assign specific PCs
to each VLAN and configure inter-VLAN routing on the
router to allow communication between them.
Challenge 2 (Practical)
Today’s Outcomes
1. DISCUSSED AND EXPLORED;
a) CLI / CONSOLE CONFIGURATION
b) GUI / CLI COMPARISON
c) CONSOLE CONNECTIVITY
2. DEVELOPED A SMALL OFFICE NETWORK IN PT
3. IMPLEMENTED & CONFIGURED EXEC MODE AND
BACKUP RUNNING CONFIG TO RESTORE
Outcomes