Run the vlan batch command in the system view to create VLANs in a batch.
- Create 10 contiguous VLANs in a batch: VLAN 11 to VLAN 20.
<HUAWEI> system-view [HUAWEI] vlan batch 11 to 20
- Create 10 noncontiguous VLANs in a batch: VLAN 10, VLANs 15 to 19, VLAN 25, VLANs 28 to 30.
<HUAWEI> system-view [HUAWEI] vlan batch 10 15 to 19 25 28 to 30
NOTE:
You can create a maximum of 10 noncontiguous VLANs or VLAN range at one time. If more than 10 noncontiguous VLANs need to be created, run this command multiple times. For example, vlan batch 10 15 to 19 25 28 to 30 indicates four noncontiguous VLAN ranges.