Skip to main content

Network Connection verification and Troubleshooting commands in Windows

To ensure the proper network connection in the system, we do the following three types of checking:

--- Check the NIC card
---Check whether we have an IP or not or our gateway is active or not by a ping test
----- Check if the port no or the service is active or not


To check the connection go to command prompt and enter the commands

>ping localhost
 then NIC  working.

>ping 172.29.0.1
then gateway working


>ipconfig
In computing, ipconfig (internet protocol configuration) is a console application (command line tool) in Microsoft Windows used to control the network connections on windows.It displays all current TCP/IP network configuration values and can modify DHCP and DNS settings.

Usually, ipconfig command is used with the command-line switch  /all.

> ipconfig /all

This command shows the various network configurations, MAC address, default gateway and IP addresses of different servers on the network like dns, DHCP etc.


> ipconfig /release

This command forcefully releases the IP address of the system and the ipconfig command does not show any IP address of the device.


> ipconfig /renew

This command sends a request to the DHCP server requesting a new logical address (IP address) for the device and is allocated a new IP by the DHCP server.

> ipconfig /displaydns

This command displays the contents of the Domain Name System (DNS) resolver cache.A DNS cache makes browsing faster because it keeps a record of any website visited before.

If we want to make a connection to the previously visited websites then our computer doesn't need to make an external request for the IP address and the conversion from domain name to IP address is done in milliseconds.


> ipconfig /flushdns

This command purges the DNS resolver cache. Simply this command as the name seems clears the entire DNS cache.

If the IP address of a website changes before the DNS cache updates in the system, then the system may not be able to load the webpage.To avoid this above command is used.




> netstat
OR
> netstat –an

Netstat is one of a number of command-line tools available to check the functioning of a network. It provides a way to check if various aspects of TCP/IP are working and what connections are present.



> netstat –na | find “:135”
        >netstat –na | find “:137”

The arguments with the netstat command are used to find the results of ‘netstat’ command of given ports in the arguments.

> tracert
This command is used to trace where the hops require diagnosis. It displays stepwise tracing of sent packets through various hops.


> pathping

The pathping tool is a route tracing tool that combines features of Ping and Tracert with additional information that neither of those tools provides. pathping sends packets to each router on the way to a final destination over a period of time and then computes results based on the packets returned from each hop.It pings all routers for 25s.


> nslookup

Displays information that you can use to diagnose Domain Name System (DNS) infrastructure. The nslookup command-line tool is available only if you have installed the TCP/IP protocol.

It is used by any computer user to enter a hostname(ex  defit.com) and find out the corresponding IP address, and vice versa.


> arp –a

This command is used for IP to MAC binding. In ARP table, a list is maintained where a system with an IP has its MAC address corresponding to it in a record.












Popular posts from this blog

Network Layer

Network Layer(Layer 3):  It is responsible for the source-to-destination delivery of packets across multiple links(networks).It is also responsible for structuring and managing a multi-node network, including addressing, routing, and traffic control. Functions include: Logical Addressing: IP addressing is defined at the Network Layer of the OSI model. This layer adds a header to the packet coming from the upper layer that, among other things, indicates the logical addresses of the sender and receiver. IP addressing is also known as logical addressing. Routing: When independent networks are connected together to create a large network, the connecting devices(routers/gateways) route the packets to their final destination. The decision which route/path should be followed to reach from source to destination is handled by the network layer. 

What is a Network Hub?

Hub is the most simple networking device which is used to connect all network devices on an internal network. It detects whether a device is physically connected to it or not. It is a Layer 1 device in OSI reference model and is best for small and simple local area networks. It is not intelligent because it does not filter any data. When a packet is received by one port, the data is copied to all other ports and is seen by all connected devices. It has 4/12 ports . Drawbacks of Hubs are:- Rebroadcast- Forwards packets across all ports. Creates Security concerns- Traffic could not be safeguarded. Unnecessary traffic which reduces bandwidth.   

Types of Network

What is a Network ? A Network is defined as an arrangement of a set of devices connected together by communication links for the purpose of sharing data. Each device may be called as a node which can be a computer, printer or any other devices capable of sending or receiving data generated by other nodes or devices on the network. Following are the types of Network:- 1. Local Area Network(LAN): LANs are privately owned networks defined within a small physical area such as in a single office, building or campus. LAN size is limited to a few kilometers for which the network management is simple.   Most common LAN topologies are bus, ring, star and have data rates in the range of 4 to 16 megabits per second. LANs often use a transmission technology consisting of a single cable to which all the machines are attached. LANs are mostly used to allow resources to be shared among personal computers or workstations. 2. Metropolitan Area Network(MAN): A MAN is des...