The vlan range command creates a temporary VLAN range and displays the VLAN-Range view.
By default, no temporary VLAN ranges are created.
Parameter | Description | Value |
---|---|---|
vlan-id1 [ to vlan-id2 ] | Specifies VLAN IDs to be created in batches:
|
The value is an integer ranging from 1 to 4094. |
Usage Scenario
Manually configuring and maintaining VLANs is challenging on a large Layer 2 network. Configuration inconsistency may also occur. To improve maintenance efficiency and simplify configurations, run the vlan range command to create a temporary VLAN range. You can then configure services in the VLAN-Range view. Configured services will be delivered in batches to all the VLANs in the VLAN range.
Precautions
The vlan range command configuration is not saved in the configuration file. If services are configured in the VLAN-Range view, the service configurations of all the VLANs in the VLAN range will be saved in the configuration file.
A temporary VLAN range fails to be created if the specified VLAN is a dynamic VLAN or is not created. VLANs that have been added to a temporary VLAN range will automatically leave the VLAN range after being deleted.
Configuration Impact
If the vlan range command is run more than once, all configurations take effect.