So there are lots of ways to address a networking issue and there are lots of reasons for the occurrence of that. This article will see how we can address a network issue at a beginner level. To perform this we need to have a basic understanding of networking.
First, let’s consider some situations, there is one server that we are unable to connect to that server. So you get a request to troubleshoot the issue. So the first thing that you need to do is to gather proper and relevant information. Like:
- From when you are facing issues?
- Is there onsite activity happening?
- Are there any changes in the network?
- How many users are impacted (This is just to understand the intensity of the impact)?
Once you have all the above details you can troubleshoot the issue and will list down the few commands using which you can start troubleshooting the issue.
Table of Contents
Ping command will help you order to understand whether the host or server is reachable or not. you need to run the below command to test that.
In the window the default count is 4 but in linux, there is no default count and it will run till the time you forcefully stopped that. Sometime there is some issue in the DNS part for that you can run the command ping <Hostname> and after that you can run the command <Ping Host IP>. Using this you can understand is there any issue with the DNS or not and accordingly you can troubleshoot.
Sometimes you are not aware of the underlying IP of a domain at that time you can use the command nslookup. This command will help you for querying the Domain Name System (DNS) to obtain the mapping between a domain name and IP address or other DNS records. You can run this command using below:
There are lots of other option in the nslookup that you can use in order to know much more about the hostname.
This is one of the important command in the networking. People use this command in order to understand the how packet is traveling from host to the target. with this command you can easily understand weather you packet is reaching to the destination or not. If you packet is unable to reach to the destination than there is some issue with the switch and that you can easily understand with this command. You can run the below command in order to use this.
In window you can run the below command in order to know the name output:
Using this command you can also identify the slowness of the network and you can also address the network performance issue in network.
There are lots of time happen due to the firewall rule you are unable to connect so you need to make sure you firewall rules are set properly. In order to check the firewall rule in the linux you can run the below command:
iptables -L -n -v
For window you can check the below detailed article by the microsoft in order to check and learn about it:
After Reading this article, I hope you understand how to troubleshoot a network issue in environment. Checkout our other article for more such information.