Monday, 21 September 2015

IPCONFIG COMMAND




     IPCONFIG is a DOS utility that can be used to display network settings currently assigned and given by a network. This command can be utilized to verify a network connection and network settings.

   The ipconfig command is available in the below Microsoft operating systems as ipconfig.exe.

Windows 95
Windows 98
Windows ME
Windows 2000
Windows XP
Windows Vista
Windows 7
Windows 8

   Some of the IPCONFIG commands are given below:
[NOTE: some ipconfig command may not work in some Microsoft OS]

/all
Display full configuration information.
/release
Release the IPv4 address for the specified adapter.
/release6
Release the IPv6 address for the specified adapter.
/renew
Renew the IPv4 address for the specified adapter.
/renew6
Renew the IPv6 address for the specified adapter.
/flushdns
Purges the DNS Resolver cache.
/registerdns
Refreshes all DHCP leases and re-registers DNS names
/displaydns
Display the contents of the DNS Resolver Cache.
/showclassid
Displays all the DHCP class IDs allowed for adapter.
/setclassid
Modifies the DHCP class id.
/showclassid6
Displays all the IPv6 DHCP class IDs allowed for adapter.
/setclassid6
Modifies the IPv6 DHCP class id.
/Batch [file]
Write to file or ./WINIPCFG.OUT
/renew_all
Renew all adapters.
/release_all
Release all adapters.
/renew N
Renew adapter N.
/release N
Release adapter N.


   The default is to display only the IP address, subnet mask and default gateway for each adapter bound to TCP/IP, for this we use ipconfig as a command.

   For release and renew, if no adapter name is specified, then the IP address leases for all adapters bound to TCP/IP will be released or renewed.


IPCONFIG examples:

   To get your computers local network IP address, subnet mask, and default gateway typing ipconfig alone displays this information as shown below. Keep in mind this is only your local network information.

Ipconfig


Ethernet adapter Ethernet:

   Connection-specific DNS Suffix  . : domain.name
   Link-local IPv6 Address . . . . . : fe80::3cab:ee5c:8ec2:8af7%3
   IPv4 Address. . . . . . . . . . . : 192.168.0.5
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Default Gateway . . . . . . . . . : 192.168.0.1

  [ For wirless LAN, the command is same as that as in Ethernet LAN adapter. 

     ipconfig 
  Wireless LAN adapter Wi-Fi:

   Connection-specific DNS Suffix  . : domain.name
   Link-local IPv6 Address . . . . . : fe80::c9d:811f:34a5:100b%5
   IPv4 Address. . . . . . . . . . . : 192.168.0.3
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Default Gateway . . . . . . . . . : 192.168.0.1]

Ipconfig  /all

Windows IP Configuration

   Host Name . . . . . . . . . . . . : D-Vampire
   Primary Dns Suffix  . . . . . . . :
   Node Type . . . . . . . . . . . . : Hybrid
   IP Routing Enabled. . . . . . . . : No
   WINS Proxy Enabled. . . . . . . . : No
   DNS Suffix Search List. . . . . . : domain.name

Ethernet adapter Local Area Connection 2:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : TAP-Windows Adapter V9
   Physical Address. . . . . . . . . : 00-FF-6C-83-A5-11
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes

Wireless LAN adapter Local Area Connection* 3:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : Microsoft Wi-Fi Direct Virtual Adapter
   Physical Address. . . . . . . . . : 1A-E3-47-98-84-5C
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes

Wireless LAN adapter Wi-Fi:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . : domain.name
   Description . . . . . . . . . . . : Qualcomm Atheros AR956x Wireless Network
Adapter
   Physical Address. . . . . . . . . : 28-E3-47-98-84-5C
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes

Ethernet adapter Ethernet:

   Connection-specific DNS Suffix  . : domain.name
   Description . . . . . . . . . . . : Realtek PCIe GBE Family Controller
   Physical Address. . . . . . . . . : F8-A9-63-02-44-A3
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes
   Link-local IPv6 Address . . . . . : fe80::3cab:ee5c:8ec2:8af7%3(Preferred)
   IPv4 Address. . . . . . . . . . . : 192.168.0.5(Preferred)
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Lease Obtained. . . . . . . . . . : 22 September 2015 11:28:36
   Lease Expires . . . . . . . . . . : 22 September 2015 13:28:36
   Default Gateway . . . . . . . . . : 192.168.0.1
   DHCP Server . . . . . . . . . . . : 192.168.0.1
   DHCPv6 IAID . . . . . . . . . . . : 66627939
   DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-1B-50-1A-77-F8-A9-63-02-44-A3

   DNS Servers . . . . . . . . . . . : 49.128.160.13
   NetBIOS over Tcpip. . . . . . . . : Enabled