The windows command ipconfig allows you to view the Internet Protocol (IP) configuration of the machine you are using.

Usage: ipconfig (/all) (adaptername)

The /all switch shows more information. To specify a particular adapter, you can add the name of it at the end of the command line. You need to be running command prompt to enter it as you would any DOS command. This command works with Win9x and NT.

Entering the command ipconfig on my system gives you:

C:\>ipconfig

Windows NT IP Configuration

Ethernet adapter FE100A1:

        IP Address. . . . . . . . . : 192.168.0.250
        Subnet Mask . . . . . . . . : 255.255.255.0
        Default Gateway . . . . . . :

Ethernet adapter SMC12114:

        IP Address. . . . . . . . . : 192.168.0.15
        Subnet Mask . . . . . . . . : 255.255.255.0
        Default Gateway . . . . . . : 192.168.0.1

PPP adapter NdisWan5:

        IP Address. . . . . . . . . : 0.0.0.0
        Subnet Mask . . . . . . . . : 0.0.0.0
        Default Gateway . . . . . . :

  ==========================================
Adding the /ALL switch also gives you:

Ethernet adapter SMC12114:

        Description . . . . . . . . : NDIS 4.0 driver

        Physical Address. . . . . . : 00-E0-29-48-42-0A
        DHCP Enabled. . . . . . . . : Yes
        IP Address. . . . . . . . . : 192.168.0.15
        Subnet Mask . . . . . . . . : 255.255.255.0
        Default Gateway . . . . . . : 192.168.0.1
        DHCP Server . . . . . . . . : 192.168.0.1
        Lease Obtained. . . . . . . : Sunday, October 15, 2000 6:07:20 PM
        Lease Expires . . . . . . . : Sunday, October 15, 2000 7:07:20 PM

PPP adapter NdisWan5:

        Description . . . . . . . . : NdisWan Adapter
        Physical Address. . . . . . : 00-00-00-00-00-00
        DHCP Enabled. . . . . . . . : No
        IP Address. . . . . . . . . : 0.0.0.0
        Subnet Mask . . . . . . . . : 0.0.0.0
        Default Gateway . . . . . . :
  ==========================================

Two equally important switches are available.

The /RELEASE switch releases the IP address, which allows the DHCP server to reassign the IP address to another system.

The /RENEW switch renews the lease on the current IP address. If your system has been on for a long period of time (2 days plus), typing ipconfig /renew will renew the lease on the current IP address on your system. If you didn't have an IP address already, this will either get an address for you from a DHCP server or assign an APIPA address.

Log in or register to write something here or to contact authors.