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?
- route -p add 10.10.50.0 mask 255.255.255.0 192.168.1.254Answer
- Bnetsh interface ipv4 set address "Ethernet" static 10.10.50.0 255.255.255.0 192.168.1.254
- Cipconfig /setclassid "Ethernet" 10.10.50.0
- Dnetsh 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
Key Concept
Windows Client IP Routing Table Management using route command