Professional Documents
Culture Documents
Report 1
Report 1
Lab
Sahiwal Campus
BS (Computer Science)
________________________________________________________
This lab exercise is designed to demonstrate and help in learning & understanding
of the procedure of setting up a small network.
Equipment:
Straight & Cross Cat5 UTP cables – (made in last lab)
Computers
A Switch/Hub (if network size is to be increased)
A Router (if communication is to be done with WAN/Internet)
Introduction:
Hub:
An Ethernet hub, active hub, network hub, repeater hub or hub is a device
for connecting multiple twisted pair or fiber optic Ethernet devices together and
making them act as a single network segment. Hub works at the physical layer
(layer 1) of the OSI model. The device is a form of multiport repeater. Repeater
hubs also participate in collision detection, forwarding a jam signal to all ports if it
detects a collision.
Figure 1 hub
Figure 2 SWITCH
PING:
PCs
Wires
Routers (2621XM)
Switch(2950T-24)
Introduction:
This lab introduces Packet Tracer which is a network simulator provided by
Cisco. Before using it we’ll learn about network emulators and simulators.
Procedure:
2- Click on Routers in lower left part, click on 2621XM and then again click in
the main window. The router will appear in the main window.
3- Do the same process to have switch 2950T (in Switches) and five PCs
topology
5- Double-click on the router and go to Config tab. Choose the FastEthernet
0/0, check the On box and enter 192.168.1.1 as the IP address and
255.255.255.0 as subnet mask. Then choose FastEthernet 0/1, check the On
box an enter 192.168.2.1 as the IP address and 255.255.255.0 as subnet
mask.
6- Double-click on PC0 and go to Desktop tab. Click on IP Configuration
the right menu of the Packet Tracer window. Click on it, then the two nodes
to be checked. This a much better way. To check it benefits, go to
Simulations mode using Shift +
Diagram:
Results:
When we try to send packet from PC0 to PC2 that are both connected from
same router the packet successfully delivers.
Questions:
Q.1 What is difference between IP address & MAC address?
Ans: The main difference between MAC and IP address is that MAC Address is
used to ensure the physical address of the computer. It uniquely identifies the
devices on a network. While IP addresses are used to uniquely identifies the
connection of the network with that device takes part in a network.
Q.3 Can Layer2 Switch be used to connect two LANs? Give reasons for your
answer?
Ans: The layer-2 switch fails when we need to transfer the data between different
LAN or VLAN's. This is where the Layer-3 switches come in the picture as the
technique they use for routing the data packets to the destination is using IP
addresses and subnetting.
LAB NO: 3 a) Make static configuration of router
Objective:
To understand how static configuration of routers work and sending data to
another network.
Equipment:
PCs
Wires
Routers (1841)
Switch(2950T-24)
Procedure:
1. Add Routers, Switch, PCs to the Topology:
Drag and drop two routers from the "Router" category in the device list onto
the workspace.
Drag and drop two switches from the "Switches" category onto the
workspace. Connect one switch to each router.
Drag and drop two PCs from the "End Devices" category onto each switch.
Connect each PC to its respective switch.
2. Cable Connections:
Use the "Copper Straight-Through" cable type to connect the routers to
the switches and the switches to the PCs. Click and drag from one
device's port to another to create the connections.
DIAGRAM:
Figure 6 Static configuration of routers
Ip config of router 1 Fast Ethernet fa0/0:
Working:
From the above toolbar use “ADD SIMPLE PACKET”.
Select source of packet which will be PC4 of router 0.
Select destination of packet which will be PC2 of router1 of other network.
In the down right corner, we will see progress window which will show
“successful” after we add destination of packet.
After successful configuration click on simulation button.
It will simulate a packet going from PC4 of router0 to PC2 of router1.
Figure 11 Results of successful data transmission
Conclusion:
After simulating, we can see how PC4 of router0 of one network is
communicating with PC2 of router1 of another network. Soo our static
configuration of routers is successful.
We can also see the progress of sending and receiving of packets between PC4 and
PC0 by using “PING” on command prompt of PC4.
Routing basics
Cable a network according to the Topology Diagram.
Perform basic configuration tasks on a router.
Configure and activate Serial and Ethernet interfaces.
Configure a static route using an intermediate address.
Configure a default static route.
Document the network implementation.
2. Routing Basics
Once you create an internetwork by connecting your WANs and LANs to a router,
you’ll need to configure logical network addresses, like IP addresses, to all hosts on
that internetwork for them to communicate successfully throughout it.
The term routing refers to taking a packet from one device and sending it through the network to
another device on a different network.
Destination address
Neighbour routers from which it can learn about remote networks
Possible routes to all remote networks
The best route to each remote network
How to maintain and verify routing information
The router use one of the following two ways to learn how to get to the remote
network.
Static Routing
Dynamic Routing
Static Routing:
The static routing method requires someone to hand-type all network locations into the
routing table, which can be a pretty daunting task when used on all but the smallest of
networks!
Dynamic Routing:
In dynamic routing, a protocol on one router communicates with the same protocol
running on neighbouring routers. The routers then update each other about all the
networks they know about and place this information into the routing table. If a
change occurs in the network, the dynamic routing protocols automatically inform all
routers about the event. If static routing is used, the administrator is responsible for
updating all changes by hand onto all routers.
In-Lab Exercise
In this lab activity, you will create a network that is similar to the one shown in the
Topology Diagram. Begin by cabling the network as shown in the Figure 3.1. Use any
Class C Network ID and fill in the Addressing Table to apply an addressing scheme to the
network devices. You will then perform the initial router configurations required for
connectivity according to your IP assignment. After completing the basic configuration,
test connectivity between the devices on the network. First test the connections between
directly connected devices, and then test connectivity between devices that are not
directly connected. Static routes must be configured on the routers for end-to-end
communication to take place between the network hosts.
Topology diagram:
Routing Table:
device interface Ip address Subnet mask Default gateway
R0 FA 0/0 192.168.1.1 255.255.255.0 -
S 0/0/0 10.0.0.1 255.255.255.0 -
R1 FA 0/0 192.168.2.1 255.255.255.0 -
S 0/0/0 10.0.0.2 255.255.255.0 -
S 0/0/1 11.0.0.1 255.255.255.0 -
R2 FA 0/0 192.168.3.1 255.255.255.0 -
S 0/0/0 11.0.0.2 255.255.255.0 -
PC 0 NIC 192.168.1.2 255.255.255.0 192.168.1.1
PC 1 NIC 192.168.2.2 255.255.255.0 192.168.2.1
PC 2 NIC 192.168.3.2 255.255.255.0 192.168.3.1
Procedure:
1. Add Routers, Switch, PCs to the Topology:
Drag and drop two routers from the "Router" category in the device list onto the workspace.
Drag and drop two switches from the "Switches" category onto the workspace. Connect one
switch to each router.
Drag and drop two PCs from the "End Devices" category onto each switch. Connect each PC to
its respective switch.
2. Cable Connections:
Use the "Copper Straight-Through" cable type to connect the routers to the switches and the
switches to the PCs. Click and drag from one device's port to another to create the
connections.
Command line:
The command used for adding static configuration of router is:
1. Router>enable
2. Router#
3. Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
4. Router(config)#
5. Router(config)#ip route 192.168.2.0 255.255.255.0 192.168.3.3
Configuration of router 0:
Configuration of router 1:
Configuration of router 2:
result:
After simulating, we can see how PC4 of router0 of one network is communicating with PC2 of
router1 of another network. Soo our static configuration of routers is successful.
We can also see the progress of sending and receiving of packets between PC4 and PC0 by using “PING”
on command prompt of PC4.
LAB NO: 4 Dynamic configuration of routers
Objective:
To understand how dynamic configuration of routers work and sending data to
another network dynamically.
Equipment:
6-PCs, 3-switches (2950-24),3- routers (1841), serial cable
PROCEDURE:
1- Add Routers, Switch, PCs to the Topology:
Drag and drop three routers from the "Router" category in the device list
onto the workspace.
Drag and drop three switches from the "Switches" category onto the
workspace. Connect one switch to each router.
Drag and drop six PCs from the "End Devices" category onto each switch.
Connect each PC to its respective switch.
2- Configuration of routers:
Go to physical mode of router and turn them off. Then add WIC-2T module
in router and turn it back on. (Do this for all the routers).
Assign ip address in FA0/0 of router 0, router 1 and router 2 as 192.168.1.1,
192.168.2.1 and 192.168.3.1 respectively.
Now assign ip to serial 0/0 of routers as 10.0.0.1, 10.0.0.2, 11.0.0.1 and
11.0.0.2 respectively.
Connect all routers together with serial cable in serial ports.
3- Configuration of switches:
Attach one switch with each router.
Connect 2 PCs with each switch.
4- Configuration of PCs:
Connect two PCs each with a switch which are further connected with
routers.
Enter the default gateway for PC 0 and 1 as 192.168.1.1, for PC 2 and 3 as
192.168.2.1 and for PC 3 and 4 as 192.168.3.1.
Result:
As we send packet of data from PC1 to PC5, it will be received by PC5 of other
network. So the two PCs of other network communicate with each other using
dynamic configuration of router.
Diagram:
Q.2 Identify the differences between line and interface of a Cisco device.
Ans: In the context of a Cisco networking device, such as a router or switch, "line" and
"interface" are distinct concepts that serve different purposes.
Line:
1- Logical Connection:
A line represents a logical connection to the device, typically for the purpose of
remote management and access.
2- Examples:
Common types of lines in a Cisco device include console lines, auxiliary lines, and
virtual terminal (VTY) lines.
3- Auxiliary Line:
The auxiliary line, often referred to as "AUX," provides an additional way to access
and manage the device, often used for out-of-band management.
4- Access Control:
Access to these lines can be controlled through various methods, including password
protection, privilege levels, and access lists.
Interface:
1- Physical Connection:
An interface represents a physical or virtual network connection on the device,
connecting it to the data plane, where data traffic flows.
2- Ethernet Interface:
These represent physical Ethernet ports on the device and are used to connect to
Ethernet-based networks.
3- Loopback Interface:
A loopback interface is a virtual interface used for internal device testing and
management. It doesn't connect to external networks.
4- Interface Configuration: Configuration of interfaces includes IP addressing,
routing protocols, access control lists, and other parameters related to the
forwarding of network traffic.
Q.3 If switch doesn’t know the destination address, what will it do? If it does then
what action is taken?
Ans: When a switch receives an Ethernet frame and needs to determine what to do with it based
on the destination MAC (Media Access Control) address, In this case, the switch will flood the
frame out to all the ports in the same VLAN (except the port on which it was received). This is
known as broadcast or flooding behavior. Flooding ensures that the frame reaches its intended
destination if the destination device is connected to the same network segment.
Running configuration:
1- Current State:
The running configuration represents the current operational state of the device. It
contains the configuration settings that are actively in use by the device at any given
time.
2- Temporary:
Any changes made to the device's configuration using commands or through a
configuration interface are reflected in the running configuration immediately.
3- Temporary Testing:
Network administrators often use the running configuration for temporary testing or
troubleshooting because changes made here do not survive a reboot.
4- Volatile:
The running configuration is stored in volatile memory (RAM), which means that it
is lost when the device is rebooted or powered off. It is only retained while the device
is powered on.
Startup configuration:
1- Saved Configuration:
The startup configuration represents the saved configuration of the device. It
contains the configuration settings that are saved to non-volatile storage (typically
NVRAM) and persist across reboots and power cycles.
2- Non-Volatile:
The startup configuration is stored in non-volatile memory, ensuring that it
remains intact even if the device loses power or is rebooted.
3- Preserves Desired Settings:
Network administrators save critical configurations to the startup configuration to
ensure that they are retained even after a reboot.