< Home

vlan (VLAN pool view)

Function

The vlan command adds VLANs to a VLAN pool.

The undo vlan command deletes VLANs from a VLAN pool.

By default, no VLAN is available in a VLAN pool.

Format

vlan { start-vlan [ to end-vlan ] } &<1-10>

undo vlan { { start-vlan [ to end-vlan ] } &<1-10> | all }

Parameters

Parameter Description Value

start-vlan [ to end-vlan ]

Specifies the range of VLAN IDs.

start-vlan and end-vlan determine a VLAN range. start-vlan must be smaller than end-vlan.

The value is an integer in the range from 1 to 4094.

Views

VLAN pool view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

A VLAN pool is a combination of multiple VLANs. It is used to simplify network deployment. To add specified VLANs to a VLAN pool, run the vlan (VLAN pool view) command.

Precautions

  • A maximum of 128 VLANs can be added to a VLAN pool.
  • Deleting a VLAN will interrupt services of users using the VLAN. Exercise caution when you perform this operation.
  • A nonexistent VLAN can also be added to a VLAN pool. However, you need to create the VLAN after adding a nonexistent VLAN to a VLAN pool; otherwise, the VLAN does not take effect.
  • The VLAN reserved for a stack cannot be added to a VLAN pool.

Example

# Add VLANs 9, 12, 13, and 14 to the VLAN pool test.

<HUAWEI> system-view
[HUAWEI] vlan pool test
[HUAWEI-vlan-pool-test] vlan 9 12 to 14
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic