Cisco Packet Tracer
This tutorial will walk you through the basic of using packet tracer. Packet Tracer is a very powerful tool that allows you to emulate a network topology without physically building it with nifty piece of software you won't need expensive pieces of equipment or spend hours wiring things together by the end of this tutorial you will know how to set up a simple network consisting of a router and two PCs. Let's begin...
First, click the router icon in the device area at the bottom and choose the 1841 for one router move your mouse to the logical workspace click to place the router. Next Click end devices in the device area choose the generic PC and place it in the workspace and repeat to add a second PC as shown in the above picture. To connect them click the connection and choose the copper crossover cable and click on PC0 and click on FastEthernet to connect the cable to the PCs fast ethernet interface then while in control of the cable connect the other end to Router0 FastEthernet0/0interface, repeat with PC1 and the remaining FastEthernet interface on router 0. You have physically set up a network in packet tracer.
Now let's configure to make it work
Follow the following steps:
Click router0 - a window will come up and go to the command-line interface or CLI tab.
Here with this question to continue with the configuration dialog type no.
We will manually configure the router with commands.
Press return to get started as this prompt suggests at this prompt type enable to enter privileged exec mode (You will know you are in privileged exec mode when you see the router name followed by a number sign).
Type inconfig t to enter gobal config mode.
Type hostname Router0 to name the router. Next type enable a secret class to set an encrypted password for logging in to privileged exec mode.
Configure the password for the console line by entering line con 0 and then password Cisco. Enter login to enable password prompting. Enter exit to return to global configuration mode configure the password for the virtual terminal lines by entering line vty 0 space 4 then password Cisco
again enter login to enable the password requirement and then exit to return.
To configure the fast ethernet interface enter interface and then the interface name, in this case, we will start with the FastEthernet0/0.
Next enter an IP address 192.168.1.1 space 255.255.255.0 to set this interfaces IP address and subnet mask although optional you may want to add a description to the interface for later reference by entering in description Router0 FastEthernet 0/0. Lastly, enter the command no shutdown to start the interface exit back to global config mode repeat with FastEthernet 0/1 except this time use IP address 192.168.2.1 for the IP address for the description you can use router0 FastEthernet0/1 and don't forgot to type in no shutdown to enable the interface.
Exit out of interface config mode and then exit out of global config mode hit enter at this prompt and you will be back at privileged exec mode enter in show running- config to display the current configuration continuously hit enter to scroll down you will see all the configurations you just set.
To save this configuration to the NVRAM so that when the router boots up it automatically loads it enter in copy running- config start-up-config hit enter this prompt to confirm. Router configuration is now completed and now close the Router0 window.
To configure the PC0 first click PC0 and go to the desktop tab here click IP configuration
we will set the static IP address to 192.168.1.2 hit tab keep default subnet mask enter 192.168.1.1 for the default gateway close the PC 0 window repeat with PC 1 except for the IP address use 192.168.2.2 subnet mask: 255.255.255.0 default gateway: 192.168.2.1 and then close PC1 window.
By now there should be green dots on the cables near devices this means that they are connected.
Let's try pinging PC 1 from PC 0.
Click PC0 go to the desktop tab and click command prompt this acts just like a DOS prompt in a windows operating system for example type in ipconfig and you can see the details of the IP address, subnet mask, and default gateway.
Enter the command ping 192.168.2.2
At first, you may get request timed out after that the ping should succeed.
You can try again and it should be fine.
The ping is successfully done.
Now let's visually see the pane with simulation mode near the bottom right corner you will see a tab with a clock labeled real-time click the tab behind it to activate simulation mode.
After that please see the video given below:
Observer that PDU travels to Router0 and then to PC1 and then back.
once it returns back to PC0 the PDU is verified and checked off which means the ping was a success DONE.
--- System Configuration Dialog ---once it returns back to PC0 the PDU is verified and checked off which means the ping was a success DONE.
USE THIS AS REFERENCE:
Would you like to enter the initial configuration dialog? [yes/no]: no
Press RETURN to get started!
Router>enable
Router#config t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname Router0
Router0(config)#enable secret class
Router0(config)#line con 0
Router0(config-line)#password Cisco
Router0(config-line)#login
Router0(config-line)#exit
Router0(config)#line vty 0 4
Router0(config-line)#password Cisco
Router0(config-line)#login
Router0(config-line)#exit
Router0(config)#interface FastEthernet0/0
Router0(config-if)#ip address 192.168.1.1 255.255.255.0
Router0(config-if)#description Router0 FastEthernet0/0
Router0(config-if)#no shutdown
Router0(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
Router0(config-if)#exit
Router0(config)#interface FastEthernet0/1
Router0(config-if)#ip address 192.168.2.1 255.255.255.0
Router0(config-if)#description Router0 FastEthernet0/1
Router0(config-if)#no shutdown
Router0(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up
Router0(config-if)#exit
Router0(config)#exit
Router0#
%SYS-5-CONFIG_I: Configured from console by console
Router0#show running-config
Building configuration...
Current configuration : 742 bytes
!
version 12.4
no service timestamps log datetime msec
no service timestamps debug datetime msec
no service password-encryption
!
hostname Router0
!
!
!
enable secret 5 $1$mERr$9cTjUIEqNGurQiFU.ZeCi1
!
!
!
!
!
!
ip cef
no ipv6 cef
!
!
!
!
!
!
!
!
!
!
!
!
spanning-tree mode pvst
!
!
!
!
!
!
interface FastEthernet0/0
description Router0 FastEthernet0/0
ip address 192.168.1.1 255.255.255.0
duplex auto
speed auto
!
interface FastEthernet0/1
description Router0 FastEthernet0/1
ip address 192.168.2.1 255.255.255.0
duplex auto
speed auto
!
interface Vlan1
no ip address
shutdown
!
ip classless
!
ip flow-export version 9
!
!
!
!
!
!
!
!
line con 0
password Cisco
login
!
line aux 0
!
line vty 0 4
password Cisco
login
!
!
!
end
Router0#
Router0#
Router0#
Router0#
Router0#
Router0#
Router0#
Router0#
Router0#
Router0#copy running-config startup-config
Destination filename [startup-config]?
Building configuration...
[OK]
Router0#
DOWNLOAD COMMAND.TXT
YOU CAN DOWNLOAD THE FILE THAT I HAVE CONFIGURED DURING TUTORIAL
DOWNLOAD PKT FILE
I hope that you will get the full idea about Cisco packet tracer and how to set up a simple network consisting of a router and two PCs. Any queries based on this post are most welcomed. I will make clear for that. Thanks for being on my site.
0 Response to "How to setup a simple network consisting of a router and two PCs - Cisco packet tracer"
Post a Comment