search

What Windows command can show all network configurations for all the network interfaces?

The ipconfig (short for IP Configuration) is a basic, yet popular, Windows network command-line utility used to display the TCP/IP network configuration of a computer. If you are familiar with Linux, this tool is similiar to ifconfig. This tool is often used for troubleshooting network connectivity issues. With ipconfig, you can identify the types of network adapaters on your computer, the computer's IP address, the IP addresses of the DNS (Domain Name System) servers being used, and much more.

Show
  • Table of Content
  • How to Open Command Prompt
  • Ipconfig Syntax
  • Ipconfig Parameters
  • Example Usage
  • ipconfig - Retrieve Basic TCP/IP Network Information
  • ipconfig /all - Retrieve All TCP/IP Network Information
  • ipconfig /release - Releases the IPv4 Address of All Network Adapters
  • ipconfig /release6 - Releases the IPv6 Address of All Network Adapters
  • ipconfig /release <adapter> - Releases the IPv4 Address for a Specific Network Adapters
  • ipconfig /renew - Get a New IPv4 Address for All Network Adapters
  • ipconfig /renew6 - Get a New IPv6 Address for All Network Adapters
  • ipconfig /renew <adapter> - Get a New IPv4 Address For a Specific Network Adapter
  • ipconfig /all | findstr /v 00-00-00 | findstr Physical - Display MAC Address of Only Physical Connected Network Adapters
  • ipconfig /displaydns - View DNS Cache
  • ipconfig /flushdns - Purge DNS Cache
  • Other Usages and Getting Help
  • Redirect Output to Text File
  • Recommended Reading
  • What command shows network configuration for all network interfaces?
  • What Windows command shows network interface information?
  • Which command allows to view all network connections?
  • What command will show the network configuration of a computer?

These commands shown here are tested on a comptuer with Windows 10 but most will work in other versions of Windows as well.

Table of Content

  • Overview
  • How to Launch Command Prompt
  • Ipconfig Syntax
  • Ipconfig Parameters
  • Example Usage
    • ipconfig - Retrieves Basic TCP/IP Network Information (IP, subnet mask, gateway)
    • ipconfig /all - Retrieves All TCP/IP Network Information (MAC address, adapter description, DHCP details)
    • ipconfig /release - Releases the IPv4 Address of All Network Adapters
    • ipconfig /release6 - Releases the IPv6 Address of All Network Adapters
    • ipconfig /release <adapter> - Releases the IP Address of a Specific Network Adapter
    • ipconfig /renew - Get a New IPv4 Address for All Network Adapters
    • ipconfig /renew6 - Get a New IPv6 Address for All Network Adapters
    • ipconfig /renew <adapter> - Get a New IPv4 Address for a Specific Network Adapter
    • ipconfig /displaydns - View DNS Cache
    • ipconfig /flushdns - Purge DNS Cache
    • ipconfig /all | findstr /v 00-00-00 | findstr Physical - Display MAC Address of Only Physical Connected Network Adapters
    • Other Usages and Getting Help
  • Tips
    • Redirect Output to Text File
  • Recommended Reading
  • Summary

Overview

The ipconfig is a Windows command-line utility used often to troubleshooting computer network issues. If you are a Linux user, this utility is similar to ifconfig. This is often used to determine the local IP address, subnet mask, the gateway address, and other network configuration of a computer. Additionally, this tool is used to refresh DHCP (Dynamic Host Configuration Protocol) and DNS (Domain Name System) settings

While most of the information provided by the ipconfig command-line utility can be found via a more user-friendly graphical interface, sometimes that interface may not be available and command prompt is your only available option. If you are a help desk technician or a network professional, it is recommended that you understand the command-line method of retrieving a computer's network configuration, and it some cases, performing network functions.


How to Open Command Prompt

To use this utility, you will need to launch the Command Prompt window. The three common ways to launch the Command Prompt window are:

  1. Search for cmd using the built-in Windows search tool.
  2. Right-click on the Start icon and select Command Prompt.

    What Windows command can show all network configurations for all the network interfaces?

  3. Press the keyboard combination WinKey + R, then type cmd at the Run window that appears.

    What Windows command can show all network configurations for all the network interfaces?



Ipconfig Syntax

ipconfig [/allcompartments] [/all] [/renew [<Adapter>]] [/release [<Adapter>]] [/renew6[<Adapter>]] [/release6 [<Adapter>]] [/flushdns] [/displaydns] [/registerdns] [/showclassid <Adapter>] [/setclassid <Adapter> [<ClassID>]]>


Ipconfig Parameters

ParameterDescription
/all Display the full TCP/IP configuration information for all network adapters.
/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.
/? Displays help information.

Example Usage

