21CSS202J Computer Networks Lab Manual
21CSS202J Computer Networks Lab Manual
21CSS202J Computer Networks Lab Manual
LABORATORY MANUAL
offered by
DEPARTMENT OF INFORMATION TECHNOLOGY
Department: IT
Year/Semester: II/III
Register Number:
Date of Submission:
Staff Name :
Signature :
List of Experiments
1. Node: In a communications network, a network node is a connection point that can receive,
create, store or send data along distributed network routes.
9. Transmission media: The medium through which the signals travel from one device to
another. These are classified as guided and unguided. Guided media are those that provide a
conduit from one device to another. Eg Twisted pair, coaxial cable etc. Unguided media
transport signals without using physical cables. Eg. Air.
Result: Thus the hosts in a Star topology are configured and simulated using Packet Tracer 7.1
simulation Tool.
SUBNETTING
Aim: To subnet a given network and simulate using Cisco packet tracer simulation tool
Scenario: To subnet a network with IP address: 192.168.1.0/27 and to find the subnet network
address, broadcast address and host address of the subnets.
NETWORK BROADCAST
NETWORK IP ID HOST ID ID
NETWORK 192.168.1.0 192.168.1.1
192.168.1.0 192.168.1.31
1 192.168.1.31 192.168.1.30
NETWORK 192.168.1.32 192.168.1.33
192.168.1.32 192.168.1.63
2 192.168.1.63 192.168.1.62
NETWORK 192.168.1.64 192.168.1.65
192.168.1.64 192.168.1.95
3 192.168.1.95 192.168.1.94
NETWORK 192.168.1.96 192.168.1.97
192.168.1.96 192.168.1.127
4 192.168.1.127 192.168.1.126
192.168.1.128 192.168.1.129
NETWORK
192.168.1.159 192.168.1.128 192.168.1.159
5 192.168.1.158
Procedure:
Step 5: Configure the router 0 by clicking on the config. The router is connected to 2
networks. For each connection, separate IP addresses are assigned. For connections to
network 1 and 2 the IP address for router 0 are 192.168.1.4 and 192.168.1.33
respectively. Similarly for router 1, to connect to network 2 ad 3, the IP addresses are
192.168.1.34 and 192.168.1.68 Choose the subnet mask as 255.255.255.224.Select the
fast Ethernet for connecting host and router and serial interface for connecting the
routers. click on the port status to turn on the router.
Step 6: To configure router in static mode click on the router 0, select the static mode. Type the
address of the network to which the packets to be sent (192.168.1.64) and the address
of the next router(192.168.1.34). Click ok. Similarly click on the router 1, select the
static mode. Type the address of the network to which the packets has to be sent
(192.168.1.0) and the address of the next router (192.168.1.33).
Step 7: To confirm Data transfer between the devices
Click on the node. Select desktop option and then command prompt. Once the window
pops up, ping the IP address of the device to which node0 is connected. Ping statistics
will be displayed. Also simulate in simulation and real mode.
Result: Thus the subnetting of the given network is carried out and simulated using packet
tracer simulation tool.
EXPERIMENT 4
Simulation Output:
Result: Thus the LAN configuration using crossover and straight through cables is
simulated in Cisco packet tracer.
Step 6: The second router is also configured using the above commands.
Step 7: To confirm data transfer between the devices
Click on the node. Select desktop option and then command prompt. Once the window
pops up, ping the IP address of the device to which node0 is connected. Ping statistics
will be displayed. Also simulate in simulation and real mode.
Simulation Output:
Result: Thus the configuration of router using CLI commands is simulated using packet tracer
Simulation output:
Result: Thus the VLAN is configured and simulated using Packet Tracer simulation tool.
Aim: To configure router in static mode using packet tracer simulation tool
.
Software used: Cisco Packet Tracer
Procedure
Step 1: Select the generic hosts and routers
Step 2: Connect the host and routers using copper cross over and router to router using serial
DCE
Step 3: Identify the networks and label as 10.10.1.0, 10.10.2.0 and 10.10.3.0
Step 4: Configure the generic hosts PC0 with the IP address 10.10.1.1, gateway address
10.10.1.2 and host 2 with IP address 10.10.3.1and gate way address 10.10.3.2
Step 5: Configure the router 0 by clicking on the config. The router is connected to 2
networks. For each connection, separate IP addresses are assigned. For connections to
network 1 and 2 the IP address for router 0 are 10.10.1.2 and 10.10.2.1 respectively.
Similarly for router 1, to connect to network 2 ad 3, the IP addresses are 10.10.2.2 and
10.10.3.2. Choose the subnet mask as 255.255.255.0.Select the fastethernet for
connecting host and router and serial interface for connecting the routers click on the
port status to turn on the router.
Step 6: To configure router in static mode click on the router 0, select the static mode. Type the
address of the network to which the packets to be sent (10.10.3.0) and the address of .
the next router(10.10.2.2). Click ok. Similarly click on the router 1,select the static
mode. Type the address of the network to which the packets to be sent (10.10.1.0) and
the address of the next router(10.10.2.1).
Step 7: To confirm Data transfer between the devices
Click on the node. Select desktop option and then command prompt. Once the window
pops up, ping the IP address of the device to which node0 is connected. Ping statistics
will be displayed. Also simulate in simulation and real mode.
Result: Thus the router is configured in static mode using packet tracer simulation tool.
Aim: To simulate Routing Information Protocol (Default) using packet tracer simulation tool
.
Software used: Cisco Packet Tracer
Result: Thus the Routing Information Protocol (Default Routing) is simulated using packet
tracer simulation tool.
Aim: To simulate Routing Information Protocol (V1) using packet tracer simulation tool
.
Software used: Cisco Packet Tracer
Result: Thus the Routing Information Protocol (Version 1) is simulated using packet tracer
simulation tool.
Aim: To simulate Routing Information Protocol (V2) using packet tracer simulation tool
.
Software used: Cisco Packet Tracer
Step 5: Configure the router 0 by clicking on the config. The router is connected to 2
networks. For each connection, separate IP addresses are assigned. For connections to
network 1 and 2 the IP address for router 0 are 192.168.1.3 and 192.168.1.33
respectively. Similarly for router 1, to connect to network 2 ad 3, the IP addresses are
192.168.1.34 and 192.168.1.67 Choose the subnet mask as 255.255.255.224.Select the
fastethernet for connecting host and router and serial interface for connecting the
routers click on the port status to turn on the router.
Step 6: To configure Routing Information Protocol version 2, click on the router 0.Click on the
CLI . Type the following commands
#en
#config t
# router rip
# version 2
#network 192.168.1.0
#network 192.168.1.32
#exit
Similarly click on the router 2, click on the CLI .Type the following commands
#en
#config t
# router rip
# version 2
#network 192.168.1.64
#network 192.168.1.32
#exit
Simulation output:
Result: Thus the Routing Information Protocol (Version 2) is simulated using packet tracer
simulation tool.
Aim: To simulate Enhanced Interior Gateway Routing Protocol (EIGRP) using Cisco packet
. tracer simulation tool
Software used: Cisco Packet Tracer
Network components: PCs-6, Routers 3, Connectors, switches (3)
Procedure
Step 1: Select the generic hosts, switches and routers
Step 2: Connect the host, switches and routers using copper cross over and router to router
using serial DCE
Step 3: Identify the networks and label as 192.168.1.0, 192.168.2.0,192.168.3.0,10.0.0.0
and 20.0.0.0
Step 4: Configure the generic hosts with the following IP address and gateway address
Step 5: Configure the router 0 by clicking on the config. The router0 is connected to 2
networks. For each connection, separate IP addresses are assigned. For connections to
networks 1 and 2, the IP address for router 0 are 192.168.1.1 and 10.0.0.1 respectively.
Similarly for router 1, to connect to network 1,2 ad 3, the IP addresses are 10.0.0.2
192.168.2.1 and 20.0.0.1 and for router 2 to connect to network 2 and 3 the IP address
are 20.0.0.2 and 192.168.3.1.Choose the subnet mask as 255.255.255.0 and 255.0.0.0.
based on the IP address. Select the fast Ethernet interface for connecting host and
router and serial interface for connecting the routers click on the port status to turn on
the router
Simulation Output:
Result: Thus the Enhanced Interior Gateway Routing Protocol (EIGRP) is simulated using
packet tracer simulation tool.
Aim: To simulate single area Open Shortest Path First routing protocol using Cisco packet
. tracer simulation tool
Software used: Cisco Packet Tracer
Network components: PCs-2, Routers 2, Connectors
Procedure
Step 1: Select the generic hosts, switches and routers
Step 2: Connect the host, switches and routers using copper cross over and router to router
using serial DCE
Step 3: Identify the networks and label as 10.10.1.0, 10.10.2.0 and 10.10.3.0
Step 4: Configure the generic hosts PC0 with the IP address 10.10.1.1, gateway address
10.10.1.2 and host 2 with IP address 10.10.3.1and gate way address 10.10.3.2
Step 5: Configure the router 0 by clicking on the config. The router is connected to 2
networks. For each connection, separate IP addresses are assigned. For connections to
network 1 and 2 the IP address for router 0 are 10.10.1.2 and 10.10.2.1 respectively.
Similarly for router 1, to connect to network 2 ad 3, the IP addresses are 10.10.2.2 and
10.10.3.2. Choose the subnet mask as 255.255.255.0.Select the fastethernet for
connecting host and router and serial interface for connecting the routers click on the
port status to turn on the router.
OSPF has some basic rules when it comes to area assignment. OSPF must be
configured with areas. The backbone area 0, or 0.0.0.0, must be configured if more
than one area assignment is done. If OSPF is configured in one area; any area can be
chosen, although good OSPF design dictates to configure area 0.
Step 6: To configure OSPF click on the router 0,click on the CLI. Type the following
commands
#router ospf 1
#network 10.10.1.0 0.0.0.255 area 0
#network 10.10.2.0 0.255.255.255 area 0
#exit
Similarly click on the router 1, click on the CLI .Type the following
commands.
#router ospf 1
#network 10.10.3.0 0.0.0.255 area 0
#network 10.10.2.0 0.255.255.255 area 0
#exit
Step 7: To confirm Data transfer between the devices
Click on the node. Select desktop option and then command prompt. Once the window
pops up, ping the IP address of the device to which node0 is connected. Ping statistics
will be displayed. Also simulate in simulation and real mode.
Result: Thus the single area Open Shortest Path First Protocol is simulated using packet tracer
simulation tool.
Aim: To simulate Multi Area Open Shortest Path First routing protocol using Cisco packet
. tracer simulation tool
Software used: Cisco Packet Tracer
Network components: PCs-6, Routers 3, Connectors, switches (3)
Procedure
Step 1: Select the generic hosts, switches and routers
Step 2: Connect the host, switches and routers using copper cross over and router to router
using serial DCE
Step 3: Identify the networks and label as 192.168.1.0, 192.168.2.0,192.168.3.0,10.0.0.0
and 20.0.0.0
Step 4: Configure the generic hosts with the following IP address and gateway address
Step 5: Configure the router 0 by clicking on the config. The router0 is connected to 2
networks. For each connection, separate IP addresses are assigned. For connections to
networks 1 and 2, the IP address for router 0 are 192.168.1.1 and 10.0.0.1 respectively.
Similarly for router 1, to connect to network 1,2 ad 3, the IP addresses are 10.0.0.2
192.168.2.1 and 20.0.0.1 and for router 2 to connect to network 2 and 3 the IP address
are 20.0.0.2 and 192.168.3.1.Choose the subnet mask as 255.255.255.0 and 255.0.0.0.
based on the IP address. Select the fast Ethernet interface for connecting host and
router and serial interface for connecting the routers click on the port status to turn on
the router .OSPF has some basic rules when it comes to area assignment. OSPF must
be configured with areas. The backbone area 0, or 0.0.0.0, must be configured if more
than one area assignment is done. The network 192.168.2.0 is considered as backbone
area. Other areas are defined as area10 and area 20
Step 6: To configure multi area OSPF click on the router 0,click on the CLI. Type the
following commands
#en
#config t
# router ospf 1
#network 192.168.1.0 0.0.0.255 area 10
Simulation Output:
Result: Thus the Multi area Open Shortest Path First Protocol is simulated using packet tracer
simulation tool.
Aim: To simulate Border Gateway Routing protocol using Cisco packet tracer simulation
. tool
Software used: Cisco Packet Tracer
Network components: PCs-2, Routers 2, Connectors
Procedure
Step 1: Select the generic hosts, switches and routers
Step 2: Connect the host, switches and routers using copper cross over and router to router
using serial DCE
Step 3: Identify the networks and label as 192.168.1.0, 192.168.2.0 and 192.168.3.0
Step 4: Configure the generic hosts PC0 with the IP address 192.168.1.2, gateway address
192.168.1.1 and host 2 with IP address 192.168.3.2and gateway address 192.168.3.1
Step 5: Configure the router 0 by clicking on the config. The router is connected to 2
networks. For each connection, separate IP addresses are assigned. For connections to
network 1 and 2 the IP address for router 0 are 192.168.1.1 and 192.168.2.1
respectively Similarly for router 1, to connect to network 2 ad 3, the IP addresses are
192.168.2.2 and 192.168.3.1.Choose the subnet mask as 255.255.255.0.Select the on
fastethernet for connecting host and router and serial interface for connecting the
routers. Click port status to turn on the router.
Border gate way Routing Protocol is an inter domain routing protocol .Hence the
autonomous systems are defined as AS100 and AS200
Step 6: To configure BGP click on the router 0,click on the CLI. Type the following
commands
#en
#config t
# router bgp 100
#network 192.168.1.0
#network 192.168.2.0
#neighbor 192.168.2.2 remote -as 200
#neighbor 192.168.3.2 remote -as 200
#exit
Similarly click on the router 1, click on the CLI .Type the following commands.
#en
#config t
# router bgp 200
#network 192.168.2.0
#network 192.168.3.0
#neighbor 192.168.2.1 remote -as 100
#neighbor 192.168.1.2 remote -as 100
#exit
Simulation Output:
Result: Thus the Border Gateway Routing protocol is simulated using packet tracer
simulation tool.