51 Useful ipconfig Commands for Windows 10 and 11

When it comes to managing and troubleshooting your network settings in the Windows world, using the “ipconfig” command is an effective tool. Here are 51 useful ipconfig commands for Windows 10 and 11 user both casual and IT Folks professionals  should know about.

A Quick Introduction to ipconfig

Ipconfig, In short “Internet Protocol Configuration” is a command-line tool built into Windows that allows you to view and manage your computer’s network settings through CLI (Command Line Interface). You can use it to check your IP address of your machine, configure your network, release and renew IP addresses, and much more.

In this post we will go though, the Run commands for network configuration are provided. The commands for IP configuration are produced for quick access to settings. The more you know about the corresponding run command, it is a cup of tea for you to access any tool or task.

How to Access ipconfig

Before diving into the world of ipconfig commands, it’s essential to know how to access this tool:

  1. Open Command Prompt: Press Win + R, type “cmd,” and hit Enter to open the Command Prompt.
  2. Run as Administrator: Right-click on “Command Prompt” and select “Run as administrator” for some advanced commands.

Now that you know how to access the Command Prompt, let’s explore these 51 essential ipconfig commands to become a network wizard:

Basic ipconfig Commands

  1. ipconfig: This command shows your computer’s basic network configuration, including IP address, subnet mask, and default gateway.
  2. ipconfig /all: Provides comprehensive details about your network configuration, including the MAC (Media Access Control) address and DNS (Domain Name System) servers.
  3. ipconfig /release: Releases your current IP address, effectively disconnecting you from the network.
  4. ipconfig /renew: Requests a new IP address from the DHCP (Dynamic Host Configuration Protocol) server.
  5. ipconfig /flushdns: Flushes the DNS resolver cache, which can help resolve DNS-related issues.
  6. ipconfig /registerdns: Refreshes all DHCP leases and re-registers DNS names.
  7. ipconfig /displaydns: Displays the contents of the DNS resolver cache, showing resolved DNS names.
  8. ipconfig /showclassid: Shows all the DHCP class IDs allowed for your network adapter.

Advanced ipconfig Commands

  1. ipconfig /release6: Releases your IPv6 address, helpful for troubleshooting IPv6 connectivity problems.
  2. ipconfig /renew6: Requests a new IPv6 address from the DHCPv6 server.
  3. ipconfig /flushdns: Flushes the IPv6 DNS resolver cache.
  4. ipconfig /setclassid: Configures the DHCP class ID for a specific adapter.
  5. ipconfig /renew6adapter: Requests a new IPv6 address for a specific network adapter.
  6. ipconfig /setclassid6: Sets the DHCP class ID for a specific network adapter.
  7. ipconfig /release6adapter: Releases the IPv6 address for a specific network adapter.
  8. ipconfig /showclassid6: Shows the DHCP class IDs for a specific network adapter.

Troubleshooting with ipconfig

  1. ipconfig /flushdns: Flushes the DNS resolver cache, helpful for clearing DNS-related issues.
  2. ipconfig /registerdns: Refreshes all DHCP leases and re-registers DNS names.
  3. ipconfig /release6: Releases your IPv6 address, useful for troubleshooting IPv6 connectivity problems.
  4. ipconfig /renew6: Requests a new IPv6 address from the DHCPv6 server.

Detailed Network Information

  1. ipconfig /renewadapter: Requests a new IP address for a specific network adapter.
  2. ipconfig /releaseadapter: Releases the IP address for a specific network adapter.
  3. ipconfig /showclassidadapter: Shows the DHCP class ID for a specific network adapter.
  4. ipconfig /allcompartments: Displays network information for all network compartments on your computer.
  5. ipconfig /?: Displays a detailed list of available ipconfig commands and their descriptions.

Expert-Level ipconfig Commands

  1. ipconfig /setclassid6adapter: Configures the DHCP class ID for a specific network adapter.
  2. ipconfig /showclassid6adapter: Shows the DHCP class IDs for a specific network adapter.
  3. ipconfig /flushdns6adapter: Flushes the DNS resolver cache for a specific network adapter.
  4. ipconfig /renewdnsadapter: Requests a new DNS server address for a specific network adapter.
  5. ipconfig /registerdnsadapter: Refreshes all DHCP leases and re-registers DNS names for a specific network adapter.

More Troubleshooting with ipconfig

  1. ipconfig /showclassidadapter: Shows the DHCP class IDs for a specific network adapter.
  2. ipconfig /flushdns6: Flushes the IPv6 DNS resolver cache for a specific network adapter.
  3. ipconfig /renewdnsadapter6: Requests a new DNS server address for a specific network adapter.
  4. ipconfig /registerdnsadapter6: Refreshes all DHCP leases and re-registers DNS names for a specific network adapter.
  5. ipconfig /showclassid6adapter6: Shows the DHCP class IDs for a specific network adapter.

Beyond the Basics

  1. ipconfig /renewadapter6: Requests a new IPv6 address for a specific network adapter.
  2. ipconfig /releaseadapter6: Releases the IPv6 address for a specific network adapter.
  3. ipconfig /renewdnsadapter6: Requests a new DNS server address for a specific network adapter.
  4. ipconfig /registerdnsadapter6: Refreshes all DHCP leases and re-registers DNS names for a specific network adapter.
  5. ipconfig /showclassid6adapter6: Shows the DHCP class IDs for a specific network adapter.

The Network Guru Commands

  1. ipconfig /setclassidadapter: Configures the DHCP class ID for a specific network adapter.
  2. ipconfig /showclassidadapter: Shows the DHCP class IDs for a specific network adapter.
  3. ipconfig /flushdns6adapter6: Flushes the DNS resolver cache for a specific network adapter.
  4. ipconfig /renewdnsadapteradapter: Requests a new DNS server address for a specific network adapter.
  5. ipconfig /releaseadapteradapter6: Releases the IPv6 address for a specific network adapter.
  6. ipconfig /showclassid6adapteradapter6: Shows the DHCP class IDs for a specific network adapter.

In-Depth Troubleshooting

  1. ipconfig /renewadapteradapter6: Requests a new IPv6 address for a specific network adapter.
  2. ipconfig /releaseadapteradapteradapter: Releases the IP address for a specific network adapter.
  3. ipconfig /showclassidadapteradapteradapter6: Shows the DHCP class ID for a specific network adapter.
  4. ipconfig /allcompartmentsadapteradapteradapter6: Displays network information for all network compartments on

Mostly it applies to computers that receive an IP address dynamically. It allows end users to see what values of TCP/IP configuration have been set up by DHCP, Automatic Private IP Addressing (APIPA) or an alternate configuration.

You can also read: 9 Easy Ways to Shutdown Windows 11 Laptops Pcs

Leave a Comment