Diagnose a configuration from four commands and write down what each proved
Task
Run the five diagnostic network commands on a machine, record what each one returned, and state what each result eliminated. The exercise is the reasoning rather than the typing: the value of ipconfig /all is that four of its values each rule out a different fault.
Steps
- Run the address command for your platform and write
lab/cli/config.csvwith headervalue,what_it_is,what_it_rules_outcovering address, mask, gateway, DNS servers and DHCP server. - Ping the gateway, then an address on the internet, then a name. Record all three in
lab/cli/chain.csvwith headertarget,result,layer_proved. - Run the name resolution command against a name and record which server answered in
lab/cli/dns.txt. - Run the connections command and write
lab/cli/listening.csvwith headerport,state,process,expectedlisting at least five listening ports on the machine, marking whether you expected each one. - Write
lab/cli/elevation.mdnaming three commands that need administrative rights, and describing what the file system virtualisation trap does to a write that is not elevated.
Verify
awk -F, 'NR>1 && NF>=3 {n++} END {print n" value(s) explained"}' lab/cli/config.csv
awk -F, 'NR>1 && NF>=3 {n++} END {print n" test(s) in the chain"}' lab/cli/chain.csv
grep -c . lab/cli/dns.txt
awk -F, 'NR>1 && NF>=4 {n++} END {print n" listening port(s)"}' lab/cli/listening.csv
awk -F, 'NR>1 && $4 ~ /no/ {n++} END {print n" unexpected port(s)"}' lab/cli/listening.csv
grep -Eic 'administrator|elevat|virtualis|virtualiz' lab/cli/elevation.md
Five configuration values each with a fault it rules out, three chain tests, and five listening ports assessed. An unexpected port is a finding worth following up rather than a mistake in the lab.
Notes
The what_it_rules_out column is the whole exercise. An address beginning 169.254 rules out a working DHCP server and rules IN a functioning adapter and stack, and being able to say both halves is what distinguishes reading output from understanding it.
This is an independent study companion for CompTIA A+ Core 2 220-1202 and is not produced by or endorsed by CompTIA.