
374
Using the ipconfig Command
Displaying detailed configuration information
You can display detailed IP configuration information by using an /all
switch with the ipconfig command, like this:
C:\>ipconfig /all
Windows IP Configuration
Host Name . . . . . . . . . . . . : WK07-001
Primary Dns Suffix . . . . . . . :
Node Type . . . . . . . . . . . . : Hybrid
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No
Ethernet adapter Local Area Connection:
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Intel(R) PRO/100 VE Network Connection
Physical Address. . . . . . . . . : 00-12-3F-A7-17-BA
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes
Link-local IPv6 Address . . . . . : fe80::cca:9067:9427:a911%8(Preferred)
IPv4 Address. . . . . . . . . . . : 192.168.1.110(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.1.1
DNS Servers . . . . . . . . . . . : 192.168.1.10
68.87.76.178
NetBIOS over Tcpip. . . . . . . . : Enabled
C:\>
You can determine a lot of information about the computer from the
ipconfig /all command. For example:
✦ The computer’s host name is WK07-001.
✦ The computer’s IPv4 address is 192.168.1.110, and the subnet mask
is 255.255.255.0.
✦ The default gateway is a router located at 192.168.1.1.
✦ This router is also the network’s DHCP server.
✦ The DNS servers are at 192.168.1.10 and 68.87.76.178.
Renewing an IP lease
If you’re having an IP configuration problem, you can often solve it by
renewing the computer’s IP lease. To do that, use a /renew switch, like this:
C:\>ipconfig /renew
Windows IP Configuration
Ethernet adapter Local Area Connection:
Connection-specific DNS Suffix . :
IP Address. . . . . . . . . . . . : 192.168.1.110
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.1.1
C:\>
35_625873-bk04ch06.indd 37435_625873-bk04ch06.indd 374 9/21/10 10:31 PM9/21/10 10:31 PM