There are a variety of switches (sub commands) available with the ipconfig utility that will either display certain information or perform certain network functions. At the most basic, the ipconfig displays a computer's IP address, subnet mask and the default gateway (which is typically the IP address of your router or network firewall).

ipconfig - Retrieve Basic TCP/IP Network Information

To get basic network information from your computer, type the following in the command window then press Enter: ipconfig

The screenshot example below is the ipconfig output of a particular computer. The output of your ipconfig result will differ depending on your network setup and the type of network adapters installed on your computer. In our screenshot example, it shows the following basic networking information about the computer from which ipconfig was ran.

  • IPv4 address: 192.168.0.98
  • Network subnet mask: 255.255.255.0
  • Default Gateway: 192.168.0.1

Please note that unless your computer is connected directly to the Internet (this is rare), the IP address reported by ipconfig will be your local network IP, not your public external IP address.

While other network details can be retrieved by the ipconfig utility, for most network troubleshooting, this is what is typically needed.

What Windows command can show all network configurations for all the network interfaces?


ipconfig /all - Retrieve All TCP/IP Network Information

Another useful switch with ipconfig is to have it report all TCP/IP network details for all network adapters on a computer. This is accomplished by using the /all switch. This switch provides you with the same basic information as ipconfig described above, but with a lot more detail. To retrieve all network information about your computer, type the following in the command window then press Enter: ipconfig /all

This will show a detailed report of various network details for the computer. Again, your report will differ depending on your network setup and the network adapters installed on your computer. This report includes information such as:

  • Make and model of your network adapter(s)
  • Physical address (also known as the MAC address or hardware address) of your adapter(s)
  • Whether your IP address is leased (i.e., DHCP issued or statically assigned)
  • If IP address is leased, what the lease expiration and the DHCP that leased it
  • DNS servers

As you can see, ipconfig /all provides you with a plethora of details about your computer network setup.

What Windows command can show all network configurations for all the network interfaces?


ipconfig /release - Releases the IPv4 Address of All Network Adapters

The /release switch will cause ipconfig to go through the network adapters you have and drop the dynamically issued IPv4 address by sending a DHCPRELEASE message to the DHCP server. For the majority of the time, you would follow this command with ipconfig /renew (described below) will cause your network adapters to reach out to your DHCP server for an IP address (it can be a new IP address or the same IP you had prior to when you performed the /release command). For most, executing this command does not have adverse effect on your computer.

To release your IP address from your computer, type the following in the command window then press Enter: ipconfig /release

Note, if you have a statically assigned (manually assigned) IP address, this command will not release it. See example ipconfig /renew for related information.

What Windows command can show all network configurations for all the network interfaces?


ipconfig /release6 - Releases the IPv6 Address of All Network Adapters

The command is similar to ipconfig /release except it renews the IPv6 address on the adapters.



ipconfig /release <adapter> - Releases the IPv4 Address for a Specific Network Adapters

The /release <adapter> switch will cause ipconfig to drop the dynamically issued IPv4 address by sending a DHCPRELEASE message to the DHCP server for a specific network adapter.

To release the IP address for a specific network adapter on your computer named "Local Area Connection 3", type the following in the command window then press Enter: ipconfig /release "Local Area Connection 3"

Note, if you have a statically assigned (manually assigned) IP address, this command will not release it. See example for ipconfig /renew for related information.

What Windows command can show all network configurations for all the network interfaces?


ipconfig /renew - Get a New IPv4 Address for All Network Adapters

The ipconfig /renew will cause your computer to reach out to your DHCP server for an IPv4 address if it doesn't already have one or renews an existing one for all network adapters. Depending on how your DHCP server is configured or the pool of available addresses, the IP address you will receive can be one you had previously or it can be a new IP address. Once you execute this command, it will typically take just seconds for a DHCP to assign your computer with an IP address. In the illustration below, the IP address assigned to this computer is 192.168.226.132.

To renew the IP address of your computer, type the following in the command window then press Enter: ipconfig /renew

See example for ipconfig /release for related information.

What Windows command can show all network configurations for all the network interfaces?


ipconfig /renew6 - Get a New IPv6 Address for All Network Adapters

The command is similar to ipconfig /renew except it renews the IPv6 address on the adapters.


ipconfig /renew <adapter> - Get a New IPv4 Address For a Specific Network Adapter

The ipconfig /renew <adapter> will cause your computer to reach out to your DHCP server for an IPv4 address if it doesn't already have one or renews an existing one for a specific network adapter. Depending on how your DHCP server is configured or the pool of available addresses, the IP address you will receive can be one you had previously or it can be a new IP address. Once you execute this command, it will typically take just seconds for a DHCP to assign your computer with an IP address. In the illustration below, the IP address assigned to the network adapter named "Local Area Connection 3" is 192.168.226.132.

