Complete Guide to ipconfig with Examples

ADVERTISEMENT

ipconfig is a powerful command-line tool in Windows for viewing and managing network configurations. Below are all the available ipconfig options.

ipconfig Commands with Descriptions and Examples

CommandDescriptionExampleOutput
ipconfigDisplays basic IP configuration information.ipconfigIP address, subnet mask, and default gateway for each active adapter.
ipconfig /allDisplays detailed information about all network interfaces, including MAC addresses, DNS servers, DHCP status, etc.ipconfig /allHostname, DNS servers, MAC addresses, DHCP lease info, and IP details for each interface.
ipconfig /releaseReleases the IP address assigned by the DHCP server, disconnecting from the network.ipconfig /releaseIP address is released from all active network adapters.
ipconfig /renewRenews the DHCP lease and attempts to obtain a new IP address from the DHCP server.ipconfig /renewNew IP address is obtained from the DHCP server for all adapters.
ipconfig /flushdnsClears the DNS resolver cache, which helps resolve issues with outdated or incorrect DNS records.ipconfig /flushdns“Successfully flushed the DNS Resolver Cache.”
ipconfig /registerdnsRegisters the computer’s DNS information with the DNS server.ipconfig /registerdnsThe system registers DNS information with the DNS server.
ipconfig /displaydnsDisplays the current DNS resolver cache showing domain names and their resolved IP addresses.ipconfig /displaydnsLists cached DNS records.
ipconfig /showclassid [adapter]Shows the DHCP class ID for a specific network adapter (e.g., Ethernet, Wi-Fi).ipconfig /showclassid EthernetDisplays the DHCP class ID for the specified adapter.
ipconfig /setclassid [adapter] [class_id]Configures a new DHCP class ID for a specified network adapter.ipconfig /setclassid Ethernet 12345Sets a custom DHCP class ID for the Ethernet adapter.
ipconfig /release6Releases the IPv6 configuration, disconnecting IPv6 addresses from all network adapters.ipconfig /release6IPv6 addresses are released from all network interfaces.
ipconfig /renew6Renews the IPv6 address from the DHCP server.ipconfig /renew6New IPv6 address is obtained from the DHCP server for all adapters.
ipconfig /allcompartmentsDisplays all network interfaces across multiple network compartments (for advanced setups).ipconfig /allcompartmentsLists network configurations across different compartments.
Overview of ipconfig commands and their usage

ADVERTISEMENT

You might like

Leave a Reply

Your email address will not be published. Required fields are marked *