Lab 2 Handout
Lab 2 Handout
Lab 2 Handout
Taxila
Computer Networks LAB
Remarks: ……………………………………………
2. Resources Required
• 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)
3. Introduction
This lab introduces NIC (Network Interface Controller/Card), Switch/Hub & Router. Before
going to the procedure, firstly a small introduction of the devices is given.
3.4 Router
A router is a device in computer networking that forwards data packets to their destinations,
based on their addresses. The work a router does is called routing, which is somewhat like
switching, but a router is different from a switch. The latter is simply a device to connect
machines to form a LAN.
Routers work at the Network layer (layer 3) of the OSI model. Their main purpose is to
allow communication between different network.
4.1 PING
Ping is a computer network administration utility used to test the reachability of a host on an
Internet Protocol (IP) network and to measure the round-trip time for messages sent from the
originating host to a destination computer.
ping target_name/target_IP
4.2 TRACERT
Tracert determines the path taken to a destination by sending Internet Control Message Protocol
(ICMP) Echo Request messages to the destination with incrementally increasing Time to Live
(TTL) field values. The path displayed is the list of near-side router interfaces of the routers in
the path between a source host and a destination. The near-side interface is the interface of the
router that is closest to the sending host in the path.
This utilty is available as traceroute in some operating systems.
tracert target_name/target_IP
4.3 TELNET
Telnet is a network protocol used on the Internet or local area networks to provide a bidirectional
interactive text-oriented communications facility using a virtual terminal connection.
Historically, Telnet provided access to a command-line interface (usually, of an operating
system) on a remote host. Most network equipment and operating systems with a TCP/IP stack
support a Telnet service for remote configuration (including systems based on Windows NT).
Because of security issues with Telnet, its use for this purpose has waned in favor of SSH
(Secure SHell).
telnet target_name/target_IP
1. Connect devices to each other with the correct UTP (straight/cross) cables and
power them ON.
2. Use the Control Panel/Network Connections (or Properties in Context Menu of
My Network Places) to display Network Connections Window. Then use
Properties in Context Menu of Local Area Connection to display Local Area
Connection Properties Window. Select the TCP/IP protocol from the
Configuration Tab and click on properties. Check the IP Address and Subnet
mask for both workstations on the IP Address Tab.