Sei sulla pagina 1di 26

Exp. No.

Aim: To establish a connection between two PCs in same network.

Software used: Cisco Packet Tracer.

Theory:

Procedure:

Step 1: Place a basic switch and two PCs on the workspace.

Step 2: Connect both the PCs to the switch using copper straight through cable.

Step 3: Click on simulation button and then observe the packet flow

Answer the following questions based on the above 3 steps:

Q 1.1: What type of packets flow once you start the simulation?

Q 1.2: What are STP and DTP packets?

Q 1.3: Why the communication fails between two computers?

Q 1.4: What are the MAC addresses of PC0 and PC1?

Step 4: Open PC0 --> Desktop --> IP Configurations and put IP address 192.168.10.1
and press TAB.

Step 5: Open PC1 --> Desktop --> IP Configurations and put IP address 192.168.10.2
and press TAB.
Step 6: Open PC0 --> Desktop --> Command Prompt and type ping 192.168.10.2 and
press enter.

Answer the following questions based on the above 3 steps:

Q 1.5: What packets transfer between PC0 and PC1?

Q 1.6: What is ARP?

Q 1.7: What is ICMP?


Exp. No. 2

Aim: To establish a connection between two PCs in different network.

Software used: Cisco Packet Tracer.

Theory:

Procedure:
Step 1: Place two basic switches and four PCs on the workspace.

Step 2: Connect two PCs to one switch and other two PCs to another switch using
copper straight through cable, as shown in the figure above.

Step 3: Place a Router that has atleast two Fast Ethernet ports in it. Connect the router
with the two switches.

Answer the following questions based on the above 3 steps:

Q 2.1: Why PC0-PC1 and PC2-PC3 are said to be on different networks?

Q 2.2: What is a router? What role does it play?

Q 2.3: Can we ping PC0 from PC1? If yes, why?

Q 2.4: Can we ping PC2 from PC0? If no, why?

Step 4: Click on the router and go to CLI tab.

Step 5: Write the following commands to enable the terminal FastEthernet0/0

Router>enable
Router#configure terminal
Router(config)#interface FastEthernet0/0
Router(config-if)#ip address 192.168.10.1 255.255.255.0
Router(config-if)#no shutdown
Router(config-if)#exit
Step 6: Write the following commands to enable the terminal FastEthernet1/0

Router(config)#interface FastEthernet1/0
Router(config-if)#ip address 192.168.20.1 255.255.255.0
Router(config-if)#no shutdown
Router(config-if)#exit

Step 7: Click on the PC0 --> Desktop --> IP Configuration and write the following

Step 8: Click on the PC1 --> Desktop --> IP Configuration and write the following

Step 9: Click on the PC2 --> Desktop --> IP Configuration and write the following
Step 10: Click on the PC3 --> Desktop --> IP Configuration and write the following

Step 10: To check the connectivity between the PCs of two different network, open
the command prompt of PC0 and write ping 192.168.20.3
Answer the following questions based on the above steps:

Q 2.5: What is the flow of packets when we ping from PC of one network to the PC
of another network?

Q 2.6: What is the need of putting default gateway in the IP configuration of PCs?
Exp. No. 3

Aim: To create a simple LAN using Cisco iOS.

Software used: Cisco Packet Tracer.

Theory:

Configuring Switch1 via CLI tab.


Configuring Switch2 via CLI tab.
Exp. No.

Aim: To create a WAN between three systems in three different cities.

Software used: Cisco Packet Tracer.

Theory:

Cloud configuration steps:

Step1: After clicking on Cloud, click on config tab and then follow the following
steps.
Step2: Click on interface, select Serial0. Give some ID in DLC1 and the name of two
cities between which connection is established. Then click add. Follow this step for the
third city remaining. Serial0 is selected because it is the name of wire connected
between one city and the cloud.

Step3: Follow the above step after selecting Serial1and Serial2as shown below.

Step4: Click on Connections and select Frame Relay. Select the Port and Sublink as
shown below and then add them.
Router configuration steps:

Step1: After clicking on Router0, click on config tab and then follow the following
steps.

Step2:

Step3:

Step4:Click on Serial2/0 as above and then click CLI tab and type the
commandencapsulation frame-relay.

Step5: Click on Config, and then click on Routing and select static. Add the network,
mask and next hop of other two routers.
Step6: Repeat the above steps from Step1 to Step 5 for other two routers as well.
Exp. No.

Aim: To configure DHCP using Cisco Router.

Software used: Cisco Packet Tracer.

Theory:

Click on Routers and check that IP addresses are unassigned.


After completing the connections, again click on first Router and typereload.
Following operation will take place. Save the changes and press enter when it asks for
Proceed with reload?

Repeat the above process by clicking on second router.


When we click on the first computer associated with Router0 and select Desktop and
then IP Configuration and click on DHCP, an error occurred.

This happened because we haven’t configure our switch with router. Click on Router0
and write the following commands.
Now when we click on first computer and then check for DHCP, following output
occurs.

The IP address has been assigned automatically. We can similarly check for other two
systems associated with Router0. For example PC3 will have an IP address as follows,

Similarly, another Router has to be configured like previous one for DHCP
configuration.
When we check the PC associated with Router1, we can see the dynamically allocated
IP address as follows.
Exp. No.

Aim: To create a DNS server using Cisco Packet Tracer.

Software used: Cisco Packet Tracer.

Theory:

Click on DNS Server. Select Desktop and click on IP Configuration. Fill the data as
follows.

Click on DNS Server. Select Services and click on DNS. Then fill the data as follows.
You can give the urlname as per your wish. Now go to HTTP option in the same
window. Create your web page content to be displayed.

Save the above file. Now click your system and go to Desktop. Select IP Configuration
and give the IP to your system. Give the DNS Server IP also.

Again select your system and click Desktop and then click Web Browser.
Now type the url you saved earlier.

This is the desired result.


Exp. No.

Aim: To create a DHCP server using Cisco Packet Tracer.

Software used: Cisco Packet Tracer.

Theory:

Select a server. Name it DHCP Server. Click on it. Go to Desktop. Click on IP


Configuration and fill the data as follows.
Now, go to Services and select DHCP. Select some address for Default Gateway, DNS
Server and Start IP Address. Add it and save it. You can have more than one pool.

Click on Router0, go to Config and select FastEthernet0/0 and enter the IP address.

Similarly, select FastEthernet1/0 and enter the IP address.

Select CLI and write the following commands.


Similarly, click on Router1 and repeat the above steps.

Click on the computer icons one by one and then click on Desktop. Select IP
Configuration and click on DHCP. DHCP will dynamically allocate IP address to each
system. It will look like the figure below.
Exp. No.

Aim: To configure DHCP and DNS server using Cisco iOS.

Software used: Cisco Packet Tracer.

Theory:
Click on DNS Server. Select Desktop and then IP Configuration and then fill the entries
as follows.

Again click on DNS server and select Services. Now go to DNS, write the IP of DNS
server and give the name of website. Add this field and select ON button above. Again
open the DHCP Server CLI and type the following commands
Now when we click on the connected PCs and Laptop and check for their IP addresses,
we’ll see that the IP address has been allocated dynamically.

Now click on the laptop, go to desktop and then select web browser. Write the url of
DNS Server. Following output will come.
Let’s write the domain name which we had given. Let’s check it in another system
connected.

Potrebbero piacerti anche