JSI Tip 10621. How can I display the IP configuration information for a specific interface?
Jerold Schulman
June 29, 2006
3 Min Read
When you use the IPCONFIG /ALL command, it displays the configuration information for all your interfaces, as in:
Windows IP Configuration Host Name . . . . . . . . . . . . : jsi001 Primary Dns Suffix . . . . . . . : JSIINC.COM Node Type . . . . . . . . . . . . : Unknown IP Routing Enabled. . . . . . . . : Yes WINS Proxy Enabled. . . . . . . . : No DNS Suffix Search List. . . . . . : JSIINC.COMEthernet adapter Internet: Connection-specific DNS Suffix . : Description . . . . . . . . . . . : 3Com EtherLink XL 10/100 PCI TX NIC (3C905B-TX) Physical Address. . . . . . . . . : 00-51-AD-67-1A-3E DHCP Enabled. . . . . . . . . . . : No IP Address. . . . . . . . . . . . : xxx.xxx.xxx.xxx Subnet Mask . . . . . . . . . . . : 255.255.255.248 Default Gateway . . . . . . . . . : yyy.yyy.yyy.yyy DNS Servers . . . . . . . . . . . : zzz.zzz.zzz.zzz aaa.aaa.aaa.aaa NetBIOS over Tcpip. . . . . . . . : DisabledEthernet adapter JSIINC: Connection-specific DNS Suffix . : Description . . . . . . . . . . . : 3Com EtherLink Server 10/100 PCI (3C980B-TX) Physical Address. . . . . . . . . : 00-51-AD-27-1E-813 DHCP Enabled. . . . . . . . . . . : No IP Address. . . . . . . . . . . . : 192.168.0.1 Subnet Mask . . . . . . . . . . . : 255.255.255.0 Default Gateway . . . . . . . . . : DNS Servers . . . . . . . . . . . : 192.168.0.1
When you use the netsh interface ip show config command, it shows configuration information for all your interfaces, like"
Configuration for interface "Internet" DHCP enabled: No IP Address: xxx.xxx.xxx.xxx SubnetMask: 255.255.255.248 Default Gateway: yyy.yyy.yyy.yyy GatewayMetric: 0 InterfaceMetric: 1 Statically Configured DNS Servers: zzz.zzz.zzz.zzz aaa.aaa.aaa.aaa Statically Configured WINS Servers: None Register with which suffix: NoneConfiguration for interface "JSIINC" DHCP enabled: No IP Address: 192.168.0.1 SubnetMask: 255.255.255.0 InterfaceMetric: 0 Statically Configured DNS Servers: 192.168.0.1 Statically Configured WINS Servers: None Register with which suffix: Primary only
If you wish to display IP configuration information for a specific interface, use:
netsh interface ip show config "Interface Name"
Example
Typing netsh interface ip show config "JSIINC" returns:
Configuration for interface "JSIINC" DHCP enabled: No IP Address: 192.168.0.1 SubnetMask: 255.255.255.0 InterfaceMetric: 0 Statically Configured DNS Servers: 192.168.0.1 Statically Configured WINS Servers: None Register with which suffix: Primary only
NOTE: How can I rename an interface (Local Area Connection) from the command-line?
NOTE: How do I retrieve an interface {GUID}?
NOTE: How can I locate the registry key for the TCPIP service parameters interface for my LAN?
About the Author
Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.
You May Also Like