LPIC-2 Advanced Networking Configuration Practice Question
Which of the following commands creates a new network namespace named 'test'?
⚠ Common exam trap
Candidates often confuse the 'ip netns' subcommands, incorrectly using 'create' instead of 'add', or omitting the 'ip' prefix, because they are misled by the generic verb 'create' or the phrase 'network namespace' from other contexts like Docker or systemd-nspawn.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
ip netns add test
The correct command to create a new network namespace named 'test' is 'ip netns add test'. The 'ip netns' command is part of the iproute2 suite and is the standard tool for managing network namespaces in Linux. The 'add' subcommand creates a new namespace by binding it to a mount point under /var/run/netns/.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
netns add test
Why it's wrong here
The full command is 'ip netns add'.
- ✗
network namespace add test
Why it's wrong here
No such command exists.
- ✓
ip netns add test
Why this is correct
This is the correct syntax to create a new network namespace.
- ✗
ip netns create test
Why it's wrong here
The verb is 'add', not 'create'.
Go deeper
Related to this question
About these practice questions
This LPIC-2 question is part of Courseiva's 507-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This LPIC-2 practice question is part of Courseiva's free LPI certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the LPIC-2 exam.