Showing posts with label Packet Tracer Tutorial. Show all posts
Showing posts with label Packet Tracer Tutorial. Show all posts

October 26, 2012

DNS on packet tracer:

Here in this tutorial, we are going to set a dns (domain name system) server and a dhcp server. And then from our PC we will use dns service.
1
Server 0 in the above topology is our dhcp server and Server 1 is our dns server.
a

Set up IP on server 0.
 2
Set up DHCP on server 0.
3
Set up IP on server 1.
4
Now, go to PC and select DHCP.
6
Go to Web Browser and enter Server 0 ip address. You can access the website of the server.
7
Now, let us set DNS on server 1.
9
Now, again go to PC and in the web browser enter the name that you set in DNS.
 8
Voila, we have done it. Now, in this tutorial, router is additional and we can use it if required, Set the IP of the interface. Though i do not recommend to use this GUI panel for this.
i

To see how to make a router DHCP server. Click here. You can also achieve DNS by using single sever by supplying the Server with the same IP and DNS address. Try it.

DHCP on Packet tracer through Server

We are going to apply DHCP on server and PCs will be assigned IP addresses through DHCP.
serv1
Open the server and go to the Desktop tab, click IP Configuration and enter the IP address.
2
Now, go to the Config tab.
3
And go to the DHCP
4
i. Enter IP for default Gateway.
ii. Start IP address
iii.. Maximum number of Users.
iv. Click Save.
6
Now, click on any PC that is attached to the server, go to IP configuration and select DHCP. You will see that DHCP will successfully assign IP address to the PC
7
Now, if we go back to server and assign DNS Server address and then go to any PC and select DHCP.
9 
It will also assign DNS to the PC as well.   
 10  
We can also open the website of the server through any PC by going to the Web Browser option and entering the IP address of the server.
11
And we can ping the server by going to the PC’s command prompt and entering server’s IP address.
12

October 22, 2012

DHCP on packet tracer

This tutorial is about how to configure dhcp on cisco router in packet tracer. The Dynamic Host Configuration Protocol (DHCP) is a network protocol that is used to configure network devices. DHCP allows a computer to join an IP-based network without having a pre-configured IP address. DHCP is a protocol that assigns unique IP addresses to devices, then releases and renews these addresses as devices leave and re-join the network. 
Internet Service Providers (ISPs) usually use DHCP to allow customers to join the Internet with minimum effort. The DHCP server maintains a database of available IP addresses and configuration information. When it receives a request from a client, the DHCP server determines the network to which the DHCP client is connected, and then allocates an IP address. DHCP servers typically grant IP addresses to clients only for a limited interval.

Lets apply DHCP on packet tracer.
First, let us make a topology with one router on which we will apply DHCP and several client PCs. More like this one,

Untitled

Now, we will apply DHCP on the router.
The commands in sequence are as follows.


cli actual

In the following command “ip dhcp pool cisco”, we are creating a  pool for DHCP called cisco. cisco is the name here and we can name it whatever we want.
Similarly, in the command “default-router “ we are telling the DHCP about the default route to follow.
Notice, after we exit from DHCP mode, we are excluding some IP addresses by applying this command “ip dhcp excluded-addresses x-x”, where x is the starting and ending IP address respectively. We are basically reserving some IPs for our use. It can be used to attach printers, or assign it to some specific users for security purposes. You can also give dns address in dhcp by using the following command.
dns-server 192.168.1.15.

Now, open the PC.

image

Click on IP Configuration

image

Select from Static to DHCP

image

And after DHCP request is completed you will see the following screen.

image

Now, after applying some IPs in sequence, DHCP will skip the IPs that we have excluded from our DHCP pool.

image

That is all, we have applied DHCP on packet tracer.



October 20, 2012

EIGRP on Packet Tracer

Hi everyone, today we are going to apply Enhanced Interior Gate Way Routing Protocol (EIGRP) on packet tracer.  Here are the basic set of commands that we can apply on router CLI mode in order to apply EIGRP on router.

clip_image002

Also, look at some additional commands.

clip_image002[7]

Now, we are going to apply EIGRP on the following topology.

eigrp diagram

Now, after successfully applying IP addresses like in this topology, we will apply following commands.
Router(config)#router eigrp 10
Router(config-router)#network 192.168.1.0
Router(config-router)#network 192.168.2.0
Router(config-router)#exit

Apply the above set of commands on both routers like this.

eigrp 1

And eigrp protocol has been applied on this topology. Notice the following command.
router eigrp 10
This number ‘10' is the process ID.







October 19, 2012

RIP Version 2 on Packet Tracer

There is no big difference between RIP version 1 and version 2 when we are applying them in packet tracer. In order to apply RIP version 2 on packet tracer. we will just have to add the following command. We will follow the same example that we used in RIP version 1 in this article.

rip

Router(config)# router rip
Router(config-router)# network 192.168.1.0
Router(config-router)# network 192.168.2.0
Router(config-router)# version 2
Router(config-router)#exit

