cmds Flashcards
windows/unix/linux
arp -a
shows the mac address (Layer 2) for a known IP address (Layer 3)
WINDOWS TCP CONFIG
ipconfig
ipconfig/all
ipconfig/release
ipconfig/renew
Displays IP address configuration parameters on a Windows PC
Provides additional configuration information
Releases a DHCP IP address from the PC
Requests an IP address from DHCP server
ping
ping -n 10
ping -t
ping -6
Used to check IP connectivity between two devices, most often for network troubleshooting
Ping 10 times
Ping forever
Ping using IPv6 addresses
Windows
tracert
tracert 209.85.135.99
tracert www.diontraining.com
tracert -6 www.google.com
Displays the path between your device (the source) and the destination IP address, showing each route hop along the path
Displays the routers between your computer and the computer at 209.85.135.99
Displays the routers between your computer and the computer at www.google.com
Traces the route using IPv6
netstat(Network Statistics)SAME AS UNIX
netstat -a
netstat -b (windows)
netstat -n
netstat -r (only option for linux)
Displays information for IP-based connections on a PC including current sessions.
Displays all connections and listening ports betwen your machine and a local device
Shows binaries or executables being used in order to create network traffic
Displays statistics for without any fqdn just ip’s (IPv4 and IPv6, TCP, UDP, and ICMP)
IP routing table
WINDOWS AND LINUX
nslookup
nslookup www.diontraining.com
nslookup<enter></enter>
Resolves fqdn to an IP address
provides ip for given domain name
interactive mode for nslookup
WINDOWS
route print
route delete 192.168.1.1
route add 192.168.1.1 192.168.2.1
Used to change or display the PC’s current IP routing table
Displays the contents of the IP routing table
Deletes an entry from the IP routing table with IP 192.168.1.1
Adds a routing from 192.168.1.1 to 192.168.2.1
LINUX
ifconfig -a
ifconfig down
ifconfig up
Provides additional configuration information
Turn off the network adapter
Turn on the network adapter
(UNIX/LINUX/MAC)
traceroute
traceroute 209.85.135.99
traceroute www.diontraining.com
traceroute -6 www.google.com
Displays path between your device and destionation IP
Routers between your computer and the typed in IP
Displays routers between your computer and the typed domain name
Traces route using IPv6
(UNIX)
Dig(Name Server Lookup)
Dig -t mx google.com
Resolves a FQDN to an IP address and provides more info than nslookup
Looks up the mail records (mx) for google.com
LATEST LINUX
ip address
gives you local network adapter information
windows/linux/macos
hostname
View the FQDN of the computer youre on