exam questions

Exam XK0-005 All Questions

View all questions & answers for the XK0-005 exam

Exam XK0-005 topic 1 question 5 discussion

Actual exam question from CompTIA's XK0-005
Question #: 5
Topic #: 1
[All XK0-005 Questions]

Developers have requested implementation of a persistent, static route on the application server. Packets sent over the interface eth0 to 10.0.213.5/32 should be routed via 10.0.5.1. Which of the following commands should the administrator run to achieve this goal?

  • A. route -i etho -p add 10.0.213.5 10.0.5.1
  • B. route modify eth0 +ipv4.routes "10.0.213.5/32 10.0.5.1"
  • C. echo "10.0.213.5 10.0.5.1 eth0" > /proc/net/route
  • D. ip route add 10.0.213.5/32 via 10.0.5.1 dev eth0
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
linux_admin
Highly Voted 1 year, 2 months ago
D. ip route add 10.0.213.5/32 via 10.0.5.1 dev eth0 The administrator should run the following command to implement the persistent, static route: "ip route add 10.0.213.5/32 via 10.0.5.1 dev eth0" This command adds a static route to the routing table, which specifies that packets sent over the interface "eth0" to the destination address "10.0.213.5/32" should be routed via the gateway "10.0.5.1". The "ip" command is used to manage the Linux IP routing table, and the "route add" option is used to add a new route. The "dev" option specifies the interface over which the packets should be sent. To make the route persistent across reboots, the administrator can add the same command to the appropriate configuration file (e.g., /etc/rc.local).
upvoted 7 times
...
Alizadeh
Most Recent 8 months, 3 weeks ago
Selected Answer: D
The correct answer is D. ip route add 10.0.213.5/32 via 10.0.5.1 dev eth0.
upvoted 1 times
...
TheRealManish
1 year, 6 months ago
D seems to be correct. I tested it locally and it worked.
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago