nerdexam
CompTIACompTIA

XK0-005 · Question #1487

XK0-005 Question #1487: Real Exam Question with Answer & Explanation

The correct answer is D: ip route add 10.0.213.5/32 via 10.0.5.1 dev eth0. The command ip route add 10.0.213.5/32 via 10.0.5.1 dev eth0 adds a static route to the routing table that sends packets destined for 10.0.213.5/32 (a single host) through the gateway 10.0.5.1 on the interface eth0. This is the correct way to achieve the goal. The other options a

System Management

Question

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?

Options

  • Aroute -i etho -p add 10.0.213.5 10.0.5.1
  • Broute modify eth0 +ipv4.routes "10.0.213.5/32 10.0.5.1"
  • Cecho "10.0.213.5 10.0.5.1 eth0" > /proc/net/route
  • Dip route add 10.0.213.5/32 via 10.0.5.1 dev eth0

Explanation

The command ip route add 10.0.213.5/32 via 10.0.5.1 dev eth0 adds a static route to the routing table that sends packets destined for 10.0.213.5/32 (a single host) through the gateway 10.0.5.1 on the interface eth0. This is the correct way to achieve the goal. The other options are incorrect because they either use the wrong syntax (route -i etho -p add), the wrong command (route modify), or the wrong file (/proc/net/route).

Topics

#Linux networking#Static routing#ip command#Network configuration

Community Discussion

No community discussion yet for this question.

Full XK0-005 PracticeBrowse All XK0-005 Questions