Huawei Certified ICT Associate – Data Center Network (HCIA-DCN) — Question 105

How many VLANs are created when using the commands "vlan batch 10 20" and "vlan batch 10 to 20"?

Answer options

Correct answer: C

Explanation

The command "vlan batch 10 20" creates VLANs 10 through 20, resulting in 11 VLANs. The command "vlan batch 10 to 20" also specifies the same range, which creates only 2 VLANs since it includes the endpoints. Therefore, the correct answer is C, with 11 VLANs from the first command and 2 from the second.