0% found this document useful (0 votes)
5 views42 pages

Packet Tracer: Networking Basics Guide

The document provides an introduction to Packet Tracer, a networking protocol simulator developed by Cisco, detailing its interface components and functionalities. It covers basic configuration of Cisco devices, including routers and switches, and explains how to access the Command-line Interface (CLI) for configuration purposes. Additionally, it outlines steps for configuring network devices, setting up management addresses, and implementing security features such as SSH and port security.

Uploaded by

Haider Hadi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views42 pages

Packet Tracer: Networking Basics Guide

The document provides an introduction to Packet Tracer, a networking protocol simulator developed by Cisco, detailing its interface components and functionalities. It covers basic configuration of Cisco devices, including routers and switches, and explains how to access the Command-line Interface (CLI) for configuration purposes. Additionally, it outlines steps for configuring network devices, setting up management addresses, and implementing security features such as SSH and port security.

Uploaded by

Haider Hadi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Expermint 1: Introduction to Packet Tracer

Packet Tracer is a protocol simulator developed by Dennis Frezze and


tewm at cisco systems. Packet Tracer (PT) is powerful and dynamic tool that
displays the various protocols used in networking, in either Real Time or
Simulation mode. This includes layer 2 protocols such as Ethernet and PPP,
layer 3 protocols such as IP,ICMP,and ARP, and layer 4 protocols such as
TCP and UDP.

Packet Tracer is a supplement to and not a replacedment for experience with


real equipment. Students are encouraged to compare the results obtained from
Packet Tracer network models with the behavior of real equipment.

➢ Interface Overview :
The layout of Packet Tracer is divided into several components similar to a photo
editor. Match the numbering in the following screenshot with the explanations given
after it:

• Menu bar – This is a common menu found in all software applications; it is used to open,
save, print, change preferences, and so on.

• Main toolbar – This bar provides shortcut icons to menu options that are commonly
accessed, such as open, save, zoom, undo, and redo, and on the right-hand side is an icon for
entering network information for the current network.

2
• Logical/Physical workspace tabs – These tabs allow you to toggle between the Logical and
Physical work areas

• Workspace – This is the area where topologies are created and simulations are displayed.

• Common tools bar – This toolbar provides controls for manipulating topologies, such as
select, move layout, place note, delete, inspect, resize shape, and add simple/complex PDU.

3
• Realtime/Simulation tabs – These tabs are used to toggle between the real and simulation
modes. Buttons are also provided to control the time, and to capture the packets.
• Area 7: Network component box – This component contains all of the network and end
devices available with Packet Tracer, and is further divided into two areas:

✓ A:Device-type selection box – This area contains device categories


✓ B:Device-specific selection box – When a device category is selected, this selection box
displays the different device models within that category

• User-created packet box – Users can create highly-customized packets to test their
topology from this area, and the results are displayed as a list.

4
➢ Setting Options in Packet Tracer

• You can customize your Packet Tracer experience by setting your own
preferences
• From the Menubar, select Options→Preferences to view the program
settings

5
Experiment 2: Network Devices and Basic
Configuration

Cisco devices and Packet Tracer devices


Selecting Switches or Routers from the device-type selection box lists both Cisco devices and
some devices labeled Generic. These are custom Packet Tracer devices running on Cisco IOS,
but the slots that hold the modules are different.

Routers
A router provides connectivity between two logical networks. Every router in Packet Tracer can be
switched on or off by using the provided power button.

Switches
A switch, also called a multiport bridge, connects more than two end devices together. Each switch port
is a collision domain.

Other devices
Packet Tracer has more than just Cisco routers and switches, which we'll see in this section. These
devices do not have any configuration options and work out of the box.
• Hub PT: This network hub was the oldest way to connect multiple end devices together. It
still exists in Packet Tracer so that you can simulate and learn about network storms and
broadcasts. This Packet Tracer device has 10 slots.
• Repeater PT: This device is used to boost the signal on a wire when the distance between
two points is high. Navigating and Modifying the Physical Workspace; this device has two
slots.
• Coaxial Splitter PT: This is used to split a single coaxial connector into two. It has three
coaxial ports and cannot be customized in any way.

6
➢ Choosing Devices and Connections
we use packet tracer program for router configuration. Open Packet Tracer
and choose the router:

Double click on the router


Click on this switch to turn it off. To add a module, drag one from the modules list and
drop it onto an empty slot. If a module doesn't fit into that slot, it automatically returns to
the module list.

