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?
- netsh interface ipv4 set address name="Ethernet0" static 10.12.4.50 255.255.255.0 10.12.4.1Answer
- Bnetsh interface ipv4 set address name="Ethernet0" dhcp 10.12.4.50 255.255.255.0 10.12.4.1
- Cipconfig /setaddress "Ethernet0" 10.12.4.50 255.255.255.0 10.12.4.1
- Dnetsh 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
Key Concept
Windows Network Shell (netsh) Interface Configuration