Command Line Tools Flashcards
ipconfig
Displays current TCP/IP
network configuration values
ipconfig /all
View additional configuration information, such as DNS servers and MAC addresses
ipconfig /renew
Renew IP address
-computers ip address not working properly and you want to obtain new address from DHCP server
ipconfig /release
Release current IP address
-computers ip address not working properly and you want to obtain new address from DHCP server
ipconfig/flushdns
Erase DNS cache
-problems connecting to websites
Ping
Tests whether another host is available over the network-check if another host is “alive”
Ex: ping 192.168.0.1
Ping 127.0.0.1
Test whether TCP/IP installed properly, even if not wired to the network
IPv4
Also use ping loopback or ping localhost adding -4
Ping ::1
Ping for IPv6
Also use ping loopback or ping localhost adding -6
ping -t
Pings host until command is stopped
Plug and unplug cables to see which cables or ports are live
Monitor a connection over time to check packet drops and connection slowing
ping -n
Pings a host a specific number of times
Good baseline tool, run every day against a router or server and compare results
Ping -n 20 192.168.0.1
ping -l
Pings the host, but you can specify the number of bytes per packet to be sent
Beneficial when testing how a server, router or other device reacts to larger packet sizes
ping -1 1500 192.168.0.1
ping -a
Resolves addresses to hostnames, see hostname associated with IP address
ping -4
Forces use of IPv4 and results in IPv4-based data
ping -4 loopback results in reply from 127.0.0.1
ping -6
Forces use of IPv6 and results in IPv6-based data
ping -6 loopback will result in a reply from ::1
tracert
Sends packets to destinations beyond the local computer’s network. Pings each router along the way between you and the final destination