Which of the following commands adds a static IPv6 address to the network interface eth0?
A.
ip add addr 2001:db8::1337/64 dev eth0
B.
ip -6 add addr 2001:db8::1337/64 dev eth0
C.
ip addr add 2001:db8::1337/64 dev eth0
D.
ip -6 addr add new 2001:db8::1337/64 dev eth0
E.
ip addr add -6 2001:db8::1337/64 dev eth0
题解
「ip」指令可以显示或是管理路由、设备、路由政策和隧道协定。「addr」参数(子命令)可以用来设置 IP 地址。如果 IP 地址是 IPv6 的话,可使用「-6」参数,但也可以省略,但这个「-6」参数必须要放在子命令之前。
选项 D,没有「new」这样的参数。
选项 E,「-6」参数的位置错误。
因此答案是选项「C」。
