Computer Network Lab Manual
Computer Network Lab Manual
Computer Network Lab Manual
S. NIJALINGAPPA COLLEGE
RAJAJINAGAR, BANGALORE-560010
&
MS. TEJASWINI
Academic Year
2022-2023
AIM
To study the basic networking commands.
C:\>arp –a: ARP is short form of address resolution protocol, It will show the IP address of
your computer along with the IP address and MAC address of your router.
C:\>hostname: This is the simplest of all TCP/IP commands. It simply displays the name of
your computer.
C:\>ipconfig: The ipconfig command displays information about the host (the computer
your sitting at)computer TCP/IP configuration.
C:\>ipconfig /all: This command displays detailed configuration information about your
TCP/IP connection including Router, Gateway, DNS, DHCP, and type of Ethernet
adapter in your system.
C:\>Ipconfig /renew: Using this command will renew all your IP addresses that you are
currently (leasing) borrowing from the DHCP server. This command is a quick problem
solver if you are having connection issues, but does not work if you have been configured
with a static IP address.
C:\>Ipconifg /release: This command allows you to drop the IP lease from the DHCP
server.
C:\>ipconfig /flushdns: This command is only needed if you’re having trouble with your
networks DNS configuration. The best time to use this command is after network
configuration frustration sets in, and you really need the computer to reply with flushed.
C:\>nbtstat –a: This command helps solve problems with NetBIOS name resolution.
(Nbt stands for NetBIOS over TCP/IP)
C:\>net diag: Netdiag is a network testing utility that performs a variety of network diagnostic
tests, allowing you to pinpoint problems in your network. Netdiag isn’t installed by default,
but can be installed from the Windows XP CD after saying no to the install. Navigate to the
CD ROM drive letter and open the support\tools folder on the XP
CD and click the setup.exe icon in the support\tools folder.
C:\>nslookup: Nslookup is used for diagnosing DNS problems. If you can access a
resource by specifying an IP address but not it’s DNS you have a DNS problem.
C:\>route: The route command displays the computers routing table. A typical
computer, with a single network interface, connected to a LAN, with a router is fairly
simple and generally doesn’t pose any network problems. But if you’re having trouble
accessing other computers on your network, you can use the route command to make sure the
entries in the routing table are correct.
C:\>tracert: The tracert command displays a list of all the routers that a packet has to go
through to get from the computer where tracert is run to any other computer on the
internet.
Transmission Medium:
A communication channel that is used to carry the data from one transmitter to the receiver through
the electromagnetic signals . The main function of this is to carry the data in the bits form through the
Local Area Network(LAN).In data communication, it works like a physical path between the sender &
receiver .For instance ,in a copper cable network the bits in the form of electrical signals whereas in a
fiber network ,the bits are available in the form of light pulses. The quality as well as characteristics of
data transmission , can be determined from the characteristics of medium &signal. The properties of
different transmission media are delay, bandwidth, maintenance, cost and easy installation.
Coaxial Cable:
Coaxial cable (or coax) carries signals of higher frequency ranges than those in twisted pair cable. It
has a central core conductor of solid or stranded wire (usually copper) enclosed in an insulating
sheath, which is, in turn, encased in an outer conductor of metal foil, braid, or a combination of the
two. The outer conductor is also enclosed in an insulating sheath, and the jwhole cable is protected
by a plastic cover.
Applications:
1. Coaxial cable was widely used for both analog and digital data transmission.
2. It has higher bandwidth.
3.Inexpensive when compared to fiber optical cables.
4. It uses for longer distances at higher data rates.
5. Excellent noise immunity.
6. Used in LAN and Television distribution.
An unshielded twisted pair is widely used in telecommunication. It is most common type when
compared with shielded twisted pair cable which consists of two conductors usually copper, each with
its own colour plastic insulator
Unguided medium transport electromagnetic waves without using a physical conductor. This type of
communication is often referred to as wireless communication. Signals are normally broadcast
through free space and thus are available to anyone who has a device capable of receiving them
Microwaves:
It is a line of sight transmission i.e. the sending and receiving antennas need to be properly
aligned with each other. The distance covered by the signal is directly proportional to the
height of the antenna. Frequency Range:1GHz – 300GHz. These are majorly used for mobile
phone communication and television distribution.
Infrared:
Infrared waves are used for very short distance communication. They cannot penetrate through
Aim: Study of different types of Network cables and Practically implement the cross-wired
cable and straight through cable using clamping tool.
Procedure:
Crimping Tools:
A crimping tool is a device used to conjoin two pieces of metal by deforming one or both of
them to hold each other. The result of the tool's work is called a crimp. An example of crimping
is affixing a connector to the end of a cable. For instance, network cables and phone cables are
created using a crimping tool (shown below) to join RJ-45 and RJ-11 connectors to both ends of
phone or Cat 5 cable.
UTP Cables:
UTP stands for Unshielded Twisted Pair cable. UTP cable is a 100 ohm copper cable that consists of 2
to 1800 unshielded twisted pairs surrounded by an outer jacket. They have no metallic shield. This
makes the cable small in diameter but unprotected against electrical interference. The twist helps to
improve its immunity to electrical noise and EMI.
Cable test:
A cable tester is a electronic device used to verify the electrical connections in a signal cable or other
wired assembly. Basic cable testers are continuity tester that verify the existence of a conductive path
between ends of the cable, and verify the correct wiring of connectors on the cable
Straight cable:
A straight-through cable is a type of twisted pair cable that is used in local area networks to connect
a computer to a network hub such as a router. This type of cable is also sometimes called a patch cable
and is an alternative to wireless connections where one or more computers access a router through a
wireless signal. On a straight-through cable, the wired pins match. Straightthrough cable use one
wiring standard: both ends use T568A wiring standard or both ends use T568B wiring standard. The
following figure shows a straight-through cable of which both ends are wired as the T568B standard.
Orange White on no 1
Orange on no 2
Green White on no 3
Blue on no 4
Blue White on no 5
Green on no 6
White Brown on no 7
Brown on no 8
- Make crimping using crimp tools , press crimping tool and make sure all the pins ( brass )
on the RJ - 45 connector has " bite " of each cable . usually when done will sound "click ".
Once finished at the end of this one , do it again at the other end cable.
The final step is to check the cable that you created earlier using the LAN tester , enter each end of
the cable ( RJ- 45 ) to each LAN port available on the tester , turn and make sure all of the LEDs light
up according to the order of the wires we created.
For the second end of the cable, the colour composition is different from the first . The colour
arrangement is as follows
The IP address stands for Internet Protocol address is also called IP number or internet address. It
helps us to specify the technical format of the addressing and packets scheme.
An IP address is a numerical label assigned to the devices connected to a computer network that uses
the IP for communication. IP address act as an identifier for a specific machine on a particular
network. It also helps us to develop a virtual connection between a source and a destination.
Types of IP address
There are mainly four types of IP addresses:
Public
Private
Static
Dynamic.
Public IP Addresses
A public IP address is an address where one primary address is associated with the whole network. In
this type of IP address, each of the connected devices has the same IP address. This type of public IP
address is provided by Internet Service Provider (ISP).
Private IP Addresses
A private IP address is a unique IP number assigned to every device that connects to internet network,
which includes devices like computers, tablets, smartphones etc.,
Static IP addresses
A static IP address is an IP address that cannot be changed. These are fixed that are manually assigned
to a system device. On the network configuration page, the network administrator manually inputs the
IP address for every system. Moreover, the static address is not changed until it is directly updated by
the network administrator or the Internet Service Provider. Furthermore, this address does not change
with each network connection. In other words, the device always connects to the internet through the
same IP address. The dynamic IP address is typically configured on devices via the DHCP protocol and
regularly updates. The dynamic IP address constantly changes whenever the user links to a network.
The Dynamic Host Configuration Protocol(DHCP) server employs a method for tracking and retrieving
IP address information associated with active network components. The mechanism utilized for
translation in dynamic address is known as Domain Name Server (DNS).
The DHCP and DNS are two protocols that are widely used while accessing the internet. When a user
connects to the network, DHCP assigns her a temporary dynamic IP address.
The main differences between Static and Dynamic IP addresses are as follows:
Device tracking Devices may be traced easily. Devices may be difficult to trace.
The Internet Protocol version 4 (IPv4) is a protocol for use on packet-switched Link Layer networks
(e.g. Ethernet). IPv4 provides an addressing capability of approximately 4.3 billion addresses. The
Internet Protocol version 6 (IPv6) is more advanced and has better features compared to IPv4.
Classes IPv4 has 5 different classes of IP IPv6 does not contain classes of IP
address that includes Class A, Class addresses.
B, Class C, Class D, and Class E.
Number of IP IPv4 has a limited number of IP IPv6 has a large number of IP addresses.
address addresses.
Security features In IPv4, security depends on the In IPv6, IPSEC is developed for security
application. This IP address is not purposes.
developed in keeping the security
feature in mind.
Packet flow It does not provide any mechanism It uses flow label field in the header for the
identification for packet flow identification. packet flow identification.
Checksum field The checksum field is available in The checksum field is not available in IPv6.
IPv4.
Encryption and It does not provide encryption and It provides encryption and authentication.
Authentication authentication.
Number of octets It consists of 4 octets. It consists of 8 fields, and each field contains
2 octets. Therefore, the total number of
octets in IPv6 is 16.
Subnetting is a technique of partitioning an individual physical network into several small-sized logical
sub-networks. These subnetworks are known as subnets. An IP address is made up of the combination
of the network segment and a host segment. A subnet is constructed by accepting the bits from the IP
address host portion which are then used to assign a number of small-sized sub-networks in the original
network.
The Subnetting basically convert the host bits into the network bits. As mentioned above the subnetting
strategy was initially devised for slowing down the depletion of the IP addresses.
The subnetting permits the administrator to partition a single class A, class B, class C network into
smaller parts. VLSM (Variable Length Subnet Mask) is a technique which partitions IP address space
into subnets of different sizes and prevent memory wastage. Furthermore, when the number of hosts is
same in subnets, that is known as FLSM (Fixed Length Subnet Mask).
Supernetting is inverse process of subnetting, in which several networks are merged into a single
network. While performing supernetting, the mask bits are moved toward the left of the default mask.
The supernetting is also known as router summarization and aggregation. It results in the creation of
more host addresses at the expense of network addresses, where basically the network bits are converted
into host bits.
The supernetting is performed by internet service provider rather than the normal users, to achieve the
most efficient IP address allocation. CIDR (Classless Inter-Domain Routing) is scheme used to route
the network traffic across the internet. CIDR is a supernetting technique where the several subnets are
combined together for the network routing. In simpler words, CIDR allows the IP addresses to be
organized in the subnetworks independent of the value of the addresses.
IPV6
• Switch
• Bridge
• Router
1. Switch: A network switch or switching hub is a computer networking device that connects network
segments. The term commonly refers to a network bridge that processes and routes data at the data
link layer (layer 2) of the OSI model. Switches that additionally process data at the network layer (layer
3 and above) are often referred to as Layer 3 switches or multilayer switches.
Switch:- A switch is a Networking device in a computer network that connects other devices together.
Multiple data cables are plugged into a switch to enable communication between different networked
devices. Switches manage the flow of data across a network by transmitting a received network packet
only to the one or more devices for which the packet is intended
Working of Switch:-Whenever a host sends a frame to any other host, then the source host is stored
with the port in the address table of the MAC address switch. A switch always stores the address of
the source in the table. Unless a host does send some data, its MAC address and port number will not
be stored in the table of the switch. Unless a host does send some data, its MAC address and port
number will not be stored in the table of the switch. When you initialize the switch, the switch does
not contain any information about any host and its address. In such a situation, when a host frame
sends, its MAC address is stored in the table but due to no destination information, the switch sends
the frame to all the hosts .When you initialize the switch, the switch does not contain any information
about any host and its address. In such a situation, when a host frame sends, its MAC address is stored
in the table but due to no destination information, the switch sends the frame to all the hosts. As soon
as the second host sends some data, its address also gets stored in the table. As soon as the second
host sends some data, its address also gets stored in the table. Whenever a host sends the frames, the
switch stores it if its address is not already present in the table. Thus a switch creates its table. When
all the hosts' addresses and port numbers come in the switch, the switch delivers the frame to all hosts
only, delivering the same host to the host for which the data has been sent.
Bridge:-
Bridge is termed as a network device which is helpful in filtering the data load of the traffic by dividing
it into segments or packets. They are used to lower the load of traffic on the LAN and other networks.
Bridges are passive devices, because there is no interaction between bridged and the paths of
bridging. Bridges operate on the second layer of the OSI model that is the data link layer.
Working of Bridge:-
When various network segments are established at the data link layer of the OSI model, we refer to it
as bridge. However when the packets of data are transferred along a network , without locating the
network addresses this process is termed as bridging. The process of bridging is helpful in locating the
addresses of unknown addresses to which it is viable to send data. In bridging the data packets contain
a header or a packet header which holds the address to the intended device. Bridge can remember
and recall the address of the devices for further transmission. There are two kinds of bridging modes,
the transparent bridging and the source routing bridging. When the process of bridging occurs, it
makes a bridging table along side where it stores the MAC addresses of the various terminals. This
table helps the bridges to send the data packet to the exact location next time. However when a
specific address does not meet the contents of the bridging table, the data packet is forwarded further
ahead to every attached terminal in LAN except from the computer it is connected to. This type of
bridging is called transparent bridging. When the source computer presents pathway information
within the packet, this type of bridging is known as source route bridging. It is most commonly used
in used on Token Ring networks.
Router:-
Step -1 Select the 05 - PCs, 01- Printer, 01- Router, 01- Switch and 01-Server
Select port status check box on . (for which Ethernet switch connected)
Step -3 Configure Server IP address 192.168.1.101 and connect to switch by Straight Through cable.
Step -4 Connect all 05 PCs to switch using Straight Through cable and configure IP address as
192.168.1.1 to 192.168.1.5
Step -5 Give gateway IP as 192.168.1.100 and DNS IP 192.168.1.101 for all 05 PCs
Step -6 Configure Printer IP 192.168.1.102 and connect to switch using Straight Through cable.
Click on Printer
Click in any one PC, Click on Desktop, Click on Command Prompt and ping any pc from this
PC
Step 2: Select “Windows Defender Firewall” followed by “Advanced Settings” on the left-
side pane.
Step 3: Right-click on “Outbound Rules” from the menu on the left and select “New Rule.”
Step 4: When a new window pops up, select the “Custom” option followed by “Next.”
Step 6: Select the ” These IP addresses ” option under “Which remote IP addresses does this
rule apply to?” and
click next
Step 7: Open the Command Prompt as Administrator by entering “CMD” into the search box.
Step 9: Click on “Add” and enter the IP addresses you want to block. Then select “Next.”
Step 9: Choose whether the rule applies to Domain, Private, or Public. You can also select all
three.
Type text ( Share the file in a system and access the files from other system or server
using IP address)
Double click on printer, Click on Config, Select FastEthernet0, Give IPV4 address. And
connect to switch using Straight Through cable.
Step -4 Connect all 02 PCs to switch using Straight Through cable and configure IP address as
192.168.1.1 and192.168.1.2
Click in any one PC, Click on Desktop, Click on Command Prompt and ping any pc from
printer
Step -1 Select
02 - PCs, 01- Printer, 01- Laptop, 01- server, 01- smart phone and 01- HomeRouter
By using Drag and Drop
Click on desktop
Click on DHCP
Next click on config
Click on wireless0
Click on WPA-PSK and give PSK PASS Phrase (12345678)
Change SSID default to KLEBCA
Step -4 Repeat Step 3rd to make Laptop, Printer, Server and Smartphone wireless
Click in any device, Click on Desktop, Click on Command Prompt and ping any pc from
printer
OR
Step -7 Switch(config)#Exit
To check for configuration password ( i.e Login to Switch) First need to enter console
password
Switch> En /Enable
Switch#
Step - 2 KLEBCA(config)# Exit ( To check the message exit from the configuration )
Step - 3 KLEBCA# Exit
Requirements: Crimping tools, Bulk Network Cable, Keystone Jack, Jacket Stripper, Wire Cutter and
Punch Down Tool
Procedure:
Using cutting tool cut 1 inch off the jacket from the top of the cable. If using scissors or another
cutting device make sure not to cut through the wires in the cable.
If cable also has a spline / cross separator in the cable, then cut off the portion that is showing. Try to
cut off the without damaging the wires.
1. Orange stripe
2. Orange
3. Green Stripe
4. Blue
5. Blue stripe
6. Green
7. Brown stripe
8. Brown
Try not to insert the cables jacket too far in to the keystone jack. Try to get the jack just inside or
touching the end of the jack. The other important thing to mention here is to not have any wiring
exposed from the jack to the jack.
Using the wiring scheme have chosen, lay down the wires in the grooves of the keystone jack.
Using a punch down tool can now insert the jack in to the punch down area of the tool. Make sure the
degree of the punch down tool matches the degree of the keystone jack. Insert with open side facing
the grooves of the punch down tool.
By squeezing down on the punch down tool wires now firmly inside the contact area of the jack. The
wires hanging off the side should also have been cut off. If some weren't cut off that is ok. Simply cut
off the remaining portion using a cutting device.
For this step make sure to double check the wires are deep enough in the contact area. If any of the
wires are not in the contact area yet try using the tool again to punch them down.
Procedure:
Crimping Tools:
Check both cable end should be either T568A or both ends should be T568B
Step -6 Crimp cable using Crimping Tool for both the ends
SW1# Config t
SW1(Config)# int fastEthernet 0/1 or fa 0/1
SW1(Config-if)#Switchport access vlan 2
SW1(Config-if)#exit
SW2#Config t
SW2(Config)# int range fa 0/1-2
SW2(Config-if)#switchport access vlan 10
SW2#Config t
SW2(Config)# int range fa 0/3-4
SW2(Config-if)#switchport access vlan 20
SW3#Config t
SW3(Config)# int fa 0/3
SW3(Config-if)#switchport access vlan 20
PC9- (ARTS) to PC4 (CSC) – (VLAN 3 to VLAN 2 ) Will not send packets
PC8- (CSC) to PC5 (CSC) – (VLAN 3 to VLAN 3 ) Will send packets