To renew the IP address for a network adapter on your computer named "Local Area Connection 3", type the following in the command window then press Enter: ipconfig /renew "Local Area Connection 3". To find out the name(s) of the network adapters on your computer, type the following in the command window then press Enter: ipconfig

See example for ipconfig /release for related information.

What Windows command can show all network configurations for all the network interfaces?


ipconfig /all | findstr /v 00-00-00 | findstr Physical - Display MAC Address of Only Physical Connected Network Adapters

The ipconfig utility, with the /all switch, is often used to find the MAC address (the 6-byte 'burned-in' physical/hardware address) of network adapters. While this does the job, the output shows a plethora of information as mentioned above. If you have multiple adapters, the output can be lengthy making it cumbersome to find what you are looking for.

The Windows findstr utility is used to search for patterns of text. By feeding the output of ipconfig /all into findstr, we can significantly reduce the clutter and have the output show only the MAC address of physical network adapters. To accomplish this, type the following in the command window then press Enter:

ipconfig /all | findstr /v 00-00-00 | findstr Physical

This command is actually a series of three commands, namely:

  1. ipconfig /all
  2. findstr /v 00-00-00
  3. findstr Physical

The vertical bar (|), more commonly referred to as the pipe, is a 'command' that takes the output from the left side of the pipe and feeds it as input to the command on the right, bypassing the computer screen.

As the above command shows, the output of ipconfig /all is funneled into the command findstr /v 00-00-00 as its input. The findstr with the /v switch will look for lines of text in the output of ipconfig /all that does not contain 00-00-00. What this does is exclude any network adapters that are disabled or not connected. These network adapters will have MAC address that starts with 00-00-00.

The result from the first findstr will still contain a lot of information that we can further filter out, such as DHCP lease information. To further reduce clutter to ultimately end up with an output that lists only MAC address of physical adapters, we will need to funneled the output of the first findstr into a second findstr command. This second findster will filter out every line of text except those that has the word Physical.

This series of commands produce an output that is concise to show only the MAC address of connected network adapters. As the illustration below shows, this is a much more easier report to read as oppose to using just using ipconfig /all.

What Windows command can show all network configurations for all the network interfaces?


ipconfig /displaydns - View DNS Cache

When you visit a website using it's domain name (e.g., www.meridianoutpost.com), your computer will need to know the IP address for that website in order for it to find it the server hosting it on the Internet. The process of identifying the IP address is called DNS lookup (analogous to looking up a number in a phone book). Once your computer learns the associated IP address for the website you want to visit, it will cache it (store it) on your computer. The purpose of caching it is to improve performance by not having your computer perform a DNS lookup each time you access a web page on the website.

This command will list all the currently cached IP addresses on your computer (also referred to as the DNS resolver cache). If you've accessed a lot of websites since turning on your computer, this list can be very lengthy. The illustration below shows just a few entries out of many for a particular computer. If you just turned on our computer and have not access websites or servers on the network on the Internet, then you list will only show a "localhost" setting in your local hosts file.

To display cached DNS entries on your computer, type the following in the command window then press Enter: ipconfig /displaydns

This command is typically used to troubleshoot specific DNS lookup issues. See example for ipconfig /flushdns for related information.

What Windows command can show all network configurations for all the network interfaces?

The information displayed on the list include:

  • Record Name: the name of the website or server that a DNS lookup was performed on
  • Record Type:
    • 1 = A
    • 2 = NS (indicates the entry is a name server)
    • 5 = CNAME (stands for canonical name and is a type of record that maps an alias name to a true domain name)
    • 15 = MX (indicates the entry is an email server)
  • Time to Live: the time (in seconds) before this cache entry expires (can be as short as a few minutes to a few days)
  • Data Length: the length (in bytes)
    • 8 Bytes = IPv4 address
    • 16 Bytes = IPv6 address

ipconfig /flushdns - Purge DNS Cache

This command will purge the cached DNS entries on your computer. You would typically do this to troubleshoot DNS related problems. An example of this is when you try to access a website but you encounter an error message stating the website is not found. For most people, executing this command does not have adverse effect on your computer. See example for ipconfig /displaydns for related information.

To delete all the cached DNS entries on your computer, type the following in the command window then press Enter: ipconfig /flushdns

What Windows command can show all network configurations for all the network interfaces?



Other Usages and Getting Help

The example usage described in the article shows only some of the functions available with ipconfig. To get a list of the available switches, type the following in the command window then press Enter: ipconfig /?

What Windows command can show all network configurations for all the network interfaces?


Tips

