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
netstat -b
show binaries
netstat -n
do not resolve names (only IP addresses)
netstat -r
view routing table
(where packets will go)
(linux, ,mac, windows)(like route print)
hostname
displays the name of the current host system
(FQDN and IP)
(on many OS)
route
allows you to make manual entries into the network routing tables.
(windows: route print)
telnet
remote login to devices (NOT SECURE, SSH is)
can check IP and Port:
ex: (telnet 192.12.28.110 443)
tcpdump
a packet analyzer that is launched from the command line
(linux, Mac, wimdows)
nmap
Network Mapper
network exploration, host discovery, and security auditing
scan port, OS, service
(LINUX)
show interface
displays statistics for the network interfaces
displays the status and configuration information for the ports within the switch
show config
displays all the configuration settings for the device that have been changed from the default settings
show route
used to display the IPv4 routing table of a router.