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
Which Linux command shows the IP addresses assigned to interfaces?
- ipconfig /all
- ip address show
- netsh show ip
- 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.
Which of these are valid ipconfig options on Windows?
- /renew
- /flushdns
- /scan
- /displaydns
- /refreship
Show answer
Answer: A. /renew, B. /flushdns, D. /displaydns
/renew, /flushdns and /displaydns are documented options. /scan and /refreship do not exist.
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.
