10.1.ipconfig command

  • You can use the ipconfig command to display IP address configuration parameters on a Windows PC.

  • The syntax of the ipconfig command :

ipconfig [ /all | /renew | /release | /renew6 | /release6 ]

Parameter

Purpose

/all

The ipconfig command entered by itself displays summary information about a PC’s IP address configuration. This parameter gives more verbose information, including such information as DNS and WINS server IP addresses.

/release or /release6

These options release a DHCP lease for an IPv4 and IPv6 address,respectively.

/renew or renew6

These options renew a DHCP lease for an IPv4 and IPv6 address, respectively.

Example 1:

  • Example below shows the ipconfig command, without extra parameters, being issued on a PC.

  • The PC contains an Ethernet and a wireless network interface card (NIC).

  • From the output, you can conclude that one of the NICs has an IP address of 172.16.202.129, while the other NIC has an IP address of 172.16.202.128.

  • Also, you can see that these two NICs share a common default gateway of 172.16.202.2.

C:\> ipconfig
Windows IP Configuration
Ethernet adapter Local Area Connection 3:
Connection-specific DNS Suffix . : localdomain
Link-local IPv6 Address . . . . . : fe80::5101:b420:4354:d496%20
IPv4 Address. . . . . . . . . . . : 172.16.202.129
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 172.16.202.2
Ethernet adapter Local Area Connection:
Connection-specific DNS Suffix . : localdomain
Link-local IPv6 Address . . . . . : fe80::a10f:cff4:15e4:aa6%11
IPv4 Address. . . . . . . . . . . : 172.16.202.128
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 172.16.202.2
OUTPUT OMITTED...

Example 2:

  • Example below shows the ipconfig /all command being issued on a PC.

  • Notice the additional output from this command, not shown in the output of the ipconfig command.

    • As a couple of examples, you can see the MAC address (labeled as the physical address ) for each NIC and the DNS server’s IP address of 172.16.202.2.

C:\> ipconfig /all
Windows IP Configuration
Host Name . . . . . . . . . . . . : WIN-OD1IG7JF47P
Primary Dns Suffix . . . . . . . :
Node Type . . . . . . . . . . . . : Hybrid
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No
DNS Suffix Search List. . . . . . : localdomain
Ethernet adapter Local Area Connection 3:
Connection-specific DNS Suffix . : localdomain
Description . . . . . . . . . . . : Intel(R) PRO/1000 MT Network
Connection #2
Physical Address. . . . . . . . . : 00-0C-29-3A-21-67
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
Link-local IPv6 Address . . . . . : fe80::5101:b420:4354:d496%20
(Preferred)
IPv4 Address. . . . . . . . . . . : 172.16.202.129(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Lease Obtained. . . . . . . . . . : Saturday, May 28, 2011 6:28:08
PM
Lease Expires . . . . . . . . . . : Saturday, May 28, 2011 9:28:08
PM
Default Gateway . . . . . . . . . : 172.16.202.2
DHCP Server . . . . . . . . . . . : 172.16.202.254
DHCPv6 IAID . . . . . . . . . . . : 419433513
DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-14-A6-11-77-00-0C-
29-3A-21-5D
DNS Servers . . . . . . . . . . . : 172.16.202.2
Primary WINS Server . . . . . . . : 172.16.202.2
NetBIOS over Tcpip. . . . . . . . : Enabled
Ethernet adapter Local Area Connection:
Connection-specific DNS Suffix . : localdomain
Description . . . . . . . . . . . : Intel(R) PRO/1000 MT Network
Connection
Physical Address. . . . . . . . . : 00-0C-29-3A-21-5D
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
Link-local IPv6 Address . . . . . : fe80::a10f:cff4:15e4:aa6%11
(Preferred)
IPv4 Address. . . . . . . . . . . : 172.16.202.128(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Lease Obtained. . . . . . . . . . : Saturday, May 28, 2011 6:27:56
PM
Lease Expires . . . . . . . . . . : Saturday, May 28, 2011 9:28:08
PM
Default Gateway . . . . . . . . . : 172.16.202.2
DHCP Server . . . . . . . . . . . : 172.16.202.254
DHCPv6 IAID . . . . . . . . . . . : 234884137
DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-14-A6-11-77-00-0C-
29-3A-21-5D
DNS Servers . . . . . . . . . . . : 172.16.202.2
Primary WINS Server . . . . . . . : 172.16.202.2
NetBIOS over Tcpip. . . . . . . . : Enabled
OUTPUT OMITTED...

Example 3:

  • If you are troubleshooting a PC and suspect that IP addressing might be an issue, you can release the PC’s current DHCP lease with the ipconfig /release command, as shown below .

C:\> ipconfig /release
Windows IP Configuration
Ethernet adapter Local Area Connection 3:
Connection-specific DNS Suffix . :
Link-local IPv6 Address . . . . . : fe80::5101:b420:4354:d496%20
Default Gateway . . . . . . . . . :
Ethernet adapter Local Area Connection:
Connection-specific DNS Suffix . :
Link-local IPv6 Address . . . . . : fe80::a10f:cff4:15e4:aa6%11
Default Gateway . . . . . . . . . :
OUTPUT OMITTED...
  • Then you can renew the DHCP lease with the ipconfig/renew command, as shown below .

C:\> ipconfig /renew
Windows IP Configuration
Ethernet adapter Local Area Connection 3:
Connection-specific DNS Suffix . : localdomain
Link-local IPv6 Address . . . . . : fe80::5101:b420:4354:d496%20
IPv4 Address. . . . . . . . . . . : 172.16.202.129
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 172.16.202.2
Ethernet adapter Local Area Connection:
Connection-specific DNS Suffix . : localdomain
Link-local IPv6 Address . . . . . : fe80::a10f:cff4:15e4:aa6%11
IPv4 Address. . . . . . . . . . . : 172.16.202.128
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 172.16.202.2
OUTPUT OMITTED...

Last updated

Was this helpful?