You can add a new VLAN subrange to an existing VLAN range only when the new subrange does not overlap with any existing subrange. Any overlap causes the addition to fail.
You can add multiple subranges to an existing VLAN range simultaneously. However, the entire operation fails if even one of the new subranges overlaps with an existing subrange.
The following example specifies the original VLAN subranges.
- host1(config-if)#vlan bulk-config test svlan-range
201 250 2 2
svlan-range
501 550 5 5 svlan-range 301 350 3 3
To add subranges to this bulk-configured VLAN range, you can choose either of the following methods. Each method adds a new subrange encompassing S-VLAN IDs 401–450 with VLAN ID 4 to the existing VLAN range, test.
- host1(config-if)#vlan bulk-config test svlan-range
401 450 4 4
- host1(config-if)#vlan bulk-config test svlan-range
201 250 2 2
svlan-range
501 550 5 5 svlan-range 301 350 3 3 svlan-range 401 450 4 4
The following operation fails because the order of subranges does not match the existing order.
- host1(config-if)#vlan bulk-config test svlan-range
201 250 2 2
svlan-range
101 150 1 1 svlan-range 501 550 5 5 svlan-range 301 350 3 3 svlan-range 401 450 4 4 svlan-range 601 650 6 6
You can create a placeholder VLAN range by specifying a VLAN range name without specifying any subrange parameters. This VLAN range has no VLAN ID reservation, but you can assign a profile to it, and add subranges later as desired. The following commands illustrate this approach.
- host1(config-if)#vlan bulk-config test
- host1(config-if)#profile vlan bulk-config-name
test vlanProfile
- host1(config-if)#vlan bulk-config test svlan-range
401 450 4 4
svlan-range
601 650 6 6