Ch. 4.4 Flashcards
What command-line tools report a host’s IP configuration?
Windows vs Linux
ipconfig (win)
ifconfig(linux)
What tool verifies if a host can contact another host?
ping
What does ipconfig do? (3)
Displays IP Address, Subnet Mask, and Gateway for all network interfaces
What does ipconfig /all do?
(Network ID, Subnet Mask, Default Gateway)
(DHCP, DNS, MAC address, TCP/IP)
What does ipconfig /renew interface do?
Forces DHCP client to renew IP lease
What does ipconfig /release interface do?
Releases IP address from DHCP so interfaces don’t have an IP address?
What does ipconfig /displaydns do?
Shows DNS cache
What does ipconfig /flushdns do?
Clears DNS cache
What is ifconfig?
Legacy Linux command to check network configuration
What is ip command?
Updated Linux command of ifconfig
What does ip addr do?
Shows current address configuration on Linux
What does ip addr show dev eth0 do?
Reports single interface on Linux
What does ip link do?
Status of interfaces on Linux
What does ip -s link do?
Shows interface statistics on Linux
What does ip link set eth0 up|down do?
Enables/disables an interface on Linux
What does ip addr add|delete do?
Modify IP address configuration on Linux
What is ifconfig?
Is it still in use?
What does it do?
Linux legacy net-tools package
No, it’s deprecated
Reports network interface configuration.
What is net-tools?
What’s an alternative to net-tools?
Linux network utility package.
iproute2 package
Interfaces modern manager packages
How do you get report on a single interface only?
ip addr show dev eth0
What is ARP?
What is it used for?
Address Resolution Protocol
Used by hosts to determine MAC address with IP address
Are ARP queries sent as unicasts or broadcasts?
Broadcasts
How do you make ARP broadcasts efficient?
Cache results of ARP broadcast to an ARP table
What doe the ARP command do?
Functions related to ARP table cache
What does “arp -a” do?
Shows ARP cache contents
What does “arp -s [MAC Address]” do?
Adds entry to ARP cache
What does “arp -d*” do?
Deletes all ARP cache.
What does “ip neigh” do?
Linux command
Shows entries in ARP cache
What does ICMP stand for?
What is it used for?
What typically makes them?
Internet Control Message Protocol
Reports errors/messages about the delivery of a packet.
Unicast.
What is the “ping” command for?
Basic connectivity test
What does “Destination Host Unreachable” error mean for pings?
PC doesn’t know how to get to that IP address
What does “No Reply (Request Timed Out.)” mean for pings?
Host is unavailable
OR
Cannot route a reply back to you
How do you set the number of packets to ping?
-c switch
What does ipconfig /registerdns do?
Registers the host with a DNS server
What does -4 or -6 do for ping commands?
Force IPv4 or IPv6 versions of the ping