5.5 Command Line Tools Flashcards
What does Ping do?
Tells us if device is on the network.
What Protocol does Ping use
ICMP
How to stop a process in cmd
Control C
Traceroute
Determines the Route between my device and the destination and maps entire path.
What is the traceroute command in windows
tracert
Does traceroute use ICMP?
Yes
Which aspect of ICMP does traceroute use?
TTL Exceeded error message
What does the time in TTL refer to?
Hops not seconds or minutes
What does TTL=1 and TTL=2 refer to
router 1 and router 2
Not all devices reply with ICMP Time Exceeded messages why?
Firewall or ICMP is low priority for many devices
how do you know if your tracert is being filtered
asterisks
how does it work?
requet is send, once it reaches the first router TTL is one so it sends back 1 and the IP address. Then the request is 2 so it sends it to the second router then back to home router. keeps going like that until final router is found.
what does nslookup do
Query’s a DNS server to obtain domain name or IP address
nslookup still used?
No. use dig. Not windows native.
What is nslookup used for
to look up IP address assoicated with domain name and vice versa
Acromin for DIG
Domain Info Grouper
what does dig do
provides detailed info about DNS records and is commonly used for troubleshooting DNS issues
TCPDUMP
CMD packet analyzer, allows you to capture packets from CMD line
netstat
network statists - shows all active connections.
netstat -b
command is used to display the list of executable files involved in creating each connection or listening port on your system.
how to show more advanced IP info
ipconfig
ARP
determine MAC address based on an IP address.
what does ARP -a do
shows ip and mac address on local subnet.
Why use dig
to find DNS IP and associated DNS records.