Experiment No 9
Experiment No 9
AIM: Configure Internet connection and use IP-Config, PING / Tracer and Net stat
utilities to debug the network issues.
THEORY:
TCP/IP utilities
To assist with the management of TCP/IP.There are three types of TCP/IP-
based utilities.
Connectivity utilities that you can use to interact with and use resources on a variety
of systems.
Diagnostic utilities that you can use to detect and resolve networking problems.
TCP/IP server software that provides printing and publishing services to TCP/IP
based Microsoft Windows client
ping [-t] [-a] [-n count] [-l size] [-f] [-i TTL] [-v TOS]
Following table shows use of ping command with different options.
Parameter Description
-t Pings the specified host until interrupted (press Ctrl+C to stop sending).
-a Resolves addresses to hostnames.
-n count Indicates the number of Echo Requests to send.
Sends a specific size of data. If this size is greater than the local network
-l size
can handle, thesender will generate fragmented packets directly on the
network.
-f Sets the Don‘t Fragment flag in the packet.
-i TTL Sets the Time to Live value in the packet.
-vTOS Sets the type of service in the packet.
Indicates that the Ping process should record the route for the number of
-r count
count hops specified.
Indicates that the Ping process should maintain Timestamp information for the
-s count
number of count hops specified.
Indicates that the Ping process should follow a loose source route path along
-j host_list
the host_list path
Indicates that the Ping process should follow a strict source route along the
-k host_list
host_list path.
-w timeout Indicates the number of milliseconds the host should wait for each reply.
-R Use the router header to test the reverse route as well (IPv6 only).
-S srcaddr What address to use to source ping from.
-p Ping yper-V Network Virtualization provider address.
-4 Use IPv4 specifically.
-6 Use IPv6 specifically.
IPCONFIG
Syntax
ipconfig /? | /all |
Following table shows use of ipconfig command with different options
Parameter Description
Tracert
It is use to determines the route data takes to get to a p
ach router to trace the The iCMP protocol sends out Time
Exceeded messages to. e
route. . Each time a packet is sent, the time-to-live (TTL) value is reduced before the
packet
is forwarded. This allows TTL to count how many hops it is to the destination.
if there is a trouble connecting to a rerhote host 'use Tracert to see where that
connection fails. .
Syntax: tracert <ip address>.
Following table shows use of tracert command With different options.
Parameter Description
-d Tells the system not to resolve addresses to host names
-h maxHops Specifies the maximum number of hops to search for target
NETSTAT
It is used to shows the status of each active network connection.
Netstat will display statistics for both TCP and UDP, including protocol, local
address, foreign address, and the TCP connection state. Because UDP is
connectionless, no connection information will be shown for UDP packets.
It‘s a helpful tool in funding problems and determining the amount of traffic
on the network as a performance measurement.
Syntax:
netstat [-a] [-b] [-e] [-f] [-n] [-o] [-p proto] [-r] [-s] [-x] [-t] [interval]
Parameter Description
-a Lists all current connections and open, listening ports on the local system.
-b Displays executable for creating connection or listening port.
-e Displays Data Link layer statistics (also can be used with the -s parameter).
-f Displays fully qualified domain names (FQDN).
-n Displays addresses and port numbers in numerical form.
-o Displays the owning process ID associated with a connection.
Shows the connections for the specified protocol. The protocol defined may be
-p protocol UDPor TCP. When used with the -s parameter, the protocol definition IP, IPv6,
ICMP,ICMPv6, TCP, or UDP also may be used.
-r Displays the routing table (also see the route command).
Displays statistics organized based on the protocols, such as IP, UDP, and TCP, by
-s
default (also can be used with the -p parameter to define a subset of the default).
-t Displays the current connection offload state.
-x Displays NetworkDirect connections, listeners, and shared endpoints.
Redisplays the statistics on a regular basis using the interval (in seconds) value
interval between displays. Press Ctrl+C to stop displaying the statistics. If this parameter is
notincluded, the statistics appear only once.
ARP
The ARP utility helps diagnose problems associated with the Address Resolution
Protocol (ARP). _ TCP/IP hosts use ARP to determine the physical (MAC)
address that corresponds with a specific IP address.
Once the MAC address is determined by the ARP reply, the IP and MAC address
of the destination system are stored in the ARP cache (stored in memory) so that
next time the address will be resolved from the cache and a broadcast will not be
needed.
Syntax: arp -a
Then when the Network and Sharing Center opens, click on Change adapter
settings. This will be the same on Windows 7 or 10.
Step-3
Step-5
Check Validate settings upon exit so Windows can find any problems
with the addresses you entered. When you’re finished click OK.
Step-6
Windows will run network diagnostics and verify the connection is good.
Here we had no problems with it, but if you did, you could run the network
troubleshooting wizard.
Step-7
Now you can open the command prompt and do an ipconfig to see the
network adapter settings have been successfully changed.
Conclusion: In this way we Configured the Internet connection and use IP-Config, PING /
Tracer and Net stat utilities to debug the network issues.