To remove a module, power off the device and drag it from the slot back to the module list.

7
Accessing the CLI
The Command-line Interface of a device in Packet Tracer can be accessed in two ways:

• The CLI tab


• Console port

Although it is possible to access a device through SSH or Telnet, these are Cisco methods and are not
exclusive to Packet Tracer.

The CLI tab


This is the simplest way of accessing the Command-line Interface of a device; click on a
network device, navigate to the CLI tab, and you'll see the booting process.

The Console port


There is no difference between what is seen and controlled in this method and the previous
one, but the Console Port can be used to make the topology look similar to the real world.
Follow the steps to configure the console port:

1. Add a PC or a laptop to the workspace.


2. Choose connections, and then click on the console cable.
3. Connect the console cable of the network device to the RS-232 port of the PC/laptop.

4. Open the PC/laptop, navigate to the Desktop tab, open Terminal, and then with the
default settings, click on OK to view the console. The following screenshot displays a
router's console through its terminal:

In step 2, if you use the Automatically Choose Connection Type option, the Ethernet ports of both of
the devices will be connected.

8
➢ Choose CLI for router configuration.

To use the CLI, just say No to entering the initial configuration dialog.

Router CLI modes:


❖ User mode :
Router>
Used mostly to view statistics
❖ Privileged mode :
Router< enable
Router#
Used to view & change router configuration
❖ Global configuration mode :
Configure terminal or config t

9
Router # configure terminal
Router (config)#

User mode:
• To know the commands in user mode we use (?)
• To enter the privilage mode we write: ( enable )

To see the commands in privilage mode we use (?)

10
To go to global configuration we use ( configure terminal) :

❖ Configuration
In the global configuration mode, we can do the following
❖ Naming the router

❖ Setting passwords
1- Setting Console and Telnet passwords

2- Enable password to protect the privilage mode :

R1(config)# enable password 123456

3- Secret password for more protection of privilage mode:

R1(config)# enable secret 123456

11
4- To remove password:

R1(config)# no enable password

5- To encrypt all passwords:

R1(config)# service password-encryption

❖ Configure Message of the day :

❖ Saving changes and restart

❖ Interface configuration

12
❖ Verification commands

Establishing a Console Session with HyperTerminal:


Topology Diagram

13
Double Click on PC and select Desktop

Now click on terminal and Click OK.

14
Experiment 3: Configuring a Switch Management
Address

Topology:

Using Packet Tracer, connect the topology diagram blew :

Addressing Table

Objectives

Configure a Basic Network Device

Background

15
Cisco switches have a special interface, known as a switch virtual interface
(SVI). The SVI can be configured with an IP address, commonly referred to
as the management address. The management address is used for remote
access to the switch to display or configure settings.
In this lab, you will build a simple network using Ethernet LAN cabling and
access a Cisco switch using the console and remote access methods. You will
configure basic switch settings, IP addressing, and demonstrate the use of a
management IP address for remote switch management. The topology
consists of one switch and one host using only Ethernet and console ports.

❖ Configure a Basic Network Device

• Enter privileged EXEC mode.


Switch> enable

• Enter global configuration mode and assign the switch hostname.


Switch# configure terminal
Switch(config)# hostname S1
S1(config)#
Configure the switch password access.
S1(config)# enable secret class
S1(config)#

• Configure a login MOTD banner.


S1(config)# banner motd #
Enter Text message. End with the character ‘#’.
Unauthorized access is strictly prohibited. #

• Enter global configuration mode to set the SVI IP address to allow


remote switch management.
S1# config t
S1#(config)# interface vlan 1
S1(config-if)# ip address [Link] [Link]
S1(config-if)# no shut
S1(config-if)# exit
S1(config)#

• The default configuration is to allow all console connections with


no
password needed.

16
S1(config)# line con 0
S1(config-line)# password cisco
S1(config-line)# login
S1(config-line)# exit
S1(config)#

• Configure the VTY line for the switch to allow Telnet access. If you
do not configure a VTY password, you will not be able to telnet to
the switch.
S1(config)# line vty 0 4
S1(config-line)# password cisco
S1(config-line)# login
S1(config-line)# end
S1#
• Verify Basic Configuration

▪ Shows an overview of all interfaces, their physical status, protocol status and
IP Address if assigned.

S1# Show ip interface brief

▪ Shows the current configuration file stored in DRAM.

