Object:: Data Communication and Computer Network
Object:: Data Communication and Computer Network
LAB # 2
Object:
To study the basic diagnostic utilities on command prompt and viewing their
output
Command:
1. Ping
This command create an echo message weather the system is connected to Internet
or not. The ping command helps to verify IP-level connectivity. When
troubleshooting, you can use ping to send an ICMP echo request to a target host
name or IP address. Use ping whenever you need to verify that a host computer
can connect to the TCP/IP network and network resources.
Sub-Commands:
SSUET Page 1
Data communication and computer network
(b)
Ping –a IPaddress
This option sets the number of ICMP Echo Requests (n- numbers of requests)
to send, from 1 to 4294967295. The ping command will send 4 by default if -n isn't
used.
SSUET Page 2
Data communication and computer network
2. IPconfig
Displays all current TCP/IP network configuration values and refreshes Dynamic
Host Configuration Protocol (DHCP) and Domain Name System (DNS) settings.
Used without parameters, ipconfig displays the IP address, subnet mask, and
default gateway for all adapters.
Sub-Commands
(a) ipconfig/all
Displays the full TCP/IP configuration for all adapters. Without this
parameter, ipconfig displays only the IP address, subnet mask, and default gateway
values for each adapter. Adapters can represent physical interfaces, such as
installed network adapters, or logical interfaces, such as dial-up connections.
SSUET Page 3
Data communication and computer network
(b) IPconfig/renew
© IPconfig/release
3. Hostname
Let the user to find th name of PC.
SSUET Page 4
Data communication and computer network
4 . Nslookup address
5. Tracert
Sub-Commands
This tracert option specifies the maximum number of hops in the search for
the target. If you do not specify MaxHops, and a target has not been found by 30
hops, tracert will stop looking.
SSUET Page 5
Data communication and computer network
6 . Netstat
SSUET Page 6
Data communication and computer network
Sub-commands
(a) Netstat –a
This switch displays active TCP connections, TCP connections with the listening
state, as well as UDP ports that are being listened to.
(b) Netstat –e
Use this switch with the netstat command to show statistics about your network
connection. This data includes bytes, unicast packets, non-unicast packets,
discards, errors, and unknown protocols received and sent since the connection was
established.
SSUET Page 7
Data communication and computer network
(c) Netstat –r
Execute netstat with -r to show the IP routing table. This is the same as using the
route command to execute route print.
7 . Arp
arp displays and modifies entries in the Address Resolution Protocol (ARP) cache,
which contains one or more tables that are used to store IP addresses and their
resolved Ethernet or Token Ring physical addresses. There is a separate table for
each Ethernet or Token Ring network adapter installed on your computer.
SSUET Page 8
Data communication and computer network
Sub-commands
(a) Arp –a
Arp allows you to view and modify the ARP cache. If two hosts on the same
subnet cannot ping each other successfully, try running the arp -a command on
each computer to see whether the computers have the correct media access control
(MAC) addresses listed for each other.
SSUET Page 9