Bitzu

100-150 CCST ยท Media, wireless and endpoints

Network settings on Windows, Linux and macOS

Viewing and setting network configuration and testing connectivity with built-in utilities on Windows, Linux and macOS.

Key points

  • Windows: ipconfig /all shows the full configuration, ipconfig /renew and /flushdns refresh DHCP and DNS, ping tests reachability.
  • Linux: ip address shows addresses; ping runs until stopped unless -c is given. macOS: networksetup -getinfo <service> shows IP, mask and router.
  • On Windows ping sends 4 requests by default.

Source: https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/ipconfig

Practice questions

Single choice

Which Linux command shows the IP addresses assigned to interfaces?

  1. ipconfig /all
  2. ip address show
  3. netsh show ip
  4. networksetup -getinfo
Show answer

Answer: B. ip address show

ip address (often shortened to ip addr) lists interface addresses. ipconfig and netsh are Windows tools.

Select all that apply

Which of these are valid ipconfig options on Windows?

  1. /renew
  2. /flushdns
  3. /scan
  4. /displaydns
  5. /refreship
Show answer

Answer: A. /renew, B. /flushdns, D. /displaydns

/renew, /flushdns and /displaydns are documented options. /scan and /refreship do not exist.

True or false

The Linux ping command stops after four requests by default, just like Windows ping.

Show answer

Answer: False

False. Windows ping sends 4 requests by default, but Linux ping keeps sending until interrupted with Ctrl+C unless you limit it with -c.

Practice 8 questions on this topic in Bitzu

Short lessons, instant explanations and spaced review of what you get wrong. Free on iOS and Android.

Download on the App StoreGet it on Google Play

More 100-150 CCST topics in this module