Getting Started With Packet Tracer N
Getting Started With Packet Tracer N
A. Go to https://www.netacad.com/portal/self-enroll/m/331867
B. Enter sign up information.
C. Create Account.
1
2
Step 2: Login and Download Cisco Packet Tracer
B. Go to https://www.netacad.com/portal/resources/packet-tracer\
C. Download Packet tracer 8.0 (Choose the download like for your operating system”
3
Step 4: Opening and testing Packet Tracer.
A. Find the Cisco Packet Tracer (note: it should be on desktop if you installed it using default settings.)
4
C. You should have packet tracer open now.
Learning Objectives:
• Explore Packet Tracer Real-time mode
• Explore the Logical Workspace
• Explore Packet Tracer operation
• Connect devices
• Examine a device configuration
• Review the standard lab setup
Introduction
Packet Tracer is a protocol simulator developed by Dennis Frezzo and his team at Cisco Systems.
Packet Tracer (PT) is a 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. Routing protocols can
also be traced.
5
Creating a New Topology
We will begin building our network topology by selecting devices and the media in which to connect them.
Several types of devices and network connections can be used. For this lab we will keep it simple by using
End Devices, Switches, Hubs, and Connections.
Single click on each group of devices and connections to display the various choices. The devices you see
may differ slightly.
6
7
Step 3: Building the Topology – Adding Hosts
8
Add three more hosts.
Step 4: Building the Topology – Connecting the Hosts to Hubs and Switches
Adding a Hub
Select a hub, by clicking once on Hubs and once on a Generic hub (PT-Hub).
Add the hub by dragging and dropping the “PT-Hub” icon below PC0 and PC1.
9
Connect PC0 to Hub0 by first choosing Connections.
1 2 3 4 5
10
Repeat the steps above for PC1 connecting it to FastEthernet1 on Hub0. (The actual hub interface you
choose does not matter.)
Adding a Switch
Add the switch by moving the plus sign “+” below PC2 and PC3 and click once.
11
Click once on the Copper Straight-through cable.
1 2 3 4 5 6
Repeat the steps above for PC3 connecting it to Port 3 on Switch0 on port FastEthernet0/2. (The actual
switch port you choose does not matter.)
Move the cursor over the link light to view the port number. Fa means FastEthernet, 100 Mbps Ethernet.
12
Step 5: Configuring IP Addresses and Subnet Masks on the Hosts
Before we can communicate between the hosts we need to configure IP Addresses and Subnet Masks on
the devices.
Choose the Config tab and click on Settings. It is here that you can change the name of PC0. It is also here
where you would enter a Gateway IP Address, also known as the default gateway and the DNS Server IP
Address. We will discuss this later, but this would be the IP address of the local router. If you want, you
can enter the Gateway IP Address 172.16.1.1 and DNS Server IP Address 172.16.1.100, although it will not
be used in this lab.
13
Click on INTERFACE and then FastEthernet. Add the IP Address 172.16.1.10. Click once in the Subnet
Mask field to enter the default Subnet Mask. You can leave this at 255.255.0.0.
Also, notice this is where you can change the Bandwidth (speed) and Duplex of the Ethernet NIC (Network
Interface Card). The default is Auto (autonegotiation), which means the NIC will negotiate with the hub or
switch. The bandwidth and/or duplex can be manually set by removing the check from the Auto box and
choosing the specific option.
Bandwidth - Auto
14
If the host is connected to a hub or switch port which can do 100 Mbps, then the Ethernet NIC on the host
will choose 100 Mbps (Fast Ethernet). Otherwise, if the hub or switch port can only do 10 Mbps, then the
Ethernet NIC on the host will choose 10 Mbps (Ethernet).
Duplex - Auto
Hub: If the host is connected to a hub, then the Ethernet NIC on the host will choose Half Duplex.
Switch: If the host is connected to a switch, and the switch port is configured as Full Duplex (or
Autonegotiation), then the Ethernet NIC on the host will choose Full Duplex. If the switch port is
configured as Half Duplex, then the Ethernet NIC on the host will choose Half Duplex. (Full Duplex is a
much more efficient option.)
To close this dialog box, click the “X” in the upper right.
Repeat these steps for the other hosts. Use the information below for IP Addresses and Subnet Masks.
To verify the information that you entered, move the Select tool (arrow) over each host.
To delete a device or link, choose the Delete tool and click on the item you wish to delete.
15
Step 6: Connecting Hub0 to Switch0
To connect like-devices, like a Hub and a Switch, we will use a Cross-over cable. Click once the Cross-over
Cable from the Connections options.
Click once on Switch0 and choose FastEthernet0/4 (actual interface does not matter).
16
The link light for switch port FastEthernet0/4 will begin as amber and eventually change to green as the
Spanning Tree Protocol transitions the port to forwarding.
17
The PDU Last Status should show as Successful.
At this point we will want to reset the network, whenever you want to reset the network and begin the
simulation again, perform the following tasks:
Note: Because Packet Tracer also simulates the Spanning Tree Protocol, at times the switch may show
amber lights on its interfaces. You will need to wait for the lights to turn green on the switches before
they will forward any Ethernet frames.
18
Step 8: Verifying Connectivity in Simulation Mode
Click on Edit Filters and then deselect all filters (Show All/None) and select only ICMP.
19
Click once on PC0, then once on PC3.
Continue clicking Capture/Forward button until the ICMP ping is completed. You should see the ICMP
messages move between the hosts, hub and switch. The PDU Last Status should show as Successful. Click
on Clear Event List if you do not want to look at the events or click Preview Previous Events if you do. For
this exercise it does not matter.
Perform the following steps to save the topology (uses .pkt file extension).
Go to File > Save As …
20
Enter an appropriate file name in the Save as dialog box.
21
Browse to the file location of the topology you want to open, select it and click Open.
22
✓ Repeat the same procedure to add another PC
You should have a topology that looks like the one below.
✓ To connect these devices, move your mouse to the Device Area and click
Connections. Next, select the Copper Cross-over cable. Click on PC1, click on
FastEthernet to connect the cable to the PC’s FastEthernet’s interface and drag
to the Router, and click on FastEthernet0/0 interface.
✓ Next, click on the Copper Cross-over cable, click on PC2, click on PC’s 2 FastEthernet
interface and drag to the Router and connect it to the Router’s FastEthernet’s 0/1
interface.
Your network topology should look like the one below.
23
To configure Router 3:
✓ Click Router 3, and click on the Command Line Interface represented by the CLI tab ✓
Next, type no to the question “Continue with configuration dialog? [yes/no]: ” ✓ You
should see a window that looks like the one below.
24
✓ Hit Enter to start the configuration.
Before we proceed with the configuration, we need to understand the three basic Cisco
IOS command modes namely the USER MODE, the PRIVILEGED MODE, and the
GLOBAL CONFIGURATION MODE.
When you first get into a Cisco device, you start in the mode called the USER MODE
(User Exec) depicted by the name of the Router and a right angled bracket (>) next to
it. i.e. Router>. You cannot do much in this mode. You can only do some basic show
commands and Ping commands in this mode.
To be able to do much more, you need to move to the PRIVILEGED MODE
(Privileged Exec) depicted by the name of the Router followed by the #symbol i.e.
Router#. To move from the User Mode to the Privileged mode, use the enable or en
command. At the Privileged mode, you can view anything on the Router, unlike the
User Mode that is Limited. However, from the Privileged Mode, you can only do
verification and show commands, but you cannot configure anything on the Router.
So, to be able to configure the router, we need to move to the GLOBAL
CONFIGURATION MODE depicted by Router(Conifg)#. To move from the
Privileged mode to the Global Configuration Mode, use the configure terminal or conf
t command. In the Global Configuration Mode, we can configure any global settings
on the Router and settings that affect a particular interface. To exit from a particular
user mode, you use the exit, end or CTRL+Z command.
25
Now that we understand the Cisco IOS commands modes, let us proceed with the
configuration of the Router. Your command Line interface should look like the one
below. This is the USER MODE. Now we need to move to the Privileged mode with
the enable or en command. After each command, hit the Enter key to move to the next
command line.
✓ Next, we use the command configure terminal or conf t command to enter the global
configuration mode as shown below.
✓ To name our Router, we use the command hostname followed by the name we want to
assign to the router. For this tutorial, let us name this router Wissink1.
26
Note that after we input the command hostname Wissink1, the name of the router changes
from Router to Wissink1.
✓ Next, we need to set an encrypted password for logging into our Router in the privileged
mode. So we use the command enable secret followed by the password we intend to
use. Let us use pa$$word as our password for this tutorial.
✓ We need to configure a password for the console line (the console password for the
Router). We enter the commands line con o to enter the line configuration mode and
the command password pa$$word1 to set the password to pa$$word1 and type in login
to prompt for the password as shown below.
Next, we need to configure the password for the virtual terminal lines (the telnet password).
To do this we need to use the command exit to go back to the Global configuration mode
from the line configuration mode. In the global configuration mode, enter the commands
line vty 0 4, password pa$$word2 and login to prompt for the password and exit to return
to the global configuration mode as shown below.
Next, we need to configure IP addresses for our Router. To do this, we need to configure
the FastEthernet interfaces. First, let us assign an IP address to the FastEthernet0/0
interface. To do this, we enter the commands interface FastEthernet0/0 to enter the
interface configuration mode.
27
Next, enter the IP address and the no shutdown command (turns on the interface) as shown
below.
Next, we need to configure the FastEthernet0/1 interface. To do this, we need to exit to the
global configuration mode and repeat the step above as shown below.
We have successfully configured the two interfaces of our Router. We can check this
configuration by entering the command end to go back to the privileged mode and entering
the command show running-config to display the current configuration (all the
configuration we just set). Hit Enter to scroll down. You should have something similar to
this:
28
Notice that pa$$word is encrypted, but pa$$word1 and pa$$word2 are not encrypted. Next,
we need to save this configuration to the NVRAM, to do this, we use the command copy
running-config startup-config and hit enter to confirm
Now, we can exit and close the CLI of the router and configure the PCs. To configure the
PC, Click PC1, click the Desktop tab, click IP Configuration and let us set a static IP as
shown below.
Close PC1 window and let us set a static IP for PC3 as shown below
29
Next, close PC3 window. Next, let us verify our configuration by clicking PC1 and clicking
the command prompt. At the command prompt, enter ipconfig
Now we can ping to test connectivity. Let us ping PC1 from PC3.At first, you might get a
request timed out after which the ping will be successful.
30
Example Network Configuration
Select Router (2811) icon and drag and drop the icon to the workspace. Do it for two routers as shown in Figure 1.
Figure 1
31
Connect the two routers using “Copper Cross-Over” cable connection as shown in Figure 2. Select the interfaces as
shown in the figure.
Figure 2
32
Select PC icon and drag and drop the icon to the workspace. Do it for Three PCs and name one PC as “PCA” as shown in
Figure 3.
Figure 3
33
Select “Console” cable connection as shown in Figure 4.
Figure 4
34
After selecting the connection, Press “PC0” and right-click and select “RS 232”as shown in Figure 5.
Figure 5
35
Right-click “Router 0” and press “Console” as shown in Figure 6.
Figure 6
36
Connect PCA with Router A using the connection type shown in Figure 2.
Figure 7
37
For grouping devices in the network select the rectangle icon shown in figure 8.
Figure 8
38
Figure 9
39
Press PC0 icon and press “Desktop” tab and press “OK” to enter CLI of Router 0.
Figure 10
40
Do the configurations for Router 0 as shown in Figure 11.
Figure 11
Press PC1 icon and press “Desktop” tab and press “OK” to enter CLI of Router 1 and do the configurations for Router 1
as shown in Figure 12.
Figure 12
41
Press PCA icon and select Desktop tab. Select “IP Configuration” as shown inn figure 13.
Figure 13
Enter IP address, Subnet Mask and Default Gateway for PCA as shown in Figure 14
Figure 14
42
Label the network with all the IP address and subnet Masks given to each device as shown inn Figure 15.
Figure 15
43
Ping the IP address configured for PCA from Router 0 (CLI). You should be in the Privileged mode to ping.
Figure 16
44
Ping the IP address configured for Fa0/0 in Router A from PCA. Press Desktop Tab and select Command Prompt.
Figure 17
45