Question

Difficulty: HardWindows Client Networking Configuration

A desktop support technician is configuring a newly deployed Windows 11 workstation that must connect to an isolated industrial subnet without a DHCP server. The technician opens an elevated Command Prompt and needs to assign a static IPv4 address of 10.12.4.50, a subnet mask of 255.255.255.0, and a default gateway of 10.12.4.1 to the network interface named "Ethernet0". Which command will successfully apply these network settings?

  1. netsh interface ipv4 set address name="Ethernet0" static 10.12.4.50 255.255.255.0 10.12.4.1Answer
  2. B
    netsh interface ipv4 set address name="Ethernet0" dhcp 10.12.4.50 255.255.255.0 10.12.4.1
  3. C
    ipconfig /setaddress "Ethernet0" 10.12.4.50 255.255.255.0 10.12.4.1
  4. D
    netsh interface ip config "Ethernet0" ip=10.12.4.50 mask=255.255.255.0 gateway=10.12.4.1

Answer

The command `netsh interface ipv4 set address name="Ethernet0" static 10.12.4.50 255.255.255.0 10.12.4.1` correctly configures the static IP, subnet mask, and default gateway on Windows.
The command starting with `netsh interface ipv4 set address name="Ethernet0" static` provides the exact syntax required by the Windows Network Shell to assign a static IP address, subnet mask, and default gateway to a specific network adapter.

Step-by-Step Solution

1
Identify the CLI utility designed for modifying Windows network adapter properties.
Recognize that `netsh` (Network Shell) is the command-line administrative tool for changing TCP/IP configuration parameters.
`ipconfig` is a query and DHCP management tool and cannot set static IP parameters.
2
Determine the proper syntax structure for assigning a static IPv4 address in netsh.
The correct command syntax is `netsh interface ipv4 set address name="<Interface_Name>" static <IP_Address> <Subnet_Mask> <Gateway_Address>`.
This sequence explicitly specifies the target interface name, sets the assignment type to static, and provides the three mandatory positional parameters in order.

Key Concept

Windows Network Shell (netsh) Interface Configuration
Rate this question