Courseiva
Advanced Networking ConfigurationmediumMultiple ChoiceObjective-mapped

LPIC-2 Advanced Networking Configuration Practice Question

A Linux server requires several VLAN interfaces on eth0. The network switch expects 802.1Q tagged frames for VLAN 10. Which command correctly creates the VLAN interface?

⚠ Common exam trap

Candidates often confuse IP aliasing (using `ifconfig` with a colon, like eth0:10) with VLAN tagging, but aliases do not add 802.1Q tags and are used for multiple IP addresses on the same VLAN, not for separate VLANs.

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 link add link eth0 name eth0.10 type vlan id 10

The `ip link` command with the `type vlan id 10` parameter creates a VLAN subinterface on eth0 that tags outgoing frames with VLAN 10 using the 802.1Q standard. This is the modern, recommended method for VLAN interface creation on Linux, replacing legacy tools like `vconfig`.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • modprobe 8021q; ifconfig eth0 up

    Why it's wrong here

    Loads the module but does not create the VLAN interface.

  • vconfig add eth0 10

    Why it's wrong here

    Older command, not preferred in modern LPIC-2, and may require additional steps.

  • ip link add link eth0 name eth0.10 type vlan id 10

    Why this is correct

    Standard iproute2 command to create VLAN interface.

  • ifconfig eth0:10 192.168.10.1/24 up

    Why it's wrong here

    Creates an alias, not a VLAN-tagged interface.

Visual reference

Switch VLAN 10 Sales (192.168.10.0/24) PC-A PC-B VLAN 20 HR (192.168.20.0/24) PC-C PC-D Router VLANs isolate traffic — inter-VLAN routing requires a Layer 3 device

About these practice questions

Courseiva writes every LPIC-2 question from scratch — 507 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

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.