COMMAND Flashcards
ping
primary TCP/IP command used to troubleshoot connectivity, reachability, and name resolution.
roundtrip time (ICMP)
ex:(ping IP address)
ipconfig
Internet Protocol configuration
- shows IP address, Subnet Mask, and Default gateway for all adapters
(TCP/IP)
ipconfig/all
shows the description of each network connection along with additional information such as your physical (MAC) address, DHCP connections, Lease times, as well as in-depth IPv6 information.
ifconfig
(ipconfig for linux)
displays the current configuration for a network interface when no optional parameters are supplied
ip
(Linux, Unix)
used to show or manipulate routing, devices, and tunnels
(better than ifconfig)
nslookup
DNS info; find a host’s IP address or domain name
(DNS)(CNAME)
(on Linux, windows)
dig
(LINUX)
DNS info
like nslookup, but better
tracert
(WINDOWS)
determine hops taken along route; traces every hop
(ex router) (ICMP TTL)
traceroute
tracert but for LINUX
arp
address resolution protocol
-determine MAC address based on IP
(need hardware)
arp -a / arp -g
view local table for particular IP
(can also use arp -g)
arp -d (then IP)
delete an entry from the ARP table for a particular interface.
arp -s (then IP, and MAC address)
add static entry in ARP table
netstat
displays the contents of various network-related data structures for ACTIVE connections
netstat -a
show ALL active ports