XK0-005 · Question #119
XK0-005 Question #119: Real Exam Question with Answer & Explanation
The correct answer is A: route del default gw 192.168.2.1 eth0; route add default gw 192.168.1.1 eth0. The current default gateway is incorrect: it's set to 192.168.2.1, which is not on the same subnet as the server's IP 192.169.1.50/24 (which itself is probably a typo and should be 192.168.1.50/24). The correct gateway for 192.168.1.50/24 is 192.168.1.1. route del default gw 192.
Question
A systems administrator is unable to reach other devices on the network and the Internet. The server is configured with the IP address 192.169.1.50/24 on eth0. The server's router is 192.168.1.1. The administrator reviews the output of route -n: Which of the following commands should the administrator run to correct the issue?
Options
- Aroute del default gw 192.168.2.1 eth0; route add default gw 192.168.1.1 eth0
- Broute add -net 192.168.10.0 netmask 255.255.255.0 gw 192.168.2.1 eth0
- Croute add 192.168.1.1 default 192.168.1.50 eth0
- Droute host gw 192.168.1.1 eth0
Explanation
The current default gateway is incorrect: it's set to 192.168.2.1, which is not on the same subnet as the server's IP 192.169.1.50/24 (which itself is probably a typo and should be 192.168.1.50/24). The correct gateway for 192.168.1.50/24 is 192.168.1.1. route del default gw 192.168.2.1 eth0: removes the wrong default route. route add default gw 192.168.1.1 eth0: adds the correct default route.
Topics
Community Discussion
No community discussion yet for this question.