Monday 28 November 2016

Ipconfig

  • It displays all current TCP/IP network configuration values and refreshes DHCP and DNS settings.
  • Used without parameters, ipconfig displays the IP address, subnet mask, and default gateway for all adapters.
  • This command is most useful on computers that are configured to obtain an IP address automatically.

  • If the Adapter name contains any spaces, use quotation marks around the adapter name (that is, "Adapter Name").
  • For adapter names, ipconfig supports the use of the asterisk (*) wildcard character to specify either adapters with names that begin with a specified string or adapters with names that contain a specified string.
  • This command is available only if the Internet Protocol (TCP/IP) is installed as a component in the properties of a network adapter in Network Connections.

Syntax

ipconfig [/all] [/renew [Adapter]] [/release [Adapter]] [/flushdns] [/displaydns] [/registerdns] [/showclassid Adapter] [/setclassid Adapter [ClassID]]
/all
  • Displays the full TCP/IP configuration for all adapters.
  • Without this parameter, ipconfig displays only the IP address, subnet mask, and default gateway values for each adapter.


/renew [Adapter]
  • Renews DHCP configuration for all adapters or for a specific adapter if the Adapter parameter is included.
  • This parameter is available only on computers with adapters that are configured to obtain an IP address automatically.
  • To specify an adapter name, type the adapter name that appears when you use ipconfig without parameters.


/release [Adapter]
  • Sends a DHCP release message to the DHCP server to release the current DHCP configuration and discard the IP address configuration for either all adapters (if an adapter is not specified) or for a specific adapter if the Adapter parameter is included.
  • This parameter disables TCP/IP for adapters configured to obtain an IP address automatically.


/flushdns
  • Flushes and resets the contents of the DNS client resolver cache.
  • During DNS troubleshooting, you can use it to discard negative cache entries from the cache, as well as any other entries that have been added dynamically.
/displaydns
  • Displays the contents of the DNS client resolver cache, which includes both entries preloaded from the local hosts file and any recently obtained resource records for name queries resolved by the computer.
  • The DNS Client service uses this information to resolve frequently queried names quickly, before querying its configured DNS servers.


/registerdns
  • Initiates manual dynamic registration for the DNS names and IP addresses that are configured at a computer.
  • You can use this parameter to troubleshoot a failed DNS name registration or resolve a dynamic update problem between a client and the DNS server without rebooting the client computer.
/showclassid Adapter
  • Displays the DHCP class ID for a specified adapter.
  • To see the DHCP class ID for all adapters, use the asterisk (*) wildcard character in place of Adapter.
/setclassid Adapter [ClassID]
  • Configures the DHCP class ID for a specified adapter for all use asterisk (*).
  • This parameter is available only on computers with adapters that are configured to obtain an IP address automatically.
  • If a DHCP class ID is not specified, the current class ID is removed.
/?
  • Displays help at the command prompt.

No comments: