Ipconfig command

by admin on September 26, 2011

Ipconfig is windows equivalent of the Linux command ifconfig.  Using this command we can retrieve network interface information.

Get IP for all network connecions.

Executing the command ‘ipconfig’ without arguments will print the IP addresses for all  network connections.

c:\>ipconfig
Windows IP Configuration

Ethernet adapter Local Area Connection:
   Connection-specific DNS Suffix  . :
   IPv4 Address. . . . . . . . . . . : 192.168.1.2
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Default Gateway . . . . . . . . . : 192.168.1.1

Wireless LAN adapter Wireless Network Connection:
   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . :

Command to flush DNS entries cache:

ipconfig /flushdns

Renew DHCP addresses for all network connections:

ipconfig /renew

Print DNS entries in the command line:

ipconfig /displaydns

{ 2 comments… read them below or add one }

deepak September 4, 2012 at 2:23 pm

how can i see my system mac address& also the above commands are not responding

Reply

admin September 8, 2012 at 11:01 am

You can use getmac or wmic commands to get mac address. check this article Get mac address

Leave a Comment

HTML tags are not allowed.

Previous post:

Next post: