IPConfig (Compact 2013)

3/26/2014

The ipconfig command-line tool displays all current TCP/IP network configuration values and refreshes Dynamic Host Configuration Protocol (DHCP) and Domain Name System (DNS) settings. The ipconfig command-line tool displays both Internet Protocol version 4 (IPv4) and Internet Protocol version 6 (IPv6) network information. When you use ipconfig without options, ipconfig displays the IP address, subnet mask, and default gateway for all network adapters.

Syntax

ipconfig [/?] [/all] [/d] [/renew [adapter]] [/release [adapter]] [/flushdns]

Options

The following table describes each ipconfig option. These options are not case-sensitive.

Option

Option

Description

/?

Displays a Help message that shows the syntax and describes the options for ipconfig.

/all

Displays full configuration information.

/d

Redirects the output to the debug port. If your device is connected to Platform Builder, ipconfig prints to the Output window in Visual Studio.

/renew

adapter

(IPv4 only) Renews the IP address for the specified adapter. The adapter option specifies the index of the adapter for which you want to renew the IP address. If you do not specify an adapter index, ipconfig renews the addresses for all adapters. To renew an IPv6 address, use the ipv6 renew command.

/release

adapter

(IPv4 only) Releases the IP address for the specified adapter. The adapter option specifies the index of the adapter for which you want to release the IP address. If you do not specify an adapter index, ipconfig releases the addresses for all adapters. To release an IPv6 address, use the ipv6 release command.

/flushdns

Clears the name resolution client cache.

Remarks

This command-line tool is most useful on computers that are configured to obtain an IP address automatically. You can use ipconfig to determine which TCP/IP configuration values have been configured by DHCP, Automatic Private IP Addressing (APIPA), or an alternate configuration.

Example

The following example shows typical output produced by the ipconfig command-line tool when you use the all option.

\> ipconfig /all
Windows IP configuration
    Host Name . . . . . . . . . . . . : Compact
    Primary Dns suffix. . . . . . . . : mydomain.com
    Node Type. .  . . . . . . . . . . : Unknown
    IP Routing Enabled. . . . . . . . : NO
    Proxy Enabled . . . . . . . . . . : NO

Ethernet adapter Local Area Connection:
    Adapter Name. . . . . . . . . . . : PCI\RTL81391
    Description . . . . . . . . . . . : PCI\RTL81391
    Adapter Index . . . . . . . . . . : 2
    Physical Address. . . . . . . . . : 00-50-BA-5D-54-9A
    DHCP Enabled. . . . . . . . . . . : YES
    Autoconfiguration Enabled . . . . : YES
    IPv6 Managed Address. . . . . . . : enabled
    IPv6 Other Stateful . . . . . . . : disabled
    Link-local IPv6 Address . . . . . : fe80::e561:95b2:dc97:9dd6%2 (Preferred)
    IPv4 Address [DHCP] . . . . . . . : 10.125.148.141 (Preferred)
    Subnet Mask . . . . . . . . . . . : 255.255.254.0
    Lease obtained on . . . . . . . . : Monday, October 08, 2012 1:40:38 PM
    Lease expires on. . . . . . . . . : Tuesday, October 16, 2012 1:40:38 PM
    Default Gateway . . . . . . . . . : 10.125.148.1
    DHCP Server . . . . . . . . . . . : 157.54.14.155
    DHCPv6 IAID . . . . . . . . . . . : 33575098
    DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-18-04-F2-9D-00-50-BA-5D-54-9A
    WINS Server . . . . . . . . . . . : 157.54.14.163
                                        157.59.200.249
    DNS Server. . . . . . . . . . . . : 157.54.14.178
                                        157.59.200.240
                                        157.54.10.29
    NetBIOS over TCP. . . . . . . . . : Disabled

Loopback Adapter [Loopback Pseudo-Interface 1]:
    Adapter Name. . . . . . . . . . . : Loopback Pseudo-Interface 1
    Description . . . . . . . . . . . : Software Loopback Interface 1
    Adapter Index . . . . . . . . . . : 1
    DHCP Enabled. . . . . . . . . . . : NO
    Autoconfiguration Enabled . . . . : YES
    IPv6 Managed Address. . . . . . . : disabled
    IPv6 Other Stateful . . . . . . . : disabled
    IPv6 Address. . . . . . . . . . . : ::1
    IPv4 Address. . . . . . . . . . . : 127.0.0.1 (Preferred)
    Subnet Mask . . . . . . . . . . . : 255.0.0.0
    Default Gateway . . . . . . . . . : 0.0.0.0
    NetBIOS over TCP. . . . . . . . . : Disabled

See Also

Reference

Network Command-Line Tools Reference
IPv6 renew
IPv6 release

Concepts

Network Command-Line Tools Catalog Items and Sysgen Variables