CN Lab File
CN Lab File
E
EG
LL
Lab Manual
CO
For
IC
HN
COMPUTER NETWORK
ENGINEERING LAB – 5137
EC
L YT
5th Semester
N
DI
A'
M
INDEX
E
Install and Configure Wired and Wireless NIC and
2 7
EG
transfer files between systems in LAN and Wireless
LAN.
LL
3 Install and configure Network Devices: HUB, Switch 8
and Routers.
CO
4 Connect the computers in Local Area Network. 10
Configuration). IC
Gateway in a System in LAN (TCP/IP
share
PO
10 23
software
A'
Experiment No: 1
Aim:
To do the following
a) Cable Crimping
b) Standard Cabling
c) Cross Cabling
d)IO connector crimping
E
e) Testing the crimped cable using a cable tester
EG
Apparatus/Tools/Equipments/Components:
RJ-45
LL
connector, IO
Connector,
CO
Crimping Tool,
Twisted pair
Cable, Cable
Tester.
Principle:
IC
HN
Standard Cabling:
EC
1. 10BaseT and 100BaseT are most common mode of LAN. You can use UTP category-5 cable
for both modes.
YT
Cross Cabling:
A cross cable is used to connect 2 computers directly (with ONLY the UTP cable). It is also used then you
connect 2 hubs with a normal port on both hubs
E
EG
LL
CO
Procedure:
IC
HN
Cable Crimping steps:
EC
1. Remove the outmost vinyl shield for 12mm at one end of the cable (we call this side A-side).
2. Arrange the metal wires in parallel
YT
3. Insert the metal wires into RJ45 connector on keeping the metal wire arrangement.
L
PO
N
DI
A'
M
4. Set the RJ45 connector (with the cable) on the pliers, and squeeze it tightly.
5. Make the other side of the cable (we call this side B-side) in the same way.
6. After you made it, you don't need to take care of the direction of the cable.
E
IO connector crimping: Run the full length of Ethernet cable in place, from endpoint to endpoint,
EG
making sure to leave excess.
LL
At one end, cut the wire to length leaving enough length to work, but not too much excess.
Strip off about 2 inches of the Ethernet cable sheath.
CO
Align each of the colored wires according to the layout of the
jack. Use the punch down tool to insert each wire into the
jack. IC
HN
Repeat the above steps for the second RJ45 jack.
EC
L YT
PO
N
DI
A'
M
Step 5 : Place the connector into a crimping tool, and squeeze hard so that the handle reaches its
full swing.
Step 6: Use a cable tester to test for proper continuity
E
EG
LL
CO
Result:
Cable Crimping, Standard Cabling and Cross Cabling, IO connector crimping and testing the
crimped cable using a cable tester are done successfully
IC
HN
EC
L YT
PO
N
DI
A'
M
EXPERIMENT-2
Ex.No:2. Install and Configure Wired and Wireless NIC and transfer files between systems in
LAN and Wireless LAN.
Aim:
To Install and Configure Wired and Wireless (remotely) NIC and transfer files between systems in
LAN and Wireless LAN between two system in a LAN.
Principle:
NICs (Network Interface Card):Network Interface Card, or NIC is a hardware card installed in a
computer so it can communicate on a network. The network adapter provides one or more ports for
E
the network cable to connect to, and it transmits and receives data onto the network cable.
EG
Wireless LAN card:
Every networked computer must also have a network adapter driver, which controls the network
adapter. Each network adapter driver is configured to run with a certain type of network adapter.
LL
Procedure:
CO
(a) Install the network card:
Disconnect all cables connected to the computer and open the case. Locate an available PCI slot
IC
(white slots) and insert the network card and secure the card with the screw that came with it. Once the
adapter has been installed and secured close the computer case, connect all the cables and turn it on.
HN
After installing the adapter driver it should be working find, now let’s configure the card for use on a
network.
EC
Click on the Start button and select Settings then Control Panel.
YT
Ensure that there is no yellow exclamation mark (!) next to the Network Adapter. This indicates a possible
problem with the card or configuration.
DI
message:
This Device is working correctly.
If you do not see this message or if there is no Network Adapter displayed, then your Ethernet card will
probably need configuring.
Result:
Installation and configuration of Wired and Wireless (remotely) NIC and transfer files between systems
in LAN and Wireless LAN between two systems in a LAN have been done successfully.
EXPERIMENT-3
Ex. No. 3.Install and configure Network Devices: HUB, Switch and Routers.
Aim:
To Install and configure Network Devices HUB, Switch and Routers PCs are interfaced using
connectivity
devices.
Principle:
E
and retransmits it at a higher level and/or higher power, or onto the other side of an obstruction, so that
EG
the signal can cover longer distances. Repeater have two ports ,so cannot be use to connect for more
than two devices.
LL
2. Hub: An Ethernet hub, active hub, network hub, repeater hub, hub or concentrator
is a device for connecting multiple twisted pair or fiber optic Ethernet devices together and making
CO
them act as a single network segment. Hubs work 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.
IC
3. 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
HN
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.
EC
4. Bridge: A network bridge connects multiple network segments at the data link layer (Layer 2) of
the OSI model. In Ethernet networks, the term bridge formally means a device that behaves according
YT
to the IEEE 802.1D standard. A bridge and switch are very much alike; a switch being a bridge with
numerous ports. Switch or Layer 2 switch is often used interchangeably with bridge.Bridges can
analyze incoming data packets to determine if the bridge is able to send the given packet to another
L
5. Router: A router is an electronic device that interconnects two or more computer networks, and
lectively interchanges packets of data between them. Each data packet contains address information
N
that a router can use to determine if the source and destination are on the same network, or if the data
packet must be transferred from one network to another. Where multiple routers are used in a large
DI
collection of interconnected networks, the routers exchange information about target system addresses,
so that each router can build up a table showing the preferred paths between any two systems on the
A'
interconnected networks.
M
6. Gate Way: In a communications network, a network node equipped for interfacing with another
network that uses different protocols.
• A gateway may contain devices such as protocol translators, impedance matching devices, rate
converters, fault isolators, or signal translators as necessary to provide system interoperability. It also
requires the establishment of mutually acceptable administrative procedures between both networks.
Procedure:
E
EG
LL
CO
IC
HN
EC
L YT
PO
N
DI
A'
M
Result:
Thus install and configure Network Devices PCs are interfaced using connectivity devices – Hub,
router and switch have been done successfully.
EXPERIMENT-4
Network.
Procedure:
E
On the host computer, follow these steps to share the Internet connection:
EG
1. Log on to the host computer as Administrator or as Owner.
2. Click Start, and then click Control Panel.
3. Click Network and Internet Connections.
LL
4. Click Network Connections.
CO
5. Right-click the connection that you use to connect to the Internet. For example, if
you connect to the Internet by using a modem, right-click the connection that you
want under Dial-up / other network available.
6. Click Properties.
7. Click the Advanced tab. IC
8. Under Internet Connection Sharing, select the Allow other network users to
HN
connect through this computer's Internet connection check box.
9. If you are sharing a dial-up Internet connection, select the Establish a dial-up
EC
network. If these other computers have static IP addresses, it is a good idea to set them to
PO
obtain their IP addresses automatically. Are you sure you want to enable Internet
Connection Sharing?
N
(LAN). The network adapter that is connected to the LAN is configured with a static IP
address of 192.168.0.1 and a subnet mask of 255.255.255.0
A'
M
To connect to the Internet by using the shared connection, you must confirm the LAN
adapter IP configuration, and then configure the client computer. To confirm the LAN
adapter IP configuration, follow these steps:
1. Log on to the client computer as Administrator or as Owner.
2. Click Start, and then click Control Panel.
3. Click Network and Internet Connections.
4. Click Network Connections.
E
11. In the Local Area Connection Properties dialog box, click OK.
EG
12. Quit Control Panel.
LL
Result:
The computers Connected in Local Area Network.
CO
IC
HN
EC
L YT
PO
N
DI
A'
M
EXPERIMENT-5
Ex. No. 5. Configure Host IP, Subnet Mask and Default Gateway
in a System in LAN (TCP/IP Configuration).
Aim:
To Configure IP Address in a system in LAN (TCP/IP Configuration) and Configure DNS to establish
interconnection between systems
• Classification of IP address
E
Class A 1.0.0.1 to 126.255.255.254 Supports 16 million hosts on each of 127 networks.
EG
Class B 128.1.0.1 to 191.255.255.254 Supports 65,000 hosts on each of 16,000 networks.
Class C 192.0.1.1 to 223.255.254.254 Supports 254 hosts on each of 2 million networks.
LL
Class D 224.0.0.0 to 239.255.255.255 Reserved for multicast groups.
Class E 240.0.0.0 to 254.255.255.254 Reserved.
CO
• Sub netting
Why we Develop sub netting and How to calculate subnet mask and how to identify subnet
address. IC
HN
• Super netting
Why we develop super netting and How to calculate supernet mask and how to
identify supernet address.
EC
Procedure:
YT
3. Right click on the Local Area Connection icon and select Properties.
4. Select Internet Protocol (TCP/IP).
N
6. Uncheck that Obtain an IP address automatically and Obtain DNS server address automatically and
put IP, Subnet mask & Default Gateways.
A'
7. Click on the Advanced button and select the DNS tab in the Advanced TCP/IP Settings window.
8. Ensure that Register this connection's addresses in DNS is not selected.
M
Result :
Configuration of IP Address in a system in LAN (TCP/IP Configuration) and Configuration to establish
interconnection between systems have been done successfully
EXPERIMENT-6
Ex. No. 6. Establish Peer to Peer network connection using two systems using Switch and Router
in a LAN.
Aim:
To establish Peer to Peer network connection using two systems in a LAN and Switch and Router in a
LAN and share the Drives and folders.
Principle:
All PCs must have networking hardware already installed. Examine the back of the PC for an RJ45 port (it
looks like a port for a typical phone but is wider with eight contacts).
E
EG
If you have more than two PCs, you will need at least one multi-port sharing device like a hub,
switch, or router with enough ports to support all your PCs.
If you are only networking two PCs, all you need is one crossover cable. You do not need a hub,
LL
switch, or router.
CO
Multi-port sharing devices that work for creating small networks:
Hubs are usually the least expensive of the devices. Hubs simply repeat the data flow out to the other
lines. These work good in small networks.
IC
Switches are like hubs but filter IP addresses to increase data flow in larger networks.
HN
Routers become necessary when networking over 254 computers. A router can also be used to share
one IP address with several other PCs
The network link between PCs can only be as fast as the slowest device in the link. Try to use all
EC
networking devices with the same speed rating for optimal performance (this include cables).
Try to keep hubs, switches, and routers accessible.
YT
Some hubs, switches, and routers, require the last port be used only when the cascade port is not already
in use. Do not connect a network cable for a PC into the cascade port.
L
PO
Procedure:
2. Select Set up a home or small office network link under Network Tasks On the left-side.
A'
3. The Welcome to the Network Setup Wizard screen on the Network Setup Wizard appears. Click Next.
M
4. The Before you continue screen appears, listing the steps that will be completed. Click the checklist
for creating a network link.
5. Close the Steps for creating a home or small office network screen.
6. Click Next on the Before you continue screen.
7. connect the network interfaces click Next.
8. The Select a connection method screen appears. Here you will select from three connection
options Make your selection and click Next.
9. On the Select your Internet connection screen, select the network connection that relates to the
Internet under Connections and click Next. You must make a selection or the Next button will remain
grayed out.
10. The next screen, Your computer has multiple connections, is very important for both Internet
connectivity and firewall issues. It's here you begin to assist the wizard by defining the "inside"
network adapter (local area network) and the "wild-side" network adapter (Internet connection).
Make the appropriate selection and click Next. In my case, I selected Let me choose the connections to
my network
E
11. Because of the selection I made in, the Select the connections to bridge appears. Make the
EG
connection selection and click Next.
12. Complete the Computer description and Computer name fields on the Give this computer
LL
13. Complete the Workgroup name field on the Name your network screen And click next.
CO
14. Review your settings on the Ready to apply your network settings Screen and click next.
Result:
IC
HN
Peer to Peer network connection using two systems using Switch and Router in a LAN have been done
successfully.
EC
L YT
PO
N
DI
A'
M
EXPERIMENT-7
Exp 7.Configure Internet connection and use IPCONFIG, PING / Tracer and Net stat utilities to
debug the network issues.
Aim:
To Configure to Configure Internet connection and use IPCONFIG, PING / Tracer and Net stat utilities to
debug the network issues establish interconnection between systems
Procedure:
E
EG
1. Open Command Prompt, and then type ipconfig. From the display of the ipconfig command, ensure
that the network adapter for the TCP/IP configuration you are testing is not in a Media disconnected
state.
LL
2. At the command prompt, ping the loopback address by typing ping 127.0.0.1.
CO
3. Ping the IP address of the computer.
IC
4. Ping the IP address of the default gateway. If the ping command fails, verify that the default
gateway IP address is correct and that the gateway (router) is operational.
HN
5. Ping the IP address of a remote host (a host that is on a different subnet).
If the ping command fails, verify that the remote host IP address is correct, that the remote host is
EC
operational, and that all of the gateways (routers) between this computer and the remote host are
operational.
YT
operational, and that all of the gateways (routers) between this computer and the DNS server are
PO
operational.
Tracer network:
Open Command Prompt, and type the following:
A'
tracert host_name
Or
M
tracert ip_address
where host_name or ip_address is the host name or IP address, respectively, of the remote computer.
If you do not want the tracert command to resolve and display the names of all routers in the path, use the
-d parameter. This expedites the display of the path. For example, to trace a path from this computer to
www.microsoft.com without displaying the router names, type the following at a command prompt:
Displays active TCP connections, ports on which the computer is listening, Ethernet statistics, the IP
routing table, IPv4 statistics (for the IP, ICMP, TCP, and UDP protocols), and IPv6 statistics (for the
IPv6, ICMPv6, TCP over IPv6, and UDP over IPv6 protocols). Used without parameters, netstat
displays active TCP connections
Syntax
netstat [-a] [-e] [-n] [-o] [-p Protocol] [-r] [-s] [Interval]
Parameters
-a
Displays all active TCP connections and the TCP and UDP ports on which the computer is listening.
-e
E
Displays Ethernet statistics, such as the number of bytes and packets sent and received. This
EG
parameter can be combined with -s.
-n
Displays active TCP connections, however, addresses and port numbers are expressed numerically and no
LL
attempt is made to determine names.
-o
CO
Displays active TCP connections and includes the process ID (PID) for each connection. You can find
the application based on the PID on the Processes tab in Windows Task Manager. This parameter
can be combined with -a, -n, and -p.
-p Protocol
IC
Shows connections for the protocol specified by Protocol. In this case, the Protocol can be tcp, udp,
tcpv6, or udpv6. If this parameter is used with -s to display statistics by protocol, Protocol can be tcp,
HN
udp, icmp, ip, tcpv6, udpv6, icmpv6, or ipv6.
-s
Displays statistics by protocol. By default, statistics are shown for the TCP, UDP, ICMP, and IP
EC
protocols. If the IPv6 protocol for Windows XP is installed, statistics are shown for the TCP over
IPv6, UDP over IPv6, ICMPv6, and IPv6 protocols. The -p parameter can be used to specify a set of
YT
protocols.
-r
Displays the contents of the IP routing table. This is equivalent to the route print command.
L
Interval
PO
Redisplays the selected information every Interval seconds. Press CTRL+C to stop the redisplay. If this
parameter is omitted, netstat prints the selected information only once.
/?
N
Result:
A'
Thus the Configure Internet connection and use IPCONFIG, PING / Tracer and Net stat utilities to
establish interconnection between systems have been done successful
M
EXPERIMENT- 8
Ex.No.8.Transfer files between systems in LAN using FTP Configuration, install Print server in a
LAN and share the printer in a network.
Aim:
To transfer files between systems in LAN using FTP Configuration, install Print server in a LAN
and share the between two system in a LAN.
Procedure:
E
To Install and configure printer:
EG
Connect the printer to parallel port of the motherboard and power cable to AC.
Switch on the system and printer.
LL
Insert the driver disk in the CD drive.
CO
Click start >control panel>printers and fax respectively.
Then >double click> add a printer>add printer wizard
respectively. Printer sharing:
IC
1. Open Printers and Faxes. Click Start, click Control Panel, click Printers and Other Hardware, and
then click Printers and Faxes.
HN
2. Right-click the printer you want to share, and then click Sharing.
3. On the Sharing tab, click Share this printer and then type a share name for the shared printer.
EC
4. If you share the printer with others using different hardware or different operating systems,
click Additional Drivers. Click the Environment and operating system for the other computers, and
YT
2. Right-click the printer you want to stop sharing, and then click Sharing.
DI
2. Click the Browse button to the right of Location, click the printer location, and then click OK.
3. Click Find Now.
4. Click the printer you want to connect to, and then click
OK. To locate a printer by typing the printer name or
browsing for it
1. Click Connect to this printer.
2. Do one of the following:
Type the printer name using the following format:
\\printserver_name\share_name
Browse for it on the network. Click Next, click the printer in Shared printers.
1. Click Next.
E
EG
Result:
To transfer files between systems in LAN using FTP Configuration, install Print server in a LAN
LL
and share the between two system in a LAN.
CO
IC
HN
EC
L YT
PO
N
DI
A'
M
EXPERIMENT- 9
Network configuration
Principle:
All commands related to Network configuration which includes how to switch to privilege
mode and normal mode and how to configure router interface and how to save this
E
configuration to flash memory or permanent memory.
EG
This commands includes
• Configuring the Router commands
LL
• General Commands to configure network
• Privileged Mode commands of a router
CO
• Router Processes & Statistics
• IP Commands
• Other IP Commands e.g. show ip route etc.
Procedure:
IC
HN
To do this EXPERIMENT- follows these steps:
EC
ping:
ping(8) sends an ICMP ECHO_REQUEST packet to the specified host. If the host
YT
responds, you get an ICMP packet back. Sound strange? Well, you can “ping” an IP
address to see if a machine is alive. If there is no response, you know something is
L
wrong.
PO
Traceroute:
Tracert is a command which can show you the path a packet of information takes from your
computer to one you specify. It will list all the routers it passes through until it reaches its
N
destination, or fails to and is discarded. In addition to this, it will tell you how long each 'hop'
DI
NOTE :If you write the command as above it shows as default your pc's server name firstly.
pathping:
A better version of tracert that gives you statics about packet lost and latency
E
EG
LL
CO
IC
HN
EC
L YT
PO
N
DI
A'
M
E
EG
LL
CO
Getting Help
IC
In any command mode, you can get a list of available commands by entering a question mark (?).
Router>?
HN
To obtain a list of commands that begin with a particular character sequence, type in those haracters
followed immediately by the question mark (?).
EC
Router#co?
configure connect copy
YT
Router#configure ?
PO
You can also abbreviate commands and keywords by entering just enough characters to make
DI
the command unique from other commands. For example, you can abbreviate the show
command to sh.
A'
Configuration Files
M
Any time you make changes to the router configuration, you must save the changes to memory
because if you do not they will be lost if there is a system reload or power outage. There are two
types of configuration files: the running (current operating) configuration and the startup
configuration.
Use the following privileged mode commands to work with configuration files.
• configure terminal – modify the running configuration manually from the terminal.
E
• erase startup-config – erase the startup-configuration in NVRAM.
EG
• copy tftp running-config – load a configuration file stored on a
LL
Trivial File Transfer Protocol (TFTP) server into the running
configuration.
CO
• copy running-config tftp – store the running configuration on a TFTP server.
IP Address Configuration
IC
Take the following steps to configure the IP address of an interface.
HN
Step 1: Enter privileged EXEC mode:
Router>enable password
EC
Step 2: Enter the configure terminal command to enter global configuration mode.
Router#config terminal
YT
Step 3: Enter the interface type slot/port (for Cisco 7000 series) or interface type port (for
Cisco 2500 series) to enter the interface configuration mode.
L
Example:
PO
Example,
DI
Ctrl-Z Router(config-if)#[Ctrl-Z]
M
Result:
The network configuration done successfully.
EXPERIMENT-10
Configure a Network
software.
E
to another.
EG
LL
CO
IC
HN
EC
L YT
PO
Procedure:
Router>
Router>Ena
A'
ble
M
Router#conf
ig t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname router0
router0(config)#interface fastethernet
0/0
router0(config-if)#ip address 192.168.1.1
255.255.255.0 router0(config-if)#description
router0 fastethernet 0/0 router0(config-if)#no
shutdown
E
!
EG
version 12.4
no service password-encryption
LL
!
hostname router0
CO
!
!
!
!
!
IC
HN
ip ssh version 1
!
!
EC
interface FastEthernet0/0
description router0 fastethernet
YT
0/0
ip address 192.168.1.1 255.255.255.0
duplex auto
L
speed auto
PO
!
interface FastEthernet0/1
description router0 fastethernet
N
0/1 no ip address
DI
duplex auto
speed auto
A'
!
interface
M
Vlan1 no ip
address
shutdown
!
ip classless
!
!
!
!
!
line con 0
line vty 0 4
login
!
!
end
router0
#
router0
#
router0#copy running-config startup-
E
config Destination filename [startup-
EG
config]?
Building
LL
configuration... [OK]
router0#
CO
Result:
The network configuration done successfully.
IC
HN
EC
L YT
PO
N
DI
A'
M
EXPERIMENT-11
Configure a Network
software.
E
to another.
EG
LL
CO
IC
HN
EC
L YT
PO
Procedure:
Router#configure
DI
terminal
Enter configuration commands, one per line. End with
A'
E
console Router#wr
EG
Building
configuration... [OK]
LL
Router#show running-config
Building configuration...
CO
Current configuration : 542 bytes
!
version 12.2
no service password-encryption
!
IC
HN
hostname Router
!
!
EC
!
!
YT
!
ip ssh version 1
!
L
!
PO
interface FastEthernet0/0
ip address 192.168.0.254 255.255.255.0
duplex auto
N
speed auto
DI
!
interface
A'
FastEthernet1/0 no ip
address
M
duplex auto
speed auto
shutdown
!
interface Serial2/0
ip address 192.168.1.1 255.255.255.0
!
interface
Serial3/0 no ip
address
27 MA’DIN POLYTECHNIC COLLEGE, MALAPPUAM|
REVISION-2015 |
shutdown
!
interface
FastEthernet4/0 no ip
address
shutdown
!
interface
FastEthernet5/0 no ip
address
shutdown
!
E
ip classless
EG
!
!
LL
!
!
CO
!
line con 0
line vty 0 4
login
!
IC
HN
!
end
Router#
EC
Router>enab
PO
le Router#
Router#configure terminal
Enter configuration commands, one per line. End with
N
Router(config)#exit
%SYS-5-CONFIG_I: Configured from console by
console Router#config t
Enter configuration commands, one per line. End with
CNTL/Z. Router(config)#
Router(config)#interface
Serial2/0 Router(config-if)#
Router(config-if)#exit
Router(config)#interface
FastEthernet0/0
E
Router#show running-config
EG
Building configuration...
Current configuration : 542 bytes
LL
!
version 12.2
CO
no service password-encryption
!
hostname Router
!
!
IC
HN
!
!
!
EC
ip ssh version 1
!
YT
!
interface FastEthernet0/0
ip address 192.168.2.254 255.255.255.0
L
duplex auto
PO
speed auto
!
interface
N
FastEthernet1/0 no ip
DI
address
duplex auto
A'
speed auto
shutdown
M
!
interface Serial2/0
ip address 192.168.1.2 255.255.255.0
!
interface
Serial3/0 no ip
address
shutdown
interface
FastEthernet4/0 no ip
address
shutdown
!
interface
FastEthernet5/0 no ip
address
shutdown
!
ip classless
!
!
!
E
!
EG
!
line con 0
LL
line vty 0 4
login
CO
!
!
end
Router#
IC
HN
IP ROUTE Command.....
Router#config t
Enter configuration commands, one per line. End with
EC
Router#show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B -
L
area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type
2 E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
N
IP ROUTE Command.....
Router>enable
Router#show ip route
E
connected, Serial2/0 Router#
EG
LL
Result:
The network configuration done successfully.
CO
IC
HN
EC
L YT
PO
N
DI
A'
M