E-series routers support configuration of dynamic VLAN subinterfaces over static VLAN major interfaces over Ethernet.
When you configure the dynamic VLAN subinterface, you can enable autodetection and dynamic creation of the following upper-layer encapsulation types:
![]() |
Note: Unlike ATM, which supports dynamic upper interfaces over static ATM 1483 subinterfaces, you must configure a dynamic VLAN subinterface to enable autodetection and dynamic creation of IP and PPPoE interfaces. |
Figure 51 shows the dynamic upper-interface columns supported by dynamic VLAN subinterfaces, and indicates which layers in the columns are static and dynamic.
Figure 51: Dynamic Interface Columns over Dynamic VLAN Subinterfaces

Unlike ATM 1483, you can configure both IP and PPPoE over a single dynamic VLAN subinterface (Figure 52).
Figure 52: Dynamic IP and PPPoE over Single Dynamic VLAN Subinterface

This section introduces important concepts that you need to understand before you configure dynamic VLAN subinterfaces.
When you configure dynamic VLAN subinterfaces over static VLAN major interfaces, you must configure the VLAN major interface, including the attributes of the VLAN major interface. VLAN major interface attributes include profile assignments and autoconfiguration settings.
As part of the configuration process, you create a VLAN base profile, which can optionally include nested profile assignments, to define the attributes required to configure the dynamic VLAN subinterface and the dynamic upper-layer encapsulation types built over it.
When the router receives a packet, it examines the packet for a VLAN ID or double-tagged S-VLAN ID. You can also configure the router to further examine the packet for agent-circuit-identifier information. Based on these values and the configuration data received from a profile, the router creates all dynamic layers above the VLAN layer, starting with the lowest dynamic layer. For example, in the case of a dynamic PPPoE interface, the router creates the interfaces in the following order:
If any layer of the dynamic portion of the interface column fails to be created, then the interface creation fails and the connection is denied. All dynamic layers above the VLAN subinterface are destroyed, starting with the highest dynamic layer. VLAN subinterfaces are persistent; after they are created, they cannot be destroyed, unless the operational state changes to down.
Dynamic VLAN subinterfaces function identically to static VLAN subinterfaces, except for the manner in which they are created and configured. However, dynamic VLANs provide you with the flexibility of having the dynamic interface column created automatically only when the subscriber logs in.
Figure 53 displays the relationship between the central office, digital subscriber line access multiplexers (DSLAMs), and subscribers. The subscribers are connected to the DSLAMS through Gigabit Ethernet interfaces.
Figure 53: Dynamic VLAN Subinterfaces for Subscribers

