vlan batch

Function

The vlan batch command creates VLANs in batches.

The undo vlan batch command is used to delete VLANs in batches.

By default, no VLAN exists.

Format

vlan batch { vlan-id1 [ to vlan-id2 ] } &<1-10>

undo vlan batch { vlan-id1 [ to vlan-id2 ] } &<1-10>

Parameters

Parameter Description Value
vlan-id1

Specifies the start VLAN ID.

The value is an integer ranging from 1 to 4094.

vlan-id2

Specifies the end VLAN ID.

The value is an integer ranging from 1 to 4094.

Views

System view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
vlan write

Usage Guidelines

Usage Scenario

The vlan batch command creates multiple VLANs at one time, simplifying VLAN configuration.

Precautions

The vlan batch command creates VLANs in batches. If a VLAN has been created, using this command does not create the same VLAN or modify the VLAN configuration. If you run the vlan batch command more than once, all the created VLANs take effect.

Example

# Create VLAN 6, VLAN 7, and VLAN 16 through VLAN 20 in a batch.
<HUAWEI> system-view
[~HUAWEI] vlan batch 6 7 16 to 20
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >