System Management
A Linux server has enp0s8 configured as 192.168.50.10/24. Traffic for the 10.20.0.0/16 network must go through the router at 192.168.50.1. The default route must stay unchanged, and the route only needs to last until the next reboot. Which command meets these requirements?
Show the answer
Correct answerC. ip route add 10.20.0.0/16 via 192.168.50.1 dev enp0s8
A route to a destination prefix through a next-hop gateway uses ip route add <prefix> via <gateway> dev <interface>, and it is runtime-only. Adding a default route would send all unmatched traffic to that router, which breaks the requirement to leave the default route alone.