Skip to main content
  • Place orders quickly and easily
  • View orders and track your shipping status
  • Create and access a list of your products
  • Manage your Dell EMC sites, products, and product-level contacts using Company Administration.

NETSH Commands Explained

Summary: Genernal information about Network Shell (NETSH) commands used in the Windows Command Prompt.

This article may have been automatically translated. If you have any feedback regarding its quality, please let us know using the form at the bottom of this page.

Article Content


Symptoms


This article contains information about Netsh commands you can use to troubleshoot network issues.


NETSH

Netsh commands are useful when you have any type of network issue. The following commands have fixed Internet browser to domain issues.

Run the Commands in Command Line as Administrator (The Command Prompt: What It Is and How to Use It on a Dell System) for the best results. Reboot after the last command, instead of rebooting in-between each command.

  • netsh i i r r
  • netsh i i de ar
  • netsh winsock reset
  • netsh advfirewall reset
  • ipconfig /flushdns

Reboot the system.

This should save you a chunk of time by bypassing some troubleshooting steps. If you want to dig deeper on the exact issue, continue to read below on how this works:

SLN302566_en_US__1icon Note: In order, this is what you are resetting. TCP/IP, ARP, Winsock, Firewall, and last DNS. This method works due to the order or the resets. The order is based on how packets get packed up and sent out into the world. The first three involve the packet encapsulation process and adds info to the packet headers for routing purposes. The firewall will allow the packets to go out to the world based on rules. Generally this reset helps if you cannot ping out but can ping the gateway. Last is DNS and will need to be reset if the firewall is letting the packets go out but the destination host is not being resolved.
 

To test to see where the network issue is happening try this:

  1. Ping the loopback. This will test that the TCP/IP stack is working and if the drivers for the NIC are operating. Once the NIC drivers are updated, and no bangs in DM run the following command in cmd. If it fails, you will reset TCP/IP.

    The command is: ping 127.0.0.1
     
  2. Next ping the default gateway. This may also be the router. To find the gateway's IP, type ipconfig /all in command prompt. Then ping that number found for the default gateway. ARP deals with adding MAC address resolution address to the packet headers. Based on the Operating System Reinstall (OSRI) model this is layer 3 and MAC address and routers fall in this category. If this fails, it means that the ARP needs to be reset.

    The command is: ping (IP found for their default gateway) - for example: ping 192.168.1.1
     
  3. If the above steps are successful, go ahead and try to ping out to the Internet. This will test both the firewall and the DNS portions of the protocol stack. Start by pinging google.com. If it passes without errors and the customer is unable to browse online, this is a firewall issue. It would be best to reset the firewall.

    If the ping test fails using the Google address, ping Google's IP address of 216.58.217.228

    If the pinged Google address fails but directly pinging the IP for the site passes, it is most likely a DNS issue on the site side. If this happens, you can ping Google's DNS directly at 8.8.8.8 to determine that a non-ISP DNS server can be reached.

    Go ahead and reset DNS, reboot, and retry the above commands to verify that the DNS issue is resolved. If it fails again, we can determine that the protocols on the system are good but their ISP's DNS servers are having issues. You can manually set DNS to Google's 8.8.8.8 address.

    If needed, here is a link on how to manually set the IP for DNS: https://developers.google.com/speed/public-dns/docs/using#windows SLN302566_en_US__2iC_External_Link_BD_v1

If you have further questions about this solution, contact Dell Technical Support.


Article Properties


Last Published Date

21 Feb 2021

Version

4

Article Type

Solution