Configuring Overriding Profile Assignments for VLAN Major Interfaces

Configuring overriding profile assignments for VLAN major interfaces includes the following tasks:

Assigning an Overriding Profile to a VLAN Within a Bulk-Configured VLAN Subrange

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:

  1. Configure both of the following:
    • Base profile for the bulk-configured dynamic VLAN on the static VLAN major interface. The VLAN range consists of one or more VLAN subranges. For more information, see Configuring a Base Profile for VLAN Subinterface
    • Overriding profile for a dynamic VLAN within a bulk-configured VLAN subrange.

    For information about configuring profiles, see Dynamic Interface Configuration Using a Profile.

  2. Create a bulk-configured range of single-tagged VLAN IDs or double-tagged S-VLAN IDs on a static VLAN major interface. The following commands create a bulk-configured VLAN range named myBulkConfig that consists of two VLAN subranges. The first subrange encompasses VLAN IDs 150–250. The second subrange encompasses VLAN IDs 300–500. For more information, see Selecting a Gigabit Ethernet Interface or a 10-Gigabit Ethernet Interface and Creating a Bulk-Configured VLAN Range on a Static VLAN Major Interface.
    host1(config)#interface gigabitEthernet 4/0.101 host1(config-if)#vlan bulk-config myBulkConfig vlan-range 150 250
    vlan-range 300 500
  3. Assign the previously configured base profile (vlanBaseProfile) to the bulk-configured VLAN range. For more information, see Assigning the Base Profile Configured for a Dynamic VLAN Subinterface to the Single-Tagged VLAN IDs or Double-Tagged S-VLAN IDs.
    host1(config-if)#profile vlan bulk-config myBulkConfig vlanBaseProfile
  4. Assign the previously configured overriding profile to a single VLAN ID or double-tagged S-VLAN ID within the bulk-configured VLAN subrange. The following command assigns the overriding profile overrideVoiceSubscriber to the VLAN ID 202. This VLAN ID exists within the first VLAN subrange (VLAN IDs 150–250) configured in Step 2.
    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. For more information, see Assigning an Overriding Profile to a Single-Tagged VLAN ID or Double-Tagged S-VLAN ID.

  5. (Optional) You can assign the same overriding profile to a VLAN ID within the same VLAN range or within a different VLAN range. For example, the following command assigns the overriding profile overrideVoiceSubscriber to the VLAN ID 160. This S-VLAN ID exists within the VLAN subrange configured in Step 2.
    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.

  6. Configure the VLAN major interface to support autodetection of the VLAN dynamic encapsulation type. For more information, see Configuring the Static VLAN Major Interface to Support Autodetection of a VLAN Dynamic Interface Type.
    host1(config-if)#auto-configure vlan
  7. (Optional) Use the show vlan profile command to verify the overriding profile configuration. For more information, see Monitoring Dynamic VLAN Subinterfaces Created with an Overriding Profile Assignment.

Removing an Overriding Profile Assignment from a VLAN

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:

  1. Remove the overriding profile assignment from the specified VLAN ID or S-VLAN ID.
    host1(config-if)#no profile vlan override bulk-config-name myBulkConfig vlan 202 overrideVoiceSubscriber
  2. Select the dynamic VLAN subinterface on which the VLAN dynamic subinterface column resides. For more information, see Selecting a Gigabit Ethernet Interface or a 10-Gigabit Ethernet Interface.
    host1(config)#interface gigabitEthernet 4/0.101
  3. Use the shutdown command to disable the dynamic VLAN subinterface. The shutdown command deletes the VLAN dynamic subinterface column and removes the dynamic VLAN subinterface. For more information, see Disabling a Dynamic VLAN subinterface.
    host1(config-if)#shutdown
  4. Send traffic over the VLAN subinterface. This action re-creates the VLAN dynamic subinterface column with the original base profile association.

    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.

  5. (Optional) Use the show vlan profile override command to verify the removal of the overriding profile assignment. For more information, see Monitoring Dynamic VLAN Subinterfaces Created with an Overriding Profile Assignment.

Removing Overriding Profile Assignments from a VLAN Range or VLAN Subrange

You can use the no vlan bulk-config command to remove an entire VLAN range (and all VLAN subranges within that VLAN range). When you issue the no vlan bulk-config command, the router removes any overriding profile assignments configured for VLAN IDs within those VLAN subranges.

To remove 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

You can also use the no vlan bulk-config command to remove a particular VLAN subrange in a bulk-configured VLAN range. When you issue the no vlan bulk-config command, the router 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.

To remove 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

Related Documentation