S1# Show running-config

▪ Shows the configuration file stored in NVRAM which is used at first boot
process

S1# Show startup-config

▪ Shows information about the switch and its interfaces, RAM, NVRAM, flash,
IOS, etc

S1# Show version

▪ Lists the commands currently held in the history buffer.

S1# Show history

17
Experiment 4: Basic Switch Configuration

Topology

Addressing Table

Objectives
Part 1: Set Up the Topology and Initialize Devices
Part 2: Configure Basic Device Settings and Verify Connectivity
Part 3: Configure and Verify SSH Access on S1
• Configure SSH access.
• Modify SSH parameters.
• Verify the SSH configuration.
Part 4: Configure and Verify Security Features on S1
• Configure and verify general security features.
• Configure and verify port security.

Part 1: Set Up the Topology and Initialize Devices


In Part 1, you will set up the network topology and clear any configurations if necessary.

18
Step 1: Cable the network as shown in the topology.
Step 2: Initialize and reload the router and switch.
If configuration files were previously saved on the router or switch, initialize and reload
these devices back to
their basic configurations.
Part 2: Configure Basic Device Settings and Verify Connectivity
In Part 2, you configure basic settings on the router, switch, and PC. Refer to the Topology
and Addressing
Table at the beginning of this lab for device names and address information.
Step 1: Configure an IP address on PC-A.
Step 2: Configure basic settings on R1.
a. Configure the device name.
b. Disable DNS lookup.
c. Configure interface IP address as shown in the Addressing Table.
d. Assign class as the privileged EXEC mode password.
e. Assign cisco as the console and vty password and enable login.
f. Encrypt plain text passwords.
g. Save the running configuration to startup configuration.

Step 3: Configure basic settings on S1.


A good security practice is to assign the management IP address of the switch to a VLAN
other than VLAN 1
(or any other data VLAN with end users). In this step, you will create VLAN 99 on the
switch and assign it an
IP address.
a. Configure the device name.
b. Disable DNS lookup.
c. Assign class as the privileged EXEC mode password.

d. Assign cisco as the console and vty password and then enable login.
e. Configure a default gateway for S1 using the IP address of R1.
f. Encrypt plain text passwords.
g. Save the running configuration to startup configuration.
h. Create VLAN 99 on the switch and name it Management.
S1(config)# vlan 99
S1(config-vlan)# name Management
S1(config-vlan)# exit
S1(config)#
i. Configure the VLAN 99 management interface IP address, as shown in the Addressing
Table, and enable
the interface.
S1(config)# interface vlan 99
S1(config-if)# ip address [Link] [Link]
S1(config-if)# no shutdown
S1(config-if)# end

Assign ports F0/5 and F0/6 to VLAN 99 on the switch.

19
S1# config t
S1(config)# interface f0/5
S1(config-if)# switchport mode access
S1(config-if)# switchport access vlan 99
S1(config-if)# interface f0/6
S1(config-if)# switchport mode access
S1(config-if)# switchport access vlan 99
S1(config-if)# end

Part 3: Configure and Verify SSH Access on S1

Step 1: Configure SSH access on S1.


a. Enable SSH on S1. From global configuration mode, create a domain name of CCNA-
[Link].
S1(config)# ip domain-name [Link]
b. Create a local user database entry for use when connecting to the switch via SSH. The
user should have
administrative level access.
Note: The password used here is NOT a strong password. It is merely being used for lab
purposes.
S1(config)# username admin privilege 15 secret sshadmin
c. Configure the transport input for the vty lines to allow SSH connections only, and use
the local database
for authentication.
S1(config)# line vty 0 15
S1(config-line)# transport input ssh
S1(config-line)# login local
S1(config-line)# exit

d. Generate an RSA crypto key using a modulus of 1024 bits.


S1(config)# crypto key generate rsa modulus 1024

e. Verify the SSH configuration and answer the questions below.


S1# show ip ssh

Step 2: Modify the SSH configuration on S1.


Modify the default SSH configuration.
S1# config t
S1(config)# ip ssh time-out 75
S1(config)# ip ssh authentication-retries 2

Configure and verify port security on S1.


a. Record the R1 G0/1 MAC address. From the R1 CLI, use the show interface g0/1
command and record
the MAC address of the interface.

20
R1# show interface g0/1

Configure basic port security.


