Below, you'll find a list of the most common IP commands for Windows and DOS. These include ipconfig, trace route, netstat, arp, route, hostname, control netconnections, and other popular DOS and Windows IP commands.
Display Connection Configuration:
Displays the full TCP/IP configuration for all adapters. Without this parameter, ipconfig displays only the IP address, subnet mask, and default gateway values for each adapter. Adapters can represent physical interfaces, such as installed network adapters, or logical interfaces, such as dial-up connections.
C:\Documents and Settings\user>ipconfig /all
Windows IP Configuration
Host Name . . . . . . . . . . . . : host
Primary Dns Suffix . . . . . . . :
Node Type . . . . . . . . . . . . : Unknown
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No
Ethernet adapter Local Area Connection:
Connection-specific DNS Suffix . : user.local
Description . . . . . . . . . . . : AMD PCNET Family PCI Ethernet Adapter
Physical Address. . . . . . . . . : 08-00-27-0F-79-00
Dhcp Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
IP Address. . . . . . . . . . . . : 10.0.2.15
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 10.0.2.2
DHCP Server . . . . . . . . . . . : 10.0.2.2
DNS Servers . . . . . . . . . . . : 192.168.1.1
Lease Obtained. . . . . . . . . . :
Lease Expires . . . . . . . . . . : |
Display DNS Cache Info:
Displays the contents of the DNS client resolver cache, which includes both entries preloaded from the local Hosts file and any recently obtained resource records for name queries resolved by the computer. The DNS Client service uses this information to resolve frequently queried names quickly, before querying its configured DNS servers.
C:\Documents and Settings\user>ipconfig /displaydns
Windows IP Configuration
1.0.0.127.in-addr.arpa
----------------------------------------
Record Name . . . . . : 1.0.0.127.in-addr.arpa.
Record Type . . . . . : 12
Time To Live . . . . : 525995
Data Length . . . . . : 4
Section . . . . . . . : Answer
PTR Record . . . . . : localhost
www.msn.com
----------------------------------------
Record Name . . . . . : www.msn.com
Record Type . . . . . : 5
Time To Live . . . . : 296
Data Length . . . . . : 4
Section . . . . . . . : Answer
CNAME Record . . . . : us.co1.cb3.glbdns.microsoft.com
|
Clear DNS Cache:
Flushes and resets the contents of the DNS client resolver cache. During DNS troubleshooting, you can use this procedure to discard negative cache entries from the cache, as well as any other entries that have been added dynamically.
C:\Documents and Settings\user>ipconfig /flushdns
Windows IP Configuration
Successfully flushed the DNS Resolver Cache.
|
Release All IP Address Connections:
Sends a DHCPRELEASE message to the DHCP server to release the current DHCP configuration and discard the IP address configuration for either all adapters (if an adapter is not specified) or for a specific adapter if the Adapter parameter is included. This parameter disables TCP/IP for adapters configured to obtain an IP address automatically. To specify an adapter name, type the adapter name that appears when you use ipconfig without parameters.
Renew All IP Address Connections:
Renews DHCP configuration for all adapters (if an adapter is not specified) or for a specific adapter if the Adapter parameter is included. This parameter is available only on computers with adapters that are configured to obtain an IP address automatically. To specify an adapter name, type the adapter name that appears when you use ipconfig without parameters.
Re-Register the DNS connections:
Initiates manual dynamic registration for the DNS names and IP addresses that are configured at a computer. You can use this parameter to troubleshoot a failed DNS name registration or resolve a dynamic update problem between a client and the DNS server without rebooting the client computer. The DNS settings in the advanced properties of the TCP/IP protocol determine which names are registered in DNS.
C:\Documents and Settings\user>ipconfig /registerdns
Windows IP Configuration
Registration of the DNS resource records for all adapters of this computer has b
een initiated. Any errors will be reported in the Event Viewer in 15 minutes..
|
Change/Modify DHCP Class ID:
Configures the DHCP class ID for a specified adapter. To set the DHCP class ID for all adapters, use the asterisk (*) wildcard character in place of Adapter. This parameter is available only on computers with adapters that are configured to obtain an IP address automatically. If a DHCP class ID is not specified, the current class ID is removed.
Network Connections:
Opens the control panel.
Network Setup Wizard:
Test Connectivity:
Verifies IP-level connectivity to another TCP/IP computer by sending Internet Control Message Protocol (ICMP) Echo Request messages. The receipt of corresponding Echo Reply messages are displayed, along with round-trip times. Ping is the primary TCP/IP command used to troubleshoot connectivity, reachability, and name resolution.
C:\Documents and Settings\user>ping google.com
Pinging google.com [74.125.224.64] with 32 bytes of data:
Reply from 74.125.224.64: bytes=32 time=16ms TTL=127
Reply from 74.125.224.64: bytes=32 time=20ms TTL=127
Reply from 74.125.224.64: bytes=32 time=18ms TTL=127
Reply from 74.125.224.64: bytes=32 time=16ms TTL=127
Ping statistics for 74.125.224.64:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 16ms, Maximum = 20ms, Average = 17ms
|
Trace Route:
Determines the path taken to a destination by sending Internet Control Message Protocol (ICMP) Echo Request or ICMPv6 messages to the destination with incrementally increasing Time to Live (TTL) field values. The path displayed is the list of near/side router interfaces of the routers in the path between a source host and a destination. The near/side interface is the interface of the router that is closest to the sending host in the path.
C:\Documents and Settings\user>tracert -d google.com
Tracing route to google.com [74.125.224.64]
over a maximum of 30 hops:
1 <1 ms <1 ms <1 ms 10.0.2.2
2 1 ms 1 ms 1 ms 192.168.1.1
3 38 ms 31 ms 29 ms 1.2.3.4
4 11 ms 9 ms 11 ms 1.2.3.5
5 25 ms 23 ms 37 ms 1.2.3.6
6 16 ms 23 ms 24 ms 1.2.3.7
7 18 ms 39 ms 16 ms 1.2.3.8
8 14 ms 17 ms 16 ms 1.2.3.9
9 14 ms 16 ms 17 ms 1.2.3.10
10 20 ms 18 ms 18 ms 1.2.3.11
11 20 ms 17 ms 16 ms 1.2.3.12
12 16 ms 19 ms 16 ms 74.125.224.64
Trace complete.
|
Display the TCP/IP protocol sessions:
Displays active TCP connections, ports on which the computer is listening, Ethernet statistics, the IP routing table, IPv4 statistics (for the IP, ICMP, TCP, and UDP protocols), and IPv6 statistics (for the IPv6, ICMPv6, TCP over IPv6, and UDP over IPv6 protocols).
Display Local Route:
Displays and modifies the entries in the local IP routing table.
Display Resolved MAC Addresses:
Displays and modifies entries in the Address Resolution Protocol (ARP) cache, which contains one or more tables that are used to store IP addresses and their resolved Ethernet or Token Ring physical addresses. There is a separate table for each Ethernet or Token Ring network adapter installed on your computer.
C:\Documents and Settings\user>arp -a
Interface: 10.0.2.15 --- 0x10004
Internet Address Physical Address Type
10.0.2.2 52-54-00-12-35-00 dynamic
|
Display Name of Computer Currently on:
Displays the host name portion of the full computer name of the computer.
NameServer Lookup:
Displays information that you can use to diagnose Domain Name System (DNS) infrastructure. Before using this tool, you should be familiar with how DNS works. The Nslookup command-line tool is available only if you have installed the TCP/IP protocol.
C:\Documents and Settings\user>nslookup google.com
*** Default servers are not available
Server: UnKnown
Address: 192.168.1.1
Non-authoritative answer:
Name: google.com
Addresses: 74.125.224.103, 74.125.224.98, 74.125.224.105, 74.125.224.104
74.125.224.97, 74.125.224.101, 74.125.224.102, 74.125.224.96, 74.125.2
24.110
74.125.224.99, 74.125.224.100
|