Network commands in CMD

Get to know network commands in command prompt environment or CMD completely!

In this article, we are going to discuss an important task in networking called network commands in command prompt environment or CMD. Maybe you are familiar with the CMD environment and maybe you have never been to it. Nevertheless, those who have worked with the network know this environment well and usually enter a series of special commands there to either receive information or have the device do something for them. In the following, we are going to represent some of these network commands and introduce them to you. Commands that are usually needed and used in the network. As a result, we have also dealt with them and want to talk about them with you. So, stay with us.

What do we learn about in this article?

Network commands in CMD
Some network commands in CMD

Network commands in CMD

Network commands in CMD may come in handy and be useful in many positions. Especially when we want to check network problems and solve them, it is CMD that gives our hand and we can execute various commands in it. CMD or Command Prompt is one of the most useful parts of our MS Windows that we can use for various purposes. CMD is one of the best ways to troubleshoot MS Windows and support computer networks, and its commands are usually executed in the RUN window. You can find RUN through the search in Windows or by using the shortcut keys Windows + R. The Windows button is the button that has the Windows symbol on our keyboard, and by pressing it alone, the Start menu opens, where you can type cmd to enter command prompt environment. Now, in this article, we are going to tell you some of the network commands in CMD that will surely be useful to you.

Some of the network commands in CMD

Hostname

One of the simplest network commands in CMD is “Hostname”, by which you can find the name of your computer, or rather, the host computer’s name. Keep in mind that you can find out the name of the host computer name by right-clicking on My Computer (This PC in Windows 10 and above) and selecting Properties. However, sometimes you may not have access to My Computer and you are looking for a quick way to find out the name of the host computer. For this, it is enough to type Hostname in the command prompt environment.

Ping

Usually, most users are familiar with this item from network commands in CMD. You must have come across the ping command to check the speed, especially if you are into online computer games. This command is one of the known commands in the network. It helps us to find out the type of network connection and find out its megabit speed. This command is entered in RUN or command prompt environment in such a way that you must write the word “ping”, press the space button and then enter the destination IP or domain name:

Ping 1.2.3.4

When you enter this command, several data packets will be sent to your desired destination, and through them you can see which of them will be replied. If some of these packets are not returned, you will see the word lost, which indicates that the network is weak or there is no connection to the destination. These commands are also used for network support services.

Usually 4 packets are sent and their results are displayed for you, but if you want more than 4 packets to be sent, you can add -t to the end of the command with a space. With this you can continuously send a packet every second and this process continues until you stop it.

Pathping

As the ping command sends a packet to your desired destination, you can also check the connection between the IP address and the host computer. However, if there is a problem with the destination, you cannot specify it via the command ping. This is where “Pathping” comes to your aid, and with this one command, you can check the speed and how to transfer information by each of the available routers and receive the necessary information. With this command, you can also troubleshoot the problem and fix it, and it is written like this:

Pathping 1.2.3.4

NETSTAT

Another important network command in CMD is NESTAT, which is used to diagnose, check and maintain the network. This command contains sophisticated tools that show you the active connections on your system. Now whether it is a LAN or a WAN connection or whatever, it will show you the available connections. Now this connection can be anything and it may be only one open port and ready to communicate. All you have to do is entering netstat in RUN or command prompt environment.

Ipconfig

In order to know or change your IP address, you can enter the control panel and access it through the network card details in Network and Sharing Center. However, there is another way by which you can recognized your IP address. For this purpose, you can also use one of the network commands in CMD by entering ipconfig. If your system obtains the IP address from DHCP automatically, you can also enter the command ipconfig/release to release the IP address. Then get a new IP address for your system using the command ipconfig/renew.

NSLookup

The command nslookup is one of the most common and well-known tool of network administrators and is used in all operating systems for troubleshooting and solving problems related to DNS name translation. One of the most important features of the NS lookup tool is that it has two modes, Interactive and Non-Interactive. Interactive mode is used when you want to run many commands about DNS. As a result, by writing the word NSLOOKUP, you enter the DNS interface and you can enter various commands in it. Note that when you are in Interactive mode, you can only enter commands related to NSlookup. The non-interactive mode is that you enter each command separately without entering the NSlookup interface and using the switches. This mode is used when you want to enter only a specific command quickly.

Tracert

A conventional command for troubleshooting in the network is Tracert. With this command, you can check the path that packages take to reach their destination.

Tasklist

Tasklist is another network-related command in CMD that works like Task Manager and shows you all the processes running on the network.

Taskkill

Sometimes when your computer crashes, you need to run the task manager and end the task that caused the problem. Now you can do this with another network command in CMD. To do this, you must act like the pattern below and do this by typing taskkill plus the characters /f and /IM and then write the program you want to delete along with its format. The wording will be as follows:

Taskkill /f /IM Chrome.exe

Post a comment

Your email address will not be published.