Note: This procedure would normally be performed on all access ports on the switch. F0/5
is shown here
as an example.
1) From the S1 CLI, enter interface configuration mode for the port that connects to R1.
S1(config)# interface f0/5
2) Shut down the port.
S1(config-if)# shutdown
3) Enable port security on F0/5.
S1(config-if)# switchport port-security

S1(config-if)#switchport port-security maximum 2

S1(config-if)#switchport port-security violation shutdown

S1(config-if)#exit

S1(config-if)# no shutdown
S1(config-if)# end

Verify port security on S1 F0/5 by issuing a show port-security interface command.


S1# show port-security interface f0/5

From R1 command prompt, ping PC-A to verify connectivity.


R1# ping [Link]
f. You will now violate security by changing the MAC address on the router interface.
Enter interface
configuration mode for G0/1 and shut it down.
R1# config t
R1(config)# interface g0/1
R1(config-if)# shutdown
g. Configure a new MAC address for the interface, using [Link] as the address.
R1(config-if)# mac-address [Link]
h. If possible, have a console connection open on S1 at the same time that you do this step.
You will see
various messages displayed on the console connection to S1 indicating a security violation.
Enable the
G0/1 interface on R1.
R1(config-if)# no shutdown

21
Experiment 5: Basic VLAN Configuration

22
Solution
Step One : Erasing and reloading the Switches
S1# Delete Flash:[Link]
S1# Erase Startup
S1# Show vlan
Note : if vlans are successfully deleted, issue S1# reload.
If previous configuration is still present, you need a hardware restart.
Step Two : Disable any unused ports by putting them in shutdown
S1# config term
S1(config)# interface range fa 0/1 – 24 (spaces)
S1(config-if-range)# shutdown
S1(config-if-range)# interface range Gig 1/1 – 2 (spaces)
S1(config-if-range)# shutdown
Step Three : Perform basic configuration of switches (Name, Passwords)

Step Four : Re-enable user ports on S2 & S3


S2(config)# interface range fa 0/6 , fa 0/11 , fa 0/18 (spaces)
S2(config-if-range)# switchport mode access
S2(config-if-range)# no shutdown
S3(config)# interface range fa 0/6 , fa 0/11 , fa 0/18
S3(config-if-range)# switchport mode access
S3(config-if-range)# no shutdown
Step Five : Assign IP Addresses for all PCs
Step Six : Create VLANs on S1
S1(config)# vlan 10
S1(config-vlan)#name faculty/staff
S1(config-vlan)#vlan 20
S1(config-vlan)#name students
S1(config-vlan)#vlan 30
S1(config-vlan)#name guest
S1(config-vlan)#vlan 99
S1(config-vlan)#name management 23
Note : Issue Show vlan brief on S1
Step Seven : Configure and name VLANs on switches S2 and S3.
Note : No ports are assigned till now to any vlan
Step Eight : Assign ports to vlans in S2 and S3
S3(config)# interface range fa 0/6 - 10
S3(config-if-range)# switchport access vlan 30
S3(config-if-range)#i nterface range fa 0/11 - 17
S3(config-if-range)# switchport access vlan 10
S3(config-if-range)# interface range fa 0/18 - 24
S3(config-if-range)# switchport access vlan 20
S3(config-if-range)# end
S3# copy running-config startup-config
S2(config)# interface range fa 0/6 - 10
S2(config-if-range)# switchport access vlan 30
S2(config-if-range)#i nterface range fa 0/11 - 17
S2(config-if-range)# switchport access vlan 10
S2(config-if-range)# interface range fa 0/18 - 24
S2(config-if-range)# switchport access vlan 20
S2(config-if-range)# end
S2# copy running-config startup-config
Note : Issue Show vlan 10 (or vlan faculty/staff) to display ports assigned.

Step Nine : Assign the management vlan to all switches.


Note : VLAN1 is the default management one, we will use VLAN99 as a replacement.
S1(config)#interface vlan 99
S1(config-if)#ip address [Link] [Link]
S1(config-if)#no shutdown
S1(config)# ip default-gateway [Link]
S2(config)#interface vlan 99
S2(config-if)#ip address [Link] [Link]
S2(config-if)#no shutdown
S2(config)# ip default-gateway [Link]
S3(config)#interface vlan 99
S3(config-if)#ip address [Link] [Link]
S3(config-if)#no shutdown
S3(config)# ip default-gateway [Link]

