LPIC-2 Exam 201 (Linux Engineer) — Question 4
Which of the following commands adds a static IPv6 address to the network interface eth0?
Answer options
- 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
Correct answer: D
Explanation
The correct answer is D because it correctly uses the command syntax to add a new IPv6 address to the interface eth0. The other options either use incorrect syntax or omit the necessary 'new' keyword, which is essential when adding an address.