The ipconfig
command is used to display and manage network configurations on a Windows machine.
-
List all network interfaces:
ipconfig
-
Display full configuration information:
ipconfig /all
-
Release the IPv4 address for the specified adapter:
ipconfig /release
-
Release the IPv6 address for the specified adapter:
ipconfig /release6
-
Renew the IPv4 address for the specified adapter:
ipconfig /renew
-
Renew the IPv6 address for the specified adapter:
ipconfig /renew6
-
Display the contents of the DNS Resolver Cache:
ipconfig /displaydns
-
Purge the DNS Resolver Cache:
ipconfig /flushdns
-
Refresh all DHCP leases and register DNS names:
ipconfig /registerdns
The ping
command is used to check communication or connectivity between computers.
-
Check communication or connectivity of a computer:
ping 192.168.1.6
-
Ping indefinitely: β³
ping 192.168.1.6 -t
-
Specify the number of echo requests to send:
ping -n 1 192.168.1.6
-
Adjust the size of the ping packet:
ping -n 1 -l 65500 192.168.1.6
The tracert
command traces the path or route to a specified remote host.
-
Trace the route to the specified IP: π¦
tracert 192.168.1.6
The pathping
command combines the features of ping and tracert, providing information on network latency and packet loss.
-
Trace network latency and packet loss: π‘
pathping 8.8.8.8
The arp
command is used to view and manage the ARP cache.
-
Display the ARP cache: ποΈ
arp -a
The nslookup
command allows users to look up DNS-related information.
-
Find the hostname associated with an IP address: π
nslookup 192.168.1.33
-
Find the IP address associated with a domain name: π
nslookup armour.com
The route
command is used to manipulate the IP routing table.
-
List the current routing table: π
route print
The netstat
command displays network statistics, connections, and routing tables.
-
Display active connections numerically: π’
netstat -n
-
Display all active connections and listening ports numerically:
netstat -an
-
Display all active connections with process IDs:
netstat -ano
-
Show TCP connections with process information:
netstat -anop tcp
-
Show UDP connections with process information:
netstat -anop udp
-
Display network connections with the associated executable:
netstat -nob
-
Show all active connections, listening ports, and associated executables:
netstat -anob