You see there is just the addition of one statement i.e. “version 2”. The rest is the same. We will apply the above set of commands on both routers i.e. Router 3 and Router 2 ,used in the topology above which is also used in this article, above and bingo, we have applied RIP V2 on packet tracer.
Just make sure that the protocol is applied as an additional step and cannot replace the basic steps i.e. we have to assign IP addresses to the router’s interfaces and PCs and also change the state of the interfaces from down to UP like in this article and then we will go ahead and apply Protocol.


RIP on Packet Tracer

Main Commands
clip_image002
You need to advertise only the classful network number, not a subnet.
Explanation:
Lets apply RIP protocol on the following topology.


Now, we will follow the steps as mentioned in detail in the following article. i.e.
i. We will assign IP addresses to all the fast Ethernet and serial interfaces respectively.
ii We will change the state of the interfaces from down to UP.
Then, after we are done with the basic step. We will apply RIP protocol commands on both routers.

Configuration of Router 0 i.e. configuring both serial and fastethernet interfaces.


Configurations of R1


Assigning IP address to PC0


Assigning IP address to PC1





R1
In order to apply protocol RIP, we will write the following set of commands.

Router(config)# router rip
Router(config-router)# network 192.168.1.0
Router(config-router)# network 192.168.2.0
Router(config-router)# network 192.168.3.0
Router(config-router)#exit


R2:
In order to apply protocol RIP, we will write the following set of commands on R2 as well.

Router(config)# router rip
Router(config-router)# network 192.168.1.0
Router(config-router)# network 192.168.2.0
Router(config-router)# network 192.168.3.0
Router(config-router)#exit









Write all the commands in the same fashion as in the above screen shots and voila, we are done with RIP protocol. Another important thing here is that we will add all the networks that we are using in our topology. Here in this particular example i am just using two networks x.x.1.0 and x.x.2.0 so thats why i have added these two network addresses to the RIP protocol.

Now, you can check it. Traffic is enabled and you can easily send data from PC0 to PC1.





What is Packet Tracer

Packet Tracer is a powerful network simulator that can be utilized in training for CCNA and CCNP certification exam by allowing students to create networks with an almost unlimited number of devices and to experience troubleshooting without having to buy real Cisco routers or switches. The tool is created by Cisco Systems. The purpose of Packet Tracer is to offer students a tool to learn the principles of networking as well as develop Cisco technology specific skills. However, it is not be used as a replacement for Routers or Switches. 

Here how it looks like after we start it.

ptfirst

We are different modules and panels available in the packet tracer. Some important modules, which are important to understand for the working in Packet Tracer, are mentioned in the following diagram.

pt

Now, in order to create a topology, we will have to select some of the devices and put them in our main window i.e. the white portion of packet tracer. and here how it looks after we add the devices.

1

Now, we will have to connect these devices and for that we use cables. To understand the cables, please refer to my following article.

new

And after you successfully create the topology, you can check either the traffic is flowing or not by selecting the packet from right panel and putting it on both PCs as follows.

2pac

For detailed article on making the topology and successfully enabling the communication, read this article


Technorati Tags: What is packet tracer, pt activities,  how to work on packet tracer,  packet tracer tutorial, how packet tracer works,  packet tracer topology,  packet tracer networking,  networking in packet tracer

October 17, 2012

Communication between PCs in Packet Tracer

Here, we will see communication enabled between PCs via Router in Packet Tracer.
So, for this we need two PCs, a router ,and two cross over cables to connect them.
Important point is that we use cross over cable to connect PC to a router because they both use the same pins for transmission and receiving of data.

1

Now, we will connect them by selecting fast ethenet interfaces on both ends.
2
Similarly, on the PC side we will select fast Ethernet interface.
3
Now, we have connect the devices. Further, we will go to the router CLI mode and enter the following commands.
Step by step ,
we will have to do the following things.
i. Access the interfaces one by one
ii. Assign IP addresses to interfaces
iii. Change the status of the interfaces i.e. from Down to Up.
iv. Assign IP addresses to PCs.
v. Assign Default GateWay to PCs. FYI fast ethernet ip address is the gateway address to the PC. 
Now, commands of the Router CLI mode are as follows.
int
Now, we have accessed both interfaces one by one and we have assigned IP addresses respectively.
new
See the difference the lights have changed the color from Red to Green :)
Now, lets assign IP addresses to the PCs.
Click on PC1, go to Desktop, then click IP Configuration.
PC1:
pc1
PC2:
pc2
Now, our communication is enabled and we are able to communicate from PC1 to PC2 via Router.
Click on the packet in the right panel on the packet tracer, then click on PC1 and then click on PC2. You will see the successful packet tracer (status is shown in the bottom right corner)
packet
Select it and click on both PCs.
2pac

Bingo, your communication is successful.

C program to Read From a File

#include <stdio.h> #include <stdlib.h> void main() {     FILE *fptr;     char filename[15];     char ch;   ...