Question

Difficulty: Very hardWindows Client Networking Configuration

A Windows 11 workstation on a corporate local area network requires persistent routing to access a database server located on subnet 10.10.50.0/24 via a secondary router at 192.168.1.254. The client computer's primary network adapter is currently assigned a static IPv4 address of 192.168.1.50/24 and uses 192.168.1.1 as its default gateway for internet access. Which of the following commands should a technician execute in an elevated Command Prompt to ensure traffic destined for 10.10.50.0/24 is routed through 192.168.1.254 permanently across system reboots?

  1. route -p add 10.10.50.0 mask 255.255.255.0 192.168.1.254Answer
  2. B
    netsh interface ipv4 set address "Ethernet" static 10.10.50.0 255.255.255.0 192.168.1.254
  3. C
    ipconfig /setclassid "Ethernet" 10.10.50.0
  4. D
    netsh interface ipv4 set dnsservers "Ethernet" static 192.168.1.254 validate=no

Answer

Execute the command `route -p add 10.10.50.0 mask 255.255.255.0 192.168.1.254` in an elevated Command Prompt.
Executing `route -p add 10.10.50.0 mask 255.255.255.0 192.168.1.254` adds a persistent entry to the Windows client IPv4 routing table. The `-p` switch writes the entry into the system registry so that it survives system restarts, directing all traffic for 10.10.50.0/24 to the secondary gateway at 192.168.1.254 while keeping 192.168.1.1 as the default gateway for internet access.

Step-by-Step Solution

1
Analyze the network requirement.
The client needs to send packets destined for the 10.10.50.0/24 network through gateway 192.168.1.254 while leaving general internet traffic directed to default gateway 192.168.1.1.
By default, packets destined for non-local subnets are forwarded to the default gateway unless a specific static route exists in the routing table.
2
Determine the correct command-line syntax for static routing in Windows.
The standard command syntax is `route add [destination_network] mask [subnet_mask] [gateway_ip]`.
This syntax creates a specific network route entry in the IPv4 routing table.
3
Apply the persistence requirement.
Include the `-p` switch immediately after `route` (`route -p add ...`).
Without the `-p` switch, manually added routes exist only in volatile memory and are cleared when the computer restarts.

Key Concept

Windows Client IP Routing Table Management using route command
Rate this question