Redirect Output to Text File

  • Instead of displaying the results on the screen, you can have the results saved automatically to a text file on your computer. To do this, simply use the ">" symbol followed by the folder path and file name of your choice. For example, to redirect the output of ipconfig /renew, type the following in the command window then press Enter: ipconfig /renew > c:\temp\ipconfig-results.txt

    This will create a file named ipconfig-results.txt in the folder path c:\temp that will have your result. You can then open this file with any text editor, such as Notepad on a Windows computer, as illustrated below.

    What Windows command can show all network configurations for all the network interfaces?



Improve confidence and job performance


Improve productivity and efficiency


Learn more,
earn more


Life-long
investment

To learn more about this topic, we are providing you with recommendations to help you further your knowledge. These are our affiliate links to Amazon where you can purchase them and also explore a variety of other relevant books.


Summary

The ipconfig utility can provide a wealth of information for troubleshooting network issues. This utility is a valuable resource for computers that obtains an IP address automatically. If you are helpdesk technician, network administrator, or system administrator, this is a great utlity to become familiar with.


What command shows network configuration for all network interfaces?

Description. You can use the ifconfig command to assign an address to a network interface and to configure or display the current network interface configuration information. The ifconfig command must be used at system startup to define the network address of each interface present on a system.

What Windows command shows network interface information?

At the command prompt, type ipconfig, and then press ENTER. Note the following information: The IP address of the network adapter that you want to check. The IP address of your default gateway.

Which command allows to view all network connections?

To display all active connections:.
Open a command prompt..
Type netstat -a..
Press Enter..
Observe active TCP and UDP connections and listening ports, the local address and port number, the remote name or address and port number if a connection is established, and the connection status..

What command will show the network configuration of a computer?

The ipconfig command is used to display information about your network configuration and refresh DHCP and DNS Settings. By default, the ipconfig command displays your IP Address, Subnet Mask, and default gateway.

Cmd network commands Netsh command Set dns cmd IP config cmd

两个鬼故事清真面馆起名公益组织起什么名字好什么叫网络广告起名注意鲁邦三世vs名侦探柯南李姓起名大全个体市工商行政 起名娱乐门户外联部牛肉汤冲锋21粤语张姓牛年男宝宝起名织梦起航教育报名史上第一系统女孩起名晶晶的含义公司起名字打分免费测试高睿起名狐狸的夏天百度云资源教师年度考核个人总结1987年属兔起名冷少的契约囚奴属马的宝宝起名宜字工程公司经营范围生辰八字起名详细步骤平氏起名灵笼在线观看免费版吉林高起专报名台风的名字都是怎么起的2008年万年历起名郁的含义少年生前被连续抽血16次?多部门介入两大学生合买彩票中奖一人不认账让美丽中国“从细节出发”淀粉肠小王子日销售额涨超10倍高中生被打伤下体休学 邯郸通报单亲妈妈陷入热恋 14岁儿子报警何赛飞追着代拍打雅江山火三名扑火人员牺牲系谣言张家界的山上“长”满了韩国人?男孩8年未见母亲被告知被遗忘中国拥有亿元资产的家庭达13.3万户19岁小伙救下5人后溺亡 多方发声315晚会后胖东来又人满为患了张立群任西安交通大学校长“重生之我在北大当嫡校长”男子被猫抓伤后确诊“猫抓病”测试车高速逃费 小米:已补缴周杰伦一审败诉网易网友洛杉矶偶遇贾玲今日春分倪萍分享减重40斤方法七年后宇文玥被薅头发捞上岸许家印被限制高消费萧美琴窜访捷克 外交部回应联合利华开始重组专访95后高颜值猪保姆胖东来员工每周单休无小长假男子被流浪猫绊倒 投喂者赔24万小米汽车超级工厂正式揭幕黑马情侣提车了西双版纳热带植物园回应蜉蝣大爆发当地回应沈阳致3死车祸车主疑毒驾恒大被罚41.75亿到底怎么缴妈妈回应孩子在校撞护栏坠楼外国人感慨凌晨的中国很安全杨倩无缘巴黎奥运校方回应护栏损坏小学生课间坠楼房客欠租失踪 房东直发愁专家建议不必谈骨泥色变王树国卸任西安交大校长 师生送别手机成瘾是影响睡眠质量重要因素国产伟哥去年销售近13亿阿根廷将发行1万与2万面值的纸币兔狲“狲大娘”因病死亡遭遇山火的松茸之乡“开封王婆”爆火:促成四五十对奥巴马现身唐宁街 黑色着装引猜测考生莫言也上北大硕士复试名单了德国打算提及普京时仅用姓名天水麻辣烫把捣辣椒大爷累坏了

两个鬼故事 XML地图 TXT地图 虚拟主机 SEO 网站制作 网站优化