A) - Introduction and Gathering Addresses (IP/MAC) Information in This Lab We Will Learn About
A) - Introduction and Gathering Addresses (IP/MAC) Information in This Lab We Will Learn About
IPv4 uses 32 binary bits to create a single unique address on the network. An IPv4
address is expressed by four numbers separated by dots. Each number is the decimal
(base-10) representation for an eight-digit binary (base-2) number, also called an
octet. For example: 216.27.61.137
A MAC address, or Media Access Control address, is a 48 bit address associated with
a network adapter. While IP addresses are associated with software, MAC addresses
are linked to the hardware of network adapters. The MAC address is a unique value
associated with a network adapter. MAC addresses are also known as hardware
addresses or physical addresses. They uniquely identify an adapter on a LAN.
Prompt).
2. Type ipconfig and press Enter key. The spelling of the ipconfig is critical, but the
case is not.
3. The screen shows the IP address, subnet mask and the default gateway. The IP
address and the default gateway should be in the same network or subnet;
otherwise this host wouldn’t be able to communicate outside the network.
1.___________________________________________________________
2.____________________________________________________________
3.____________________________________________________________
1. To see more information, type ipconfig/all and press Enter key. The figure shows
the detailed IP configuration of the computer on the screen.
The host name (computer name), the Physical address of your machine,
IP address, subnet Mask, Default Gateway and DNS Servers.
3. In the LAN, compare your result with a few nearby computers. What similarities
do you see in the physical (MAC) address?
________________________________________________________________
d. Write down the computer’s host name: _______________________________
a. _______________________________________
b. _______________________________________
c. ________________________________________
d. ________________________________________
Open the Command prompt (MS-DOS). Ping the IP address/domain name of another
computer.
Ping the following addresses and verify that result was successful.
1. www.pucit.edu.pk
2. www.aiou.edu.pk
3. www.pu.edu.pk
4. www.microsoft.com
5. www.mit.edu.
Understanding OUTPUT:
By default, ping waits Approximately 4,000 milliseconds (4 seconds) for each response
to be returned before displaying the "Request Timed Out" message.
In computer networks, hop refers to the number of routers that a packet (a portion of
data) passes through from its source to its destination. The hop count represents the total
number of routing devices Time-to-live (TTL) fields. The TTL value specifies
approximately how many router (i.e. hops) the packet has gone through.
Adding to other answers that TTL value at max can be 255 because of its size of 1 byte
( 8 bits -> max. value = 255 ). On the internet, it usually takes very less Round Trips ( RT
) to finish a request. And within each trip, with each hop TTL decreases. Most of the
requests get finished without even reaching TTL value zero
You sent a request to some non-existent server/URL. At first its TTL was 255. It keeps
on hopping from 1 router to other, until TTL becomes zero, which is when a packet is
dropped.
Error messages:
Destination Host Unreachable
This message indicates one of two problems: either the local system has no route to the
desired destination, or a remote router reports that it has no route to the destination. When
you ping to an IP address in a different network, ping packets reach default gateway. My
default gateway sends the packet to remote gateway. So ping packet finally reaches the
remote network. However, if the remote gateway failed to find the remote host, it will
send an echo Destination host unreachable.
The error message "Destination Host Unreachable” tells that the ping request from our
computer cannot find the route to the destination IP address (destination host). It means,
the Packet send from your computer reached the destination network successfully but the
remote gateway failed to find the destination host. So the remote gateway sends an Echo
message Destination host unreachable. One major possibility for this error; there is no
route listed in the remote gateway, for the packet send from your computer, to the
destination host. If there is no route available, it is impossible to find the destination host
and your computer will receive an error message "Destination host unreachable" from
remote gateway. So one of the reason for this can be faulty routing table. If the
destination host is down at the time the packet send, it may result destination host
unreachable error message.
By default, ping/trace route waits Approximately 4,000 milliseconds (4 seconds) for each
response to be returned before displaying the "Request Timed Out" message. This error
message indicates that your host did not receive the ping message back from the
destination device within the designated time period. This is an indicator that the
destination device is not connected to the network, is powered off, or is not configured
correctly.
Step-5: Ping the computer’s loopback IP address.
ping 127.0.0.1
The address 127.0.0.1 is reserved for loopback testing. If the ping is successful, then
TCP/IP is properly installed and functioning on this computer.
Steps to tracing
The result shows the complete route to the site and the number of hops in path. Traces out
the route and permits you to access a particular server. The tracert command gives you a
long list of all servers you pass through on your way to your final destination. (Maximum
up to 30hops- if your route is longer than that, you are expected to give up waiting for the
connection).
Tracert uses the same echo requests and replies as the ping command but in a slightly
different way. Observe that tracert actually contacted each router three times. Compare
the results to determine the consistency of the route. Each router represents a point where
one network connects to another network and the packet was forwarded through.
Trace a local host name or IP address in your local area network (LAN).