Lpic 1 Linux Administrator · Free Practice Question Medium
Question 5
- A ip -6 route add 1668:ae5:1::/64 via 1668:ae5:1::5
- B route -6 add 1668:ae5:1::/64 gw 1668:ae5:1::5
- C ip route add 1668:ae5:1::/64 gw 1668:ae5:1::5
- D route add net 1668:ae5:1::/64 gw 1668:ae5:1::5
Reveal correct answer
Correct answer: A
A. The correct command to add a route for IPv6 packets is "ip -6 route add [destination network]/[prefix length] via [gateway]". In this case, the destination network is 1668:ae5:1::/64 and the gateway is 1668:ae5:1::5, so the correct command is "ip -6 route add 1668:ae5:1::/64 via 1668:ae5:1::5".
B. The command "route -6 add [destination network] gw [gateway]" is not the correct syntax for adding an IPv6 route. The correct syntax for adding an IPv6 route using the "ip" command is "ip -6 route add [destination network]/[prefix length] via [gateway]".
C. The command "ip route add [destination network] gw [gateway]" is not the correct syntax for adding an IPv6 route. The correct syntax for adding an IPv6 route using the "ip" command is "ip -6 route add [destination network]/[prefix length] via [gateway]".
D. The command "route add net [destination network] gw [gateway]" is not the correct syntax for adding an IPv6 route. The correct syntax for adding an IPv6 route using the "ip" command is "ip -6 route add [destination network]/[prefix length] via [gateway]".
Discussion
Think the marked answer is wrong, or have a better explanation? Share it below — comments appear after review.