For example, if an S-VLAN is assigned at the DSLAM, and each DSLAM subscriber at the DSLAM is assigned a unique VLAN ID, the JUNOSe software dynamically constructs a VLAN-based interface column using that S-VLAN/VLAN ID pair when the subscriber logs in.
For more information about the attributes of VLAN and S-VLAN subinterfaces, see Configuring VLAN and S-VLAN Subinterfaces .
To configure a dynamic VLAN subinterface over a static VLAN major interface, you must create a base profile. The base profile includes one or more of the following attributes for the VLAN subinterface:
You can override the base profile assignment for a VLAN or S-VLAN that exists with a profile. For more information, see Overriding Base Profile Assignments.
The configuration for each dynamic upper-interface encapsulation type might differ, depending on the column type built by the router. To manage these differences, you can include one or more nested profile assignments within the VLAN base profile. A nested profile assignment references another profile that configures attributes for a dynamic upper-interface encapsulation type. You can create different profiles for each upper-interface encapsulation type, or you can create a single profile that includes attributes for multiple encapsulation types.
For example, the following commands create a base profile named vlanBaseProfile with two nested profile assignments. The first nested profile assignment references an IP profile named vlanProfileIp, and the second nested profile assignment references a PPPoe profile named vlanProfilePppoe.
- host1(config)#profile vlanBaseProfile
- host1(config-profile)#vlan profile ip vlanProfileIp
- host1(config-profile)#vlan profile pppoe vlanProfilePppoe
In this example, vlanProfileIp and vlanProfilePppoe have different IP configurations depending on the dynamic interface column constructed. For an IP over VLAN dynamic interface column, the router uses the IP attributes in vlanProfileIp. For an IP over PPPoE dynamic interface column, the router uses the IP attributes in vlanProfilePppoe.
For information about creating profiles for upper-interface encapsulation types, see Configuring a Dynamic Interface from a Profile in Configuring Dynamic Interfaces.
In addition to VLAN attributes and nested profile assignments, the base profile for a dynamic VLAN subinterface can also include individual characteristics for several upper-interface encapsulation types, provided that no nested profile assignment for the specified encapsulation type is in the base profile. If, on the other hand, a nested profile assignment for this encapsulation type exists in the base profile, the router obtains all characteristics for that encapsulation type from the nested profile and not from the base profile.
For lists of the characteristics for each supported upper-interface encapsulation type, see Profile Characteristics.
Dynamic creation of VLAN subinterfaces requires you to configure a range of single-tagged VLAN IDs and double-tagged S-VLAN IDs on the VLAN major interface and assign a name to this range. You can also configure a range of S-VLAN IDs that is based on agent-circuit-identifier information. See Bulk Configuration of VLAN Ranges Using Agent-Circuit-Identifier Information for information.
Each VLAN range consists of one or more nonoverlapping VLAN subranges. A VLAN subrange is a group of VLAN IDs and S-VLAN IDs that reside within the VLAN range you specify.
The process of configuring a VLAN range for a dynamic VLAN subinterface is referred to as bulk configuration. You create a bulk configuration by issuing the vlan bulk-config command. For example, the following commands create a VLAN bulk configuration named myBulkConfig on the specified VLAN interface.
- host1(config)#interface gigabitEthernet 2/0
- host1(config-if)#vlan bulk-config myBulkConfig
svlan-range 101 1100 1 375 svlan-range
1300 1500 500 650
In the example, the vlan bulk-config command configures a VLAN range made up of two VLAN subranges. The first subrange configures S-VLANs 101–1100 and VLANs 1–375. The second subrange configures S-VLANs 1300–1500 and VLANs 500–650.
![]() |
Note: For information about the maximum number of VLAN bulk configurations supported per router and line module, see JUNOSe Release Notes, Appendix A, System Maximums. |
After you issue the vlan bulk-config command, the router provisions all VLAN IDs and S-VLAN IDs in the specified VLAN range at the same time. The router does not dynamically create the VLAN subinterface until it receives incoming data traffic on the VLAN ID or S-VLAN ID.
After you create a named VLAN range, you cannot remove the underlying VLAN major interface until you issue the no vlan bulk-config command to remove the VLAN range from that interface.
Using bulk configuration to create S-VLAN IDs based on agent-circuit-identifier information is similar to the process of creating a bulk-configured VLAN range that is not based on agent-circuit-identifier information. However, when you issue the vlan bulk-config command with the svlan-range keyword to specify the S-VLAN ID range, you then specify the agent-circuit-identifier keyword instead of a VLAN ID range. This technique creates a unique type of S-VLAN range in which the agent-circuit-identifier information is used in place of the second tag.
The agent-circuit-identifier string is contained in the option 82 field of DHCP messages for DHCP traffic, or in the DSL Forum VSA 26-1 of PPPoE PADR and PADI packets for PPPoE traffic. The agent-circuit-identifier information identifies the subscriber’s access node and the DSL line on the access node. You can repeat the svlan-range and agent-circuit-identifier keywords to provide nonoverlapping VLAN subranges that reside within the VLAN range.
The following example configures a VLAN ID range made up of two subranges. The first subrange configures S-VLANs 200–250 and the second subrange configures S-VLANs 3000–3500. Both subranges configure the subscriber identification based on agent-circuit-identifier information.
- host1(config)#interface gigabitEthernet 2/0
- host1(config-if)#vlan bulk-config myAgent2BulkConfig
svlan-range 200 250 agent-circuit-identifier
svlan-range 3000 3500 agent-circuit-identifier
After you issue the vlan bulk-config command with the agent-circuit-identifier keyword, the router provisions the S-VLAN IDs in the specified bulk-configured VLAN range at the same time. The router does not dynamically create the VLAN subinterface until it receives incoming data traffic. The user information is generated from the incoming data traffic that contains the agent-circuit-identifier string.
Conceptually, a VLAN subinterface in this configuration has two attributes, an S-VLAN ID and an agent-circuit-identifier string. This is analogous to a regular S-VLAN that also has two attributes, an S-VLAN ID and a VLAN ID. However, the packet that the router receives is singly-tagged with only a VLAN ID. The use of the agent-circuit-identifier keyword in the vlan bulk-config command causes the router to further examine the packet and extract the agent-circuit-identifier string in order to generate the subscriber identification information.
In a DSL access network, subscriber information can be conveyed through either of the following methods:
For example, the following configurations uniquely identify subscribers by means of VLAN encapsulation:
The DSL Forum Technical Report (TR)-101—Migration to Ethernet-Based DSL Aggregation (April 2006) refers to the behavior of these configurations as the 1:1 forwarding model because there is a one-to-one correspondence between an individual subscriber and the VLAN encapsulation.
In contrast, the following configurations do not uniquely identify subscribers by means of VLAN encapsulation:
Instead, these configurations identify subscribers by means of the agent-circuit-identifier information present in DHCP and PPPoE control messages. DSL Forum TR-101 refers to the behavior of these configurations as the N:1 forwarding model because there is a many-to-one correspondence between subscribers and a VLAN.
Creating dynamic VLANs based on agent-circuit-identifier information enables you to manage subscribers in single-tagged or untagged N:1 configurations that do not use encapsulation to uniquely identify subscribers. In these configurations, the router intercepts the agent-circuit-identifier string from DHCP messages or from PPPoE PADR and PADI packets to build a unique subscriber interface.
For double-tagged 1:1 configurations, the router uses standard dynamic VLAN procedures to uniquely identify subscribers. In these configurations, the S-VLAN ID typically represents the DSLAM, and the VLAN ID represents the individual subscriber accessing the router through that DSLAM.
For configuration instructions, see Configuring Dynamic VLAN Subinterfaces Based on Agent Circuit Identifier Information.
![]() |
Note: You must configure the DHCP local or external server to support the creation of dynamic subscriber interfaces that are based on the agent-circuit-id option (suboption 1) of the option 82 field in DHCP messages. See Configuring the DHCP Local Server or DHCP External Server Overview for information. |
After you configure the base profile, you associate it with the VLAN major interface by issuing the profile vlan bulk-config command.
As a final step, you must issue the auto-configure vlan command. This command configures the VLAN major interface to support autodetection of the VLAN dynamic encapsulation type.
When the router receives an incoming data packet on a circuit, it dynamically creates the VLAN subinterface, using the attributes specified in the base profile. After examining the contents of the data packet, the router dynamically creates the required interface columns above the VLAN subinterface, using the configuration attributes contained in the nested profiles, if specified, or in the base profile itself.
You can also use the profile vlan override bulk-config command to assign an overriding profile to a single VLAN ID or double-tagged S-VLAN ID that exists within a bulk-configured VLAN subrange. The VLAN ID subrange that encompasses the major interface must have been previously configured with the vlan bulk-config command for use by a dynamic VLAN subinterface. After you assign the overriding profile, the router uses the information in this profile instead of the information in the previously assigned base profile to create any subsequent VLAN dynamic subinterface columns on the specified VLAN major interface, as long as they match the VLAN or S-VLAN specified in the override.
The overriding profile, like the original base profile, can include VLAN attributes, nested profile assignments, and individual characteristics for dynamic upper-interface encapsulation types.
Overriding the base profile assignment for a VLAN with a profile enables you to create a special profile for a subscriber in a DSLAM. For example, you can use the overriding profile to create dynamic VLAN subinterfaces for subscribers with an S-VLAN ID of 200 and a VLAN ID of 100.
You can also use an overriding profile with debugging attributes to troubleshoot problems with VLAN dynamic subinterface columns.
For configuration instructions and examples, see Configuring Overriding Profile Assignments for VLAN Major Interfaces.
![]() |
Note: See JUNOSe Release Notes, Appendix A, System Maximums for information about the maximum number of overriding profile assignments currently supported per chassis. |
You can add, remove, modify, merge, disable, and enable VLAN subranges within an existing bulk-configured VLAN range.
For configuration instructions and examples, see Changing VLAN Subranges.
You can configure a static VLAN subinterface with a single-tagged VLAN ID or double-tagged S-VLAN ID, or an S-VLAN ID with agent-circuit-identifier information that falls within an existing bulk-configured VLAN subrange. Conversely, you can also create a bulk-configured VLAN subrange that includes the single-tagged VLAN ID or double-tagged S-VLAN ID on a static VLAN subinterface. Configuring static VLAN subinterfaces within VLAN subranges can be useful when you want to create a column statically for users who have difficulty logging on. You might also want to configure static VLAN subinterface within a VLAN subrange as a static column to the DSLAM; the dynamic column can be for subscribers.
The following rules apply when you configure either a static VLAN subinterface within an existing bulk-configured VLAN subrange or a subrange that includes an existing static VLAN interface:
For configuration information and examples, see Configuring Static VLAN Subinterfaces Within VLAN Subranges.
To configure a dynamic VLAN subinterface:
These profiles are referenced in the base profile for the dynamic VLAN subinterface as nested profile assignments. For detailed instructions on creating profiles, see Configuring a Dynamic Interface from a Profile in Configuring Dynamic Interfaces.
- host1(config)#profile myIpProfile
- host1(config-profile)#ip inactivity-timer
200
- host1(config-profile)#ip auto-configure ip-subscriber
include-primary
- host1(config)#profile vlanBaseProfile
This command accesses Profile Configuration mode, which enables you to configure attributes in the base profile.
- host1(config-profile)#vlan auto-configure
pppoe
- host1(config-profile)#vlan auto-configure
ip
- host1(config-profile)#svlan ethertype 8100
For example, the following command configures nested profile assignments for the IP upper-interface encapsulation types.
- host1(config-profile)#vlan profile ip myIpProfile
- host1(config)#interface gigabitEthernet 5/0
- host1(config-if)#encapsulation vlan
![]() |
Note: For information about the maximum number of VLAN bulk configurations supported per chassis, see JUNOSe Release Notes, Appendix A, System Maximums. |
For example, the following command creates a VLAN range named myBulkConfig made up of two VLAN subranges.
- host1(config-if)#vlan bulk-config myBulkConfig
vlan-range 0 100
vlan-range
110 200
- host1(config-if)#profile vlan bulk-config
myBulkConfig vlanBaseProfile
- host1(config-if)#auto-configure vlan
The procedure you use to configure a dynamic VLAN subinterface that is based on agent-circuit-identification information is similar to the procedure described in Configuring a Dynamic VLAN Subinterface.
- host1(config)#profile vlanMyBaseProfile
- host1(config-profile)#vlan auto-configure
pppoe
- host1(config-profile)#vlan auto-configure
ip
- host1(config-profile)#vlan auto-configure
agent-circuit-identifier
- host1(config-profile)#exit
- host1(config)#
- host1(config)#interface gigabitEthernet 5/0
- host1(config-if)#encapsulation vlan
- host1(config-if)#vlan bulk-config myNewBulkConfig
svlan-range 50 100 agent-circuit-identifier
- host1(config-if)#profile vlan bulk-config
myNewBulkConfig vlanMyBaseProfile
- host1(config-if)#auto-configure vlan
You can assign an overriding profile to a single VLAN major interface within a bulk-configured VLAN subrange.
The overriding profile includes debugging attributes to help you identify and troubleshoot problems with the VLAN dynamic subinterface column created on the specified VLAN ID.
To assign an overriding profile to a VLAN within a bulk-configured VLAN subrange:
For information about configuring profiles, see Configuring a Dynamic Interface from a Profile in Configuring Dynamic Interfaces.
- host1(config)#interface gigabitEthernet 4/0.101
- host1(config-if)#vlan bulk-config myBulkConfig
vlan-range 150 250
vlan-range
300 500
- host1(config-if)#profile vlan bulk-config
myBulkConfig vlanBaseProfile
- host1(config-if)#profile vlan override bulk-config
myBulkConfig vlan 202 overrideVoiceSubscriber
The router now uses the information in the overriding profile instead of the information in the base profile to create subsequent VLAN dynamic subinterface columns over this VLAN ID.
- host1(config-if)#profile vlan override bulk-config-name
myBulkConfig
svlan 120
202 overrideVoiceSubscriber
![]() |
Note: You can reverse the order of Step 2 and Step 4 with identical results. That is, you can assign the overriding profile to an S-VLAN ID and then assign the base profile to the entire VLAN subinterface. |
- host1(config-if)#auto-configure vlan
For more information about using this command, see Monitoring Dynamic Interfaces and Profiles.
You can remove an overriding profile assignment from a VLAN major interface.
If you use the overriding profile to troubleshoot the VLAN dynamic subinterface column created on the specified VLAN ID, make sure that you remove the overriding profile assignment to restore the original base profile assignment. This action ensures that subsequent VLAN dynamic subinterface columns are created using the same attributes defined in the base profile.
To remove an overriding profile assignment from a VLAN:
- host1(config-if)#no profile vlan override
bulk-config-name myBulkConfig vlan 202 overrideVoiceSubscriber
- host1(config)#interface gigabitEthernet 4/0.101
- host1(config-if)#shutdown
The router now uses the information in the base profile instead of the information in the overriding profile to create subsequent VLAN dynamic subinterface columns for the specified VLAN ID or S-VLAN ID.
For more information about using this command, see Monitoring Dynamic Interfaces and Profiles.
When you issue the no vlan bulk-config command to remove an entire VLAN range (and all VLAN subranges within that VLAN range), the router also removes any overriding profile assignments configured for VLAN IDs within those VLAN subranges. For example, the following command removes the bulk-configured VLAN range named myBulkConfig and any overriding profile assignments for VLAN IDs within the VLAN subranges belonging to myBulkConfig.
- host1(config-if)#no vlan bulk-config myBulkConfig
When you issue the no vlan bulk-config command to remove a particular VLAN subrange in a bulk-configured VLAN range, the router also removes any overriding profile assignments for VLAN IDs within that VLAN subrange. However, overriding profile assignments for VLAN IDs within other VLAN subranges in the VLAN range remain intact. For example, the following command removes one VLAN subrange (S-VLAN IDs 50–150 and VLAN IDs 150–250) and only those overriding profile assignments associated with this subrange.
- host1(config-if)#no vlan bulk-config myBulkConfig
svlan-range 50 150 150 250
auto-configure vlan
- host1(config-if)#auto-configure vlan
encapsulation vlan
- host1(config-if)#encapsulation vlan
interface fastEthernet
- host1(config)#interface fastEthernet 4/1
interface gigabitEthernet
interface tenGigabitEthernet
- host1(config)#interface gigabitEthernet 1/0
- host1(config)#interface gigabitEthernet 4/0/1
- host1(config)#interface tenGigabitEthernet
4/0/1
profile
- host1(config)#profile vlanBaseProfile
profile vlan bulk-config
- host1(config-if)#profile vlan bulk-config
myBulkConfig vlanBaseProfile
profile vlan override bulk-config
- host1(config-if)#profile vlan override bulk-config
vlan 202 test1OverridingProfile
- host1(config-if)#profile vlan override bulk-config
svlan 100 202 test1OverridingProfile
- host1(config-if)#no profile vlan override
bulk-config vlan 202 test1OverridingProfile
shutdown
- host1(config-subif)#shutdown
svlan ethertype
- host1(config-profile)#svlan ethertype 8100
- host1(config-profile)#svlan ethertype autoconfig
vlan advisory-rx-speed
- host1(config-profile)#vlan advisory-rx-speed
2000
vlan advisory-tx-speed
- host1(config-profile)#vlan advisory-tx-speed
2000
vlan auto-configure
- host1(config-profile)#vlan auto-configure
ip
vlan auto-configure agent-circuit-identifier
- host1(config-profile)#vlan auto-configure
agent-circuit-identifier
vlan bulk-config
![]() |
Note: For information about the maximum number of VLAN bulk configurations supported per chassis, see JUNOSe Release Notes, Appendix A, System Maximums. |
- host1(config-if)#vlan bulk-config myBulkConfig
vlan-range 100 500
- host1(config-if)#vlan bulk-config myMultiBulkConfig
svlan-range 101 600 0 1 svlan-range 201 3200 3 5
- host1(config-if)#vlan bulk-config myAciBulkConfig
svlan-range 200 400 agent-circuit-identifier
vlan description
- host1(config-profile)#vlan description test1
vlan policy
For example, when you replace a policy attachment that references the original policy-list plOne with a new attachment referencing policy-list plTwo, the existing statistics for the classifier group referencing clOne and the default classifier group are saved.
- host1(config-profile)#vlan policy input VlanPolicy33
statistics enabled preserve
vlan profile
- host1(config-profile)#vlan profile pppoe vlanProfilePppoe
- host1(config-profile)#vlan profile ip vlanProfileIP
vlan service-profile
- host1(config)#vlan service-profile vlanClass1Service
- host1(config-service-profile)#
Changing VLAN subranges within a bulk-configured VLAN range includes the following tasks:
The following sections describe how to perform these tasks.
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
You can remove VLAN subranges from an existing VLAN range if no dynamic VLAN subinterfaces currently exists for any circuit within those subranges. The removal operation fails if any such dynamic VLAN subinterface exists. You must first remove the dynamic VLAN subinterfaces before you can remove the subranges. Removal of a subrange automatically results in the removal of all overriding profile assignments on that subrange.
You can remove only a single specific VLAN subrange at a time. 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
The following command removes one subrange encompassing S-VLAN IDs 101–150 with VLAN ID 1 and leaves the remaining subranges, and the named VLAN range, test, intact.
- host1(config-if)#no vlan bulk-config test
svlan-range 101 150 1 1
The following command removes a subrange that includes S-VLAN IDs 700–750, and that is based on agent-circuit-identifier information from the named VLAN range, test.
- host1(config-if)#no vlan bulk-config test
svlan-range 700 750 agent-circuit-identifier
To remove more than one VLAN subrange, you must issue multiple removal commands, one for each subrange. You cannot remove only part of a subrange. A removal command cannot encompass more than one subrange, even if the subranges are adjacent. However, if you do not specify any subranges, you can remove all subranges in the VLAN, and the named VLAN range, at the same time.
- host1(config-if)#no vlan bulk-config test
You can shorten or expand a subrange by modifying the subrange values of a VLAN range. You can expand a subrange if none of the VLAN IDs or S-VLAN IDs added overlap with any other subrange. You can shorten a subrange if none of the VLAN IDs or S-VLAN IDs have existing dynamic VLAN subinterfaces. You can also modify an existing subrange by configuring it to use agent-circuit-identifier information rather than a range of VLAN IDs.
You can modify only a single specific subrange at a time. The following example specifies the original VLAN subranges encompassing S-VLAN IDs 201–250 with VLAN ID 2.
- 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
The following command modifies the second subrange from S-VLAN IDs 201–250 with VLAN ID 2 to S-VLAN IDs 210–230 with VLAN IDs 2–3.
- host1(config-if)#vlan bulk-config test modify
svlan-range 210 230 2 3
The following command modifies the third subrange from S-VLAN IDs 501–550 with VLAN ID 5 to S-VLAN IDs 501–550 with user identification that is based on agent-circuit-identifier information.
- host1(config-if)#vlan bulk-config test modify
svlan-range 501 550 agent-circuit-identifier
The router retains any overriding profiles assigned to a subrange after you modify the subrange if the override assignment still falls within the modified subrange. If the assignment falls outside of the newly modified subrange, the router drops the overriding profile assignment.
You cannot modify a subrange at the same time you are adding or removing a subrange. If the new modified values for a subrange partially overlap with another subrange, the operation fails and the router displays an error message.
You can merge multiple subranges of any particular VLAN range to form a single unified subrange, conserving subrange resources. Merging takes place only when you modify a subrange so that it completely includes at least one other subrange of the same VLAN range. The merged subranges do not need to be adjacent to each other.
If the encompassing subrange has any VLAN IDs or S-VLAN IDs that are outside the subranges to be merged, those VLAN IDs or S-VLAN IDs are added. The encompassing subrange must cover a subrange completely to incorporate it in the merged subrange. The merge operation fails if the encompassing subrange completely overlaps some subranges but only partially overlaps with another subrange. The encompassing subrange does not have to encompass all subranges of the VLAN range.
Each subrange that is merged with another frees up a subrange. E-series routers currently support a maximum of 300 bulk-configured VLAN ranges per chassis. Therefore, if a VLAN range consists of 5 subranges, 295 subranges are still available for subsequent configuration. If you merge 2 of those subranges, resulting in a new total of 4 subranges in the VLAN range, then 296 subranges are available for configuration.
The router retains any overriding profile assignments on the subranges made before the merger, and applies them to the new merged subrange. You can separate merged subranges either by removing the merged subrange and then adding new separate subranges or by modifying the merged subrange to remove some portion of the subrange and then adding a new subrange.
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
The following command merges two subranges (S-VLAN IDs 101–150 and VLAN ID 1) and (S-VLAN IDs 201–250 and VLAN ID 2) and effectively replaces them with the new subrange encompassing S-VLAN IDs 101–250 and VLAN IDs 1–2.
- host1(config-if)#vlan bulk-config test modify
svlan-range 101 250 1 2
To separate the merged subranges, you can modify the unified subrange and add subranges as needed, provided that no dynamic VLAN subinterfaces currently exist for any VLAN ID within those subranges.
If you merge subranges by using SNMP, the new merged subrange takes the lowest instance value of the incorporated subranges. For example, if a VLAN range has three subranges with instance values of 2, 4, and 5 and the subranges with instance values of 2 and 5 are merged, the new merged subrange has an instance value of 2.
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
You can do either of the following on an E-series router:
The following sections describe how to perform these tasks.
The example procedures in this section show how to configure static VLAN subinterfaces within VLAN subranges by using the same loopback interface referenced by multiple unnumbered IP interfaces. Instead of assigning a different IP address to each physical interface, the first example assigns an IP address to a loopback interface (loopback 0). Each physical interface is then configured as an unnumbered IP interface, referencing the same loopback interface.
You can configure a static VLAN subinterface with a VLAN whose VLAN ID falls within an existing bulk-configured VLAN subrange.
To create a static VLAN subinterface within a VLAN subrange:
- host1(config)#interface gigabitEthernet 0/0
- host1(config-if)#encapsulation vlan
- host1(config-if)#vlan bulk-config test vlan-range
200 250
- host1(config-if)#interface gigabitEthernet
0/0.2100
- host1(config-if)#ip unnumbered loopback 0
You can configure a bulk-configured VLAN subrange that includes the VLAN ID belonging to an existing VLAN on a static VLAN subinterface. This example is essentially the reverse of the procedure in Creating Static VLAN Subinterfaces Within VLAN Subranges.
To create a VLAN subrange that includes a static VLAN subinterface:
- host1(config)#interface gigabitEthernet 3/1
- host1(config-if)#encapsulation vlan
- host1(config-if)#interface gigabitEthernet
3/1.201
- host1(config)#interface gigabitEthernet 3/1
- host1(config-if)#vlan bulk-config test2 vlan-range
100 250
- host1(config-if)#ip unnumbered loopback 0
encapsulation vlan
- host1(config-if)#encapsulation vlan
interface gigabitEthernet
interface tenGigabitEthernet
- host1(config)#interface gigabitEthernet 1/0
- host1(config)#interface gigabitEthernet 4/0/1
- host1(config)#interface tenGigabitEthernet
4/0/1
ip unnumbered
- host1(config-if)#ip unnumbered fastEthernet
3/0
- host1(config-if)#ip unnumbered loopback 10
vlan bulk-config
- host1(config)#vlan bulk-config test1 svlan-range
200 250 2 2