VLAN subranges have an administrative state that enables you to remove dynamic VLAN subinterfaces on various subranges that belong to a single VLAN range. This functionality is important because subrange removal requires that no dynamic VLAN subinterfaces exist for any circuit on that subrange. The removal operation fails if any such interfaces exist.
By default, the administrative state of a VLAN subrange is up. When you change the administrative state to down by using the vlan bulk-config shutdown command, the router deletes all dynamic VLAN subinterfaces on the affected subranges. You can use the show vlan subinterface command to monitor the progress of the removal of all dynamic VLAN subinterfaces for the specified subrange.
No additional dynamic VLAN subinterfaces can be created for the subrange until you restore the administrative state to up by using the no vlan bulk-config shutdown command.
The following example specifies the original VLAN subranges.
- host1(config-if)#vlan bulk-config test svlan-range
101 150 1 1
svlan-range
201 250 2 2 svlan-range 501 550 5 5 svlan-range 301 350 3 3
You cannot specify a partial subrange; the specified subrange must exactly match a subrange that has already been configured. The following command changes the administrative state of the second subrange (S-VLAN IDs 201–250 and VLAN ID 2) to down. The router removes all dynamic interface columns built on any of the VLAN IDs or S-VLAN IDs in this subrange. No additional dynamic VLAN subinterfaces can be created until you change the administrative state to up.
- host1(config-if)#vlan bulk-config test shutdown
svlan-range 201 250 2 2
The following command changes the administrative state of this same VLAN subrange to up.
- host1(config-if)#no vlan bulk-config test
shutdown svlan-range 201 250 2 2
You can also change the administrative state of VLAN subranges that are based on agent-circuit-identifier information. For example, assume that the following command is issued to configure a VLAN subrange based on agent-circuit-identifier information:
- host1(config-if)#vlan bulk-config myNewBulkConfig
svlan-range 50 100 agent-circuit-identifier
The following command changes the administrative state of this same VLAN subrange to down:
- host1(config-if)#vlan bulk-config myNewBulkConfig
shutdown svlan-range 50 100 agent-circuit-identifier
You can change the administrative state of all subranges in a bulk-configured VLAN range at the same time by issuing the command without specifying any subranges. When you shut down a named bulk configuration, all VLAN ranges belonging to that bulk configuration, including those based on double-tagged S-VLANs or agent-circuit-identifier information, are disabled.
The following command shuts down all four subranges belonging to the named VLAN range, test, regardless of their current state.
- host1(config-if)#vlan bulk-config test shutdown
The time required for the router to complete an administrative state change depends on the number of VLAN subranges configured.
vlan bulk-config
- host1(config)#vlan bulk-config test1 svlan-range
200 250 2
vlan bulk-config modify
- host1(config-if)#vlan bulk-config test modify
svlan-range 200 250 1 3
vlan bulk-config shutdown
- host1(config-if)#vlan bulk-config test shutdown
svlan-range 200 250 1 3