Table of Contents
ipconfig command
To communicate via the network, TCP/IP configuration must be correct. ipconfig command is used to verify the TCP/IP configuration of a Windows PC. ipconfig command is used from the command prompt.
Windows ipconfig
C:\>ipconfig
C:\Windows\System32>ipconfig Windows IP Configuration Ethernet adapter Ethernet: Connection-specific DNS Suffix . : lan IPv6 Address. . . . . . . . . . . : fd02:3193:589:0:fc35:7f70:af41:4e3d Temporary IPv6 Address. . . . . . : fd02:3193:589:0:3d02:d18d:348b:5b42 Link-local IPv6 Address . . . . . : fe80::e3be:e39b:c799:e58f%11 IPv4 Address. . . . . . . . . . . : 192.168.1.215 Subnet Mask . . . . . . . . . . . : 255.255.255.0 Default Gateway . . . . . . . . . : 192.168.1.1 -- omitted --
The ipconfig command displays the TCP/IP configuration for each network adapter (network interface). If no options are specified, only basic information such as IP address/subnet mask and default gateway will be displayed.
For notebook PCs that have not only a wired LAN but also a wireless LAN, the TCP/IP configuration of the wireless LAN will also be displayed. Also, since IPv6 is enabled by default on Windows 10, information on the IPv6 virtual tunnel interface will also be displayed.
ipconfig command options
The ipconfig command has a variety of options.
ipconfig command options | meaning |
---|---|
/all | Display detailed configuration information |
/release | Release DHCP-assigned configurations |
/renew | Get configuration information again via DHCP |
/displaydns | Display DNS cache information |
ipconfig /all
Running the ipconfig command with “/all” will display detailed configuration information: not only the IP address, but also the MAC address and the IP address of the DNS server.
C:\Windows\System32>ipconfig /all Windows IP Configuration Host Name . . . . . . . . . . . . : ARKHIVE Primary Dns Suffix . . . . . . . : Node Type . . . . . . . . . . . . : Hybrid IP Routing Enabled. . . . . . . . : No WINS Proxy Enabled. . . . . . . . : No DNS Suffix Search List. . . . . . : lan Ethernet adapter Ethernet: Connection-specific DNS Suffix . : lan Description . . . . . . . . . . . : Realtek Gaming 2.5GbE Family Controller Physical Address. . . . . . . . . : 50-EB-F6-B4-25-85 DHCP Enabled. . . . . . . . . . . : Yes Autoconfiguration Enabled . . . . : Yes IPv6 Address. . . . . . . . . . . : fd02:3193:589:0:fc35:7f70:af41:4e3d(Preferred) Temporary IPv6 Address. . . . . . : fd02:3193:589:0:3d02:d18d:348b:5b42(Preferred) Link-local IPv6 Address . . . . . : fe80::e3be:e39b:c799:e58f%11(Preferred) IPv4 Address. . . . . . . . . . . : 192.168.1.215(Preferred) Subnet Mask . . . . . . . . . . . : 255.255.255.0 Lease Obtained. . . . . . . . . . : 2023年2月26日 2:05:19 Lease Expires . . . . . . . . . . : 2023年3月8日 7:20:33 Default Gateway . . . . . . . . . : 192.168.1.1 DHCP Server . . . . . . . . . . . : 192.168.1.1 DHCPv6 IAID . . . . . . . . . . . : 105966582 DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-2A-BE-BB-22-50-EB-F6-B4-25-85 DNS Servers . . . . . . . . . . . : 192.168.1.1 NetBIOS over Tcpip. . . . . . . . : Enabled -- omitted --
ipconfig /release and ipconfig /renew
/release” and “/renew” are used when DHCP client. Executing the ipconfig command with “/release” will release configuration information such as IP address obtained by DHCP. The “/renew” command retrieves the configuration information again by DHCP.
C:\Windows\System32>ipconfig /release Windows IP Configuration Ethernet adapter Ethernet: Connection-specific DNS Suffix . : IPv6 Address. . . . . . . . . . . : fd02:3193:589:0:fc35:7f70:af41:4e3d Temporary IPv6 Address. . . . . . : fd02:3193:589:0:3d02:d18d:348b:5b42 Link-local IPv6 Address . . . . . : fe80::e3be:e39b:c799:e58f%11 Default Gateway . . . . . . . . . : -- omitted -- C:\Windows\System32>ipconfig /renew Windows IP Configuration Ethernet adapter Ethernet: Connection-specific DNS Suffix . : lan IPv6 Address. . . . . . . . . . . : fd02:3193:589:0:fc35:7f70:af41:4e3d Temporary IPv6 Address. . . . . . : fd02:3193:589:0:3d02:d18d:348b:5b42 Link-local IPv6 Address . . . . . : fe80::e3be:e39b:c799:e58f%11 IPv4 Address. . . . . . . . . . . : 192.168.1.215 Subnet Mask . . . . . . . . . . . : 255.255.255.0 Default Gateway . . . . . . . . . : 192.168.1.1 -- omitted --
ipconfig /displaydns
Running the ipconfig command with the option “/displaydns” will display the DNS name resolution cache.
C:\Windows\System32>ipconfig /displaydns Windows IP Configuration analytics43.techsmith.com ---------------------------------------- Record Name . . . . . : analytics43.techsmith.com Record Type . . . . . : 5 Time To Live . . . . : 1557 Data Length . . . . . : 8 Section . . . . . . . : Answer CNAME Record . . . . : 06301.tbnet1.com Record Name . . . . . : 06301.tbnet1.com Record Type . . . . . : 1 Time To Live . . . . : 1557 Data Length . . . . . : 4 Section . . . . . . . : Answer A (Host) Record . . . : 67.227.186.229 Record Name . . . . . : 06301.tbnet1.com Record Type . . . . . : 1 Time To Live . . . . : 1557 Data Length . . . . . : 4 Section . . . . . . . : Answer A (Host) Record . . . : 72.52.161.233 gateway.discord.gg ---------------------------------------- Record Name . . . . . : gateway.discord.gg Record Type . . . . . : 1 Time To Live . . . . : 90 Data Length . . . . . : 4 Section . . . . . . . : Answer A (Host) Record . . . : 162.159.130.234 Record Name . . . . . : gateway.discord.gg Record Type . . . . . : 1 Time To Live . . . . : 90 Data Length . . . . . : 4 Section . . . . . . . : Answer A (Host) Record . . . : 162.159.134.234 Record Name . . . . . : gateway.discord.gg Record Type . . . . . : 1 Time To Live . . . . : 90 Data Length . . . . . : 4 Section . . . . . . . : Answer A (Host) Record . . . : 162.159.135.234 Record Name . . . . . : gateway.discord.gg Record Type . . . . . : 1 Time To Live . . . . : 90 Data Length . . . . . : 4 Section . . . . . . . : Answer A (Host) Record . . . : 162.159.133.234 Record Name . . . . . : gateway.discord.gg Record Type . . . . . : 1 Time To Live . . . . : 90 Data Length . . . . . : 4 Section . . . . . . . : Answer A (Host) Record . . . : 162.159.136.234 -- omitted --
Related article
Please see the following article about verifying TCP/IP configuration on Linux (Ubuntu).
TCP/IP
- IP(Internet Protocol) : The Most Important Data Transfer Protocol
- Ping “Will the data be transfered properly?”
- Ping command on Windows OS
- Traceroute : Which router does the data go through?
- ICMP Redirect
- Where’s the Trouble? Ping and Traceroute
- ARP(Address Resolution Protocol)
- ARP Format
- Gratuitous ARP(GARP)
- nslookup command : Verifying DNS name resolution
- DHCP : Automatically Assign IP Address
- Cisco IOS DHCP Server Configuration and Verification Commands
- Cisco Router DHCP Server Configuration Example
- DHCP Relay Agent
- DHCP Relay Agent Configuration Example [Cisco]
- Summary of DHCP Server Placement
- TCP/IP Configuration Summary
- ipconfig command : To verify TCP/IP configurations on Windows OS
- Commands to Verify TCP/IP Configuration On Linux (Ubuntu)
- Web Proxy Server
- FTP : Representative File Transfer Protocol
- TFTP(Trivial File Transfer Protocol)
- TFTP Client on Windows10/11