TechNet
Export (0) Print
Expand All

The Ipconfig.exe Command Line Tool

Published: October 7, 2009

Updated: May 24, 2010

Applies To: Windows Server 2008 R2

You use the Ipconfig.exe command line tool to display the current Transmission Control Protocol/Internet Protocol (TCP/IP) configuration. For DirectAccess, you use Ipconfig.exe to determine the Internet Protocol version 6 (IPv6) configuration of a DirectAccess client, server, or intranet node.

The following is an example of the output from the ipconfig command on the DirectAccess client in the DirectAccess test lab (http://go.microsoft.com/fwlink/?Linkid=150613) when it is connected to the Internet subnet.

Windows IP Configuration


Ethernet adapter Local Area Connection 2:

   Connection-specific DNS Suffix  . :
   Link-local IPv6 Address . . . . . : fe80::b52f:36dc:be07:9d6d%15
   IPv4 Address. . . . . . . . . . . : 131.107.0.101
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Default Gateway . . . . . . . . . :

Wireless LAN adapter Wireless Network Connection:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :

Ethernet adapter Local Area Connection:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . : 

Tunnel adapter isatap.{3119B40F-CEC7-404A-B368-0BE67966EBF5}:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :

Tunnel adapter isatap.{04076670-7AF6-4B18-BF7E-8CB8393C4B4D}:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :

Tunnel adapter 6TO4 Adapter:

   Connection-specific DNS Suffix  . :
   IPv6 Address. . . . . . . . . . . : 2002:836b:65::836b:65
   Default Gateway . . . . . . . . . : 2002:836b:2::836b:2

Tunnel adapter iphttpsinterface:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :

In this example, the DirectAccess client is using 6to4 to reach the DirectAccess server (the interface named Tunnel adapter 6TO4 Adapter has a 6to4-based IPv6 address and default gateway).

The following is an example of the output from the ipconfig command on the DirectAccess server in the DirectAccess test lab (http://go.microsoft.com/fwlink/?Linkid=150613).

Windows IP Configuration


Ethernet adapter Internet:

   Connection-specific DNS Suffix  . : isp.example.com
   Link-local IPv6 Address . . . . . : fe80::c862:7866:fd45:2ccf%12
   IPv4 Address. . . . . . . . . . . : 131.107.0.2
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   IPv4 Address. . . . . . . . . . . : 131.107.0.3
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Default Gateway . . . . . . . . . :

Ethernet adapter Corpnet:

   Connection-specific DNS Suffix  . : corp.contoso.com
   Link-local IPv6 Address . . . . . : fe80::45d1:e335:2f5e:865c%11
   IPv4 Address. . . . . . . . . . . : 10.0.0.2
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Default Gateway . . . . . . . . . :

Tunnel adapter isatap.corp.contoso.com:

   Connection-specific DNS Suffix  . : corp.contoso.com
   IPv6 Address. . . . . . . . . . . : 2002:836b:2:1:0:5efe:10.0.0.2
   Link-local IPv6 Address . . . . . : fe80::5efe:10.0.0.2%13
   Default Gateway . . . . . . . . . :

Tunnel adapter isatap.isp.example.com:

   Connection-specific DNS Suffix  . : isp.example.com
   Link-local IPv6 Address . . . . . : fe80::200:5efe:131.107.0.2%14
   Link-local IPv6 Address . . . . . : fe80::200:5efe:131.107.0.3%14
   Default Gateway . . . . . . . . . :

Tunnel adapter 6TO4 Adapter:

   Connection-specific DNS Suffix  . : isp.example.com
   IPv6 Address. . . . . . . . . . . : 2002:836b:2::836b:2
   IPv6 Address. . . . . . . . . . . : 2002:836b:3::836b:3
   Default Gateway . . . . . . . . . :

Tunnel adapter Teredo Tunneling Pseudo-Interface:

   Connection-specific DNS Suffix  . :
   Link-local IPv6 Address . . . . . : fe80::8000:f227:7c94:fffd%16
   Default Gateway . . . . . . . . . :

Tunnel adapter IPHTTPSInterface:

   Connection-specific DNS Suffix  . :
   IPv6 Address. . . . . . . . . . . : 2002:836b:2:2:6d5c:17f7:69e8:dd2b
   Link-local IPv6 Address . . . . . : fe80::6d5c:17f7:69e8:dd2b%17
   Default Gateway . . . . . . . . . :

In this example, the DirectAccess server has an ISATAP address (on the interface named Tunnel adapter isatap.corp.contoso.com) and is using 6to4, Teredo, and IP-HTTPS.

You can also use the Ipconfig.exe command line tool to display the contents of the Domain Name System (DNS) Resolver cache with the ipconfig /displaydns command. From the contents of the DNS Resolver cache, you can determine the results of resolving intranet resource names.

noteNote
The display of the ipconfig /displaydns command can also contain the results of DNS queries for personal communications and care should be taken to preserve the privacy of the computer user.

Community Additions

ADD
Show:
© 2016 Microsoft