hardMultiple Choice
220-1202 Practice Question: Configure a Windows 10 computer to use a static…
A technician needs to configure a Windows 10 computer to use a static IP address of 192.168.1.100 with subnet mask 255.255.255.0 and default gateway 192.168.1.1. Which command-line tool and syntax should be used?
⚠ Common exam trap
Candidates may confuse `ipconfig` (a display-only tool) with a configuration tool, or assume `netstat` or `ping` can set IP addresses, when only `netsh` provides the correct static IP assignment syntax. Also watch the interface name: on Windows 10 it is typically "Ethernet", not the legacy "Local Area Connection".
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
netsh interface ip set address "Ethernet" static 192.168.1.100 255.255.255.0 192.168.1.1 1
The `netsh interface ip set address` command is the correct Windows command-line tool to configure a static IP address, subnet mask, and default gateway. The syntax is `netsh interface ip set address "<interface name>" static <IP> <subnet mask> <gateway> <metric>`. On Windows 10 the default wired adapter is usually named "Ethernet" (not the legacy "Local Area Connection"), so the interface name must match the actual adapter, which can be confirmed with `netsh interface show interface`. The metric value (1) is optional and sets the interface metric.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
netsh interface ip set address "Ethernet" static 192.168.1.100 255.255.255.0 192.168.1.1 1
Why this is correct
netsh sets the address statically through the interface's IP configuration, and the trailing 1 specifies the default gateway metric. The quoted interface name, static address, subnet mask and gateway must appear in that order for the command to apply correctly.
- ✗
ipconfig /setaddress 192.168.1.100
Why it's wrong here
ipconfig does not have a /setaddress switch.
- ✗
netstat -r
Why it's wrong here
Displays the routing table, does not set IP.
- ✗
ping 192.168.1.1
Why it's wrong here
Tests connectivity, does not configure IP.
Visual reference
Go deeper
Related to this question
About these practice questions
One of 687 original 220-1202 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This 220-1202 practice question is part of Courseiva's free CompTIA certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the 220-1202 exam.