IPCONFIG
configure IP ( Internet Protocol shape )
Syntax IPCONFIG /all Display full configuration information. IPCONFIG /release [adapter] Release the IPv4 address for the specified adapter. IPCONFIG /release6 [adapter] Release the IPv6 address for the specified adapter. IPCONFIG /renew [adapter] Renew the IPv4 address for the specified adapter. IPCONFIG /renew6 [adapter] Renew the IPv6 address for the specified adapter. IPCONFIG /flushdns Purge the DNS Resolver cache. IPCONFIG /registerdns Refresh all DHCP leases and re-register DNS names. IPCONFIG /displaydns Display the contents of the DNS Resolver Cache. IPCONFIG /showclassid adapter Display all the DHCP class IDs allowed for adapter. IPCONFIG /showclassid6 adapter Display all the IPv6 DHCP class IDs allowed for adapter. IPCONFIG /setclassid adapter [classid] Modify the DHCP class id. IPCONFIG /setclassid6 adapter [classid] Modify the IPv6 DHCP class id. IPCONFIG /? Display help.
If the Adapter list contains spaces, use quotes : “ Adapter name ”
Wildcard characters * and ? are allowed, see the examples below
The default option is to display only the IP savoir-faire, subnet disguise and default option gateway for each arranger tie to TCP/IP.
For Release and Renew, if no adapter mention is specified, then the IP address leases for all adapters bound to TCP/IP will be released or renewed .
If you remote into a computer and run ipconfig /release it will kill your connection
For setclassid, if no CLASS ID is specified, then the CLASS ID is removed .
DHCP User Classes allow extra or modified DHCP options to be applied to a subset of computers on the network, as identified by a CLASS ID. For case, a different gateway, DNS server, or lease fourth dimension.
This requires configuring the CLASS ID appropriately on the DHCP server. see RFC 3004
Examples:
Show detail information
C : \ > ipconfig /all
Release and Renew all adapters :
ipconfig /release
ipconfig /renew
Release and Renew all adapters – one liner for distant practice :
ipconfig /release & & ipconfig /renew
Renew any association that has a diagnose starting with EL :
ipconfig /renew EL*
Release all connections matching *Con*, eg. “ local Area association 1 ” or “ local Area connection 2 ” :
ipconfig /release *Con*
Set the DHCP class ID for the named adapter to TEST :
ipconfig /setclassid “ local Area Flickroomn ” test
“ Life is a deluxe gamble – or it is nothing ” ~ Helen Keller
Related commands:
BROWSTAT – Get world, browser and PDC information.
NETSTAT – display networking statistics ( TCP/IP ).
NETSH – configure interfaces, routing protocols, filters, routes, RRAS.
PATHPING – IP hound utility.
PING – test a network joining.
Configure the hosts file to redirect or block urls.
Q813878 – How to block specific net protocols and ports.
Q313190 – Use IPSec IP Filter Lists.
Domain Name System – docs.microsoft.com
ipchicken – Display your stream IP.
equivalent bash command ( Linux ) : dhcpcd, lookupd -flushcache, ifconfig – information science configuration.
Equivalent PowerShell commands : Clear-DnsClientCache – net the contented of the DNS customer cache.
$ ip4 = Get-NetIPAddress -AddressFamily IPv4 -InterfaceIndex $ ( Get-NetConnectionProfile | Select-Object -ExpandProperty InterfaceIndex ) | Select-Object -ExpandProperty IPAddress
$ ip6 = Get-NetIPAddress -AddressFamily IPv6 -InterfaceIndex $ ( Get-NetConnectionProfile | Select-Object -ExpandProperty InterfaceIndex ) | Select-Object -ExpandProperty IPAddress
Equivalent bash command ( MacOS ) : ipconfig / dscacheutil – opinion IP config / Query / flush the Directory Service hoard.
Some rights reserved Copyright © 1999-2022 SS64.com Some rights reserved