24
Step Ten: Configure trunking and the native VLAN for the trunking ports on all switches.
S1(config)# interface range fa 0/1 - 5
S1(config-if-range)# switchport mode trunk
S1(config-if-range)# switchport trunk native vlan 99
S1(config-if-range)# no shutdown
S2(config)# interface range fa 0/1 - 5
S2(config-if-range)# switchport mode trunk
S2(config-if-range)# switchport trunk native vlan 99
S2(config-if-range)# no shutdown
S3(config)# interface range fa 0/1 - 5
S3(config-if-range)# switchport mode trunk
S3(config-if-range)# switchport trunk native vlan 99
S3(config-if-range)# no shutdown
Note : Issue Show Interface Trunk on each Switch

Step 11: Verify that the switches can communicate.


From S1, ping the management address on both S2 and S3.
S1# ping [Link] (should be replied)
S1# ping [Link] (should be replied)
Pings between S2 and S3 will be successful.
Note : pings between PCs in the same vlan will be successful
Note : pings from PCs to switches will fail (different Vlans).

25
Using Packet Tracer, connect the topology diagram below:

Addressing Table
Network address Range of valid IP address Broadcast address
Network 1 [Link] [Link] to [Link] [Link]
Network 2 [Link] [Link] to [Link] [Link]
Network 3 [Link] [Link] to [Link] [Link]

26
Interface IP address Subnet mask Default
Gateway
R1 Fa0/0 [Link] [Link] N/A
S0/0/0 [Link] [Link] N/A
R2 Fa0/0 [Link] [Link] N/A
S0/0/0 [Link] [Link] N/A
PC1 N/A [Link] [Link] [Link]
PC2 N/A [Link] [Link] [Link]
PC3 N/A 192.168.10. 130 [Link] [Link]
PC4 N/A 192.168.10. 135 [Link] [Link]
Requirements:
➢ For each router perform the following :
• Configure the router hostname.
• Configure an EXEC mode password.
• Configure a password for console connection.
• Enable (Cisco), console(Student), telnet(Class)
• Configure a message of the day ((Unauthorized access is
prohibited))
➢ Configure all the interfaces in the routers according to the given
addressing table and make sure all interfaces are in the up state.
➢ Configure the IP addresses and the gateway Addresses in PC1,
PC2, PC3, PC4.
➢ Encrypt all passwords.
➢ Verify and test configurations using ping and traceroute.

Procedure:-
❖ Connect the devices as follows
• Straight UTP cable between PC1 & Switch
• Straight UTP cable between Switch & Router
• Serial cable between Routers
• Rollover cable (DB9 + RJ45) between PCs & Routers (for configuration).

❖ Erase & Reload Routers

27
Router> Enable
Router#
Router# Erase startup-config
Erasing the nvram filesystem will remove all files! Continue? [confirm]
[OK]
Erase of nvram: complete
Router# Reload
Would you like to enter the initial configuration dialog? [yes/no]: no
Would you like to terminate autoinstall? [yes]:
Press Enter to accept default.
Press RETURN to get started!

❖ Name Routers
Router# Configure terminal
Router (Config)# Hostname R1
R1#
Router# Configure terminal
Router (Config)# Hostname R2
R2#
❖ Configure Passwords for R1
R1 (Config)# Enable password cisco
R1 (Config)# Enable secret ccna1
R1 (Config)# Line console 0
R1 (Config-Line)# password student
R1 (Config-Line)# Login
R1 (Config-Line)# Exit
R1 (Config)# Line VTY 0 4
R1 (Config-Line)# password class
R1 (Config-Line)# Login

❖ Configure Passwords for R2


R2 (Config)# Enable password cisco
R2 (Config)# Enable secret ccna1
R2 (Config)# Line console 0
R2 (Config-Line)# password student
R2 (Config-Line)# Login
R2 (Config-Line)# Exit
R2 (Config)# Line VTY 0 4
R2 (Config-Line)# password class
R2 (Config-Line)# Login

❖ Configure Message of the day


R1 (Config)# Banner MOTD & Unauthorized access is prohibited &

28
R2 (Config)# Banner MOTD & Unauthorized access is prohibited &

❖ Configure Ports of R1 and Save the configuration to NVRAM


R1 (Config)# Interface Fa0/0
R1 (Config-If)# IP Add [Link] [Link]
R1 (Config-If)# No Shutdown
R1 (Config-if)# Description R1 LAN
R1 (Config-if)# Exit
R1 (Config)# Interface S 0/0/0
R1 (Config-if)# IP Add [Link] [Link]
R1 (Config-if)# Clock rate 64000
R1 (Config-if)# No Shutdown
R1 (Config-if)# Description Link to R2
R1 (Config-if)# end
R1 # copy running-config startup-config

❖ Configure Ports of R2 and Save the configuration to NVRAM


R2 (Config)# Interface Fa0/0
R2 (Config-If)# IP Add [Link] [Link]
R2 (Config-If)# No Shutdown
R2 (Config-if)# Description R2 LAN
R2 (Config-if)# Exit
R2 (Config)# Interface S 0/0/0
R2 (Config-if)# IP Add [Link] [Link]
R2 (Config-if)# No Shutdown
R2 (Config-if)# Description Link to R1
R2 (Config-if)# end
R2 #copy running-config startup-config

❖ Configure PCs
• Configure the host PC1 that is attached to R1 with an IP address of [Link]/26
and a default gateway of [Link]
• Configure the host PC2 that is attached to R1 with an IP address of
[Link]/26 and a default gateway of [Link]
• Configure the host PC3 that is attached to R2 with an IP address of
[Link]/26 and a default gateway of [Link]
• Configure the host PC4 that is attached to R2 with an IP address of
[Link]/27 and a default gateway of [Link]

29
❖ Configure PC1 .To configure pc double click on pc and select
Ddesktop

ute

❖ Check Connectivity all Pings between PC1,PC2,PC3&PC4 should


work.

30
Using Packet Tracer, connect the topology diagram below:

Addressing Table

31
Requirements:
➢ For each router perform the following :
• Configure the router hostname.
• Configure an EXEC mode password.
• Configure a password for console connection.
• Enable (Cisco), console(Student), telnet(Class)
• Configure a message of the day ((Unauthorized access is
prohibited))
➢ Configure all the interfaces in the routers according to the given
addressing table and make sure all interfaces are in the up state.
➢ Configure the IP addresses and the gateway Addresses in PC1,
PC2, PC3, PC4.
➢ Encrypt all passwords.
➢ Verify and test configurations using ping and traceroute.

Procedure:-
❖ Connect the devices as follows
• Straight UTP cable between PC1 & Switch
• Straight UTP cable between Switch & Router
• Serial cable between Routers
• Rollover cable (DB9 + RJ45) between PCs & Routers (for configuration).

❖ Erase & Reload Routers


Router> Enable
Router#
Router# Erase startup-config

32
Erasing the nvram filesystem will remove all files! Continue? [confirm]
[OK]
Erase of nvram: complete
Router# Reload
Would you like to enter the initial configuration dialog? [yes/no]: no
Would you like to terminate autoinstall? [yes]:
Press Enter to accept default.
Press RETURN to get started!

❖ Name Routers
Router# Configure terminal
Router (Config)# Hostname R1
R1#
Router# Configure terminal
Router (Config)# Hostname R2
R2#
❖ Configure Passwords for R1
R1 (Config)# Enable password cisco
R1 (Config)# Enable secret ccna1
R1 (Config)# Line console 0
R1 (Config-Line)# password student
R1 (Config-Line)# Login
R1 (Config-Line)# Exit
R1 (Config)# Line VTY 0 4
R1 (Config-Line)# password class
R1 (Config-Line)# Login

❖ Configure Passwords for R2


R2 (Config)# Enable password cisco
R2 (Config)# Enable secret ccna1
R2 (Config)# Line console 0
R2 (Config-Line)# password student
R2 (Config-Line)# Login
R2 (Config-Line)# Exit
R2 (Config)# Line VTY 0 4
R2 (Config-Line)# password class
R2 (Config-Line)# Login

❖ Configure Message of the day


R1 (Config)# Banner MOTD & Unauthorized access is prohibited &

R2 (Config)# Banner MOTD & Unauthorized access is prohibited &

33
❖ Configure Ports of R1 and Save the configuration to NVRAM
R1 (Config)# Interface Fa0/0
R1 (Config-If)# IP Add [Link] [Link]
R1 (Config-If)# No Shutdown
R1 (Config-if)# Description R1 LAN
R1 (Config-if)# Exit
R1 (Config)# Interface S 0/0/0
R1 (Config-if)# IP Add [Link] [Link]
R1 (Config-if)# Clock rate 64000
R1 (Config-if)# No Shutdown
R1 (Config-if)# Description Link to R2
R1 (Config-if)# end
R1 # copy running-config startup-config

❖ Configure Ports of R2 and Save the configuration to NVRAM


R2 (Config)# Interface Fa0/0
R2 (Config-If)# IP Add [Link] [Link]
R2 (Config-If)# No Shutdown
R2 (Config-if)# Description R2 LAN
R2 (Config-if)# Exit
R2 (Config)# Interface S 0/0/0
R2 (Config-if)# IP Add [Link] [Link]
R2 (Config-if)# No Shutdown
R2 (Config-if)# Description Link to R1
R2 (Config-if)# end
R2 #copy running-config startup-config

❖ Configure PCs
• Configure the host PC1 that is attached to R1 with an IP address of [Link]/26
and a default gateway of [Link]
• Configure the host PC2 that is attached to R1 with an IP address of [Link]/26
and a default gateway of [Link]
• Configure the host PC3 that is attached to R2 with an IP address of
[Link]/27 and a default gateway of [Link]
• Configure the host PC4 that is attached to R2 with an IP address of
[Link]/27 and a default gateway of [Link]

❖ Configure PC1 .To configure pc double click on pc and select


Ddesktop

34
❖ Configure a default Route
R1(Config)# IP Route [Link] [Link] S0/0/0

R2(Config)# IP Route [Link] [Link] S0/0/0

❖ Configure a Static Route


R1(config)#ip route [Link] [Link] [Link]

R2(config)#ip route [Link] [Link] [Link]

❖ Check Connectivity all Pings between PC1,PC2,PC3&PC4 should


work.

35
Experiment 8: Remote Login and Network Management
Objective: remote network login is an important network access method
that can be useful for network management, therefore use the Telnet to
access the networking device remotely.

Network Topology

Implementation and Instructions

• Never use CLI to configuration


• Configure IP's using console port and terminal
• Configure default state route from R0 to R1 (ISP) using telnet
• Configure static route from R1 to R0

First step: Click on PC0>desktop>terminal>ok

Router>enable
Router#config t
Router(config)#interface f0/0

36
Router(config-if)#ip address [Link] [Link]
Router(config-if)#no shutdown
Router(config-if)#exit
Router(config)#interface s0/0/0
Router(config-if)#ip address [Link] [Link]
Router(config-if)#no shutdown
Router(config-if)#clock rate 64000
Router(config-if)#exit
Router(config)#enable password 1234
Router(config)#line vty 0 4
Router(config-line)#password 1234
Router(config-line)#login
Router(config-line)#exit

Repeat the same code on pc1 take into consideration to change IP's and
subnet mask

second step(default static route): Click on PC0>desktop>command


prompt

PC>telnet [Link]

password:

Router>enable

password:

Router#config t

Router(config)#ip route [Link] [Link] s0/0/0

third step(static route): Click on PC1>desktop>command prompt

pc>telnet [Link]

37
password:

router>enable

password:

Router#config t

Router(config)#ip route [Link] [Link] s0/0/0

Tests and Results

1- Ping from PC0 to PC1.


2- investigate the difference between static route and default static code
in routing table representation (S, S*)

38
39
Experiment 9: Dynamic Routing Protocol - RIP

Objective: Use a dynamic routing protocol (RIP as an example) to


investigate the remote networks and adding it to the local
routing table.

Network Topology

Implementation and Instructions

1 – set ip address to routers and end device .

2- show ip route … showing table of networks in each router .

3- use rip ( Routing Information Protocol) protocol

Router> en

Router#config t

Router(config)# router rip

40
Router(config-router)# network ip address of directly connecting network

For example router 1

Router(config-router)# network [Link]

Router(config-router)# network [Link]

Tests and Results

Success Ping from pc0 to pc2

41
Experiment 10: Dynamic Routing Protocol
– RIP version 2
Objective: Use a dynamic routing protocol (RIP as an example) to
investigate the remote networks and adding it to the local
routing table.

Network Topology

Implementation and Instructions

1 – set ip address to routers and end device .

2- show ip route … showing table of networks in each router .

3- use rip ( Routing Information Protocol) protocol

Router> en

Router#config t

Router(config)# router rip

Router(config-router)# network ip address of directly connecting network

42
For example router 1

Router(config-router)# network [Link]

Router(config-router)# network [Link]

Router(config-router)# version 2

4- use show ip protocol …..to showing active protocol details .

Tests and Results

Success Ping from pc1 to pc3

43

You might also like