TechLibrary

Navigation Back up to About Overview

Configuring Dynamic VLAN Subinterfaces

To configure a dynamic VLAN subinterface:

  1. Configure profiles containing characteristics for the dynamic upper-interface encapsulation types to be created over the 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 Dynamic Interface Configuration Using a Profile.

  2. (Optional) Create the profile for an upper-interface encapsulation type, and include additional profile characteristics for other encapsulation types as needed. Perform this step if you want to create a nested profile assignment in Step 5.
    host1(config)#profile myIpProfile host1(config-profile)#ip inactivity-timer 200 host1(config-profile)#ip auto-configure ip-subscriber include-primary
  3. Create the base profile for the dynamic VLAN subinterface by assigning the profile a name. For information, see Creating a Base Profile to Configure Attributes for a Dynamic VLAN Subinterface.
    host1(config)#profile vlanBaseProfile

    This command accesses Profile Configuration mode, which enables you to configure attributes in the base profile.

  4. Define attributes for the VLAN subinterface in the base profile. For more information, see Configuring a Base Profile for VLAN Subinterface.
    1. Configure the VLAN major interface for autodetection of the PPPoE upper-interface encapsulation type.
      host1(config-profile)#vlan auto-configure pppoe
    2. Configure the VLAN subinterface for autodetection of the IP upper-interface encapsulation type.
      host1(config-profile)#vlan auto-configure ip
    3. Configure an Ethertype value for any S-VLANs configured on the VLAN.
      host1(config-profile)#svlan ethertype 8100
  5. (Optional) In the base profile, create nested profile assignments for the upper-interface encapsulation types.
    host1(config-profile)#vlan profile ip myIpProfile
  6. Exit Profile Configuration mode.
  7. Configure the VLAN major interface. For more information, see Configuring VLAN as the Encapsulation Method for the Interface.
    host1(config)#interface gigabitEthernet 5/0 host1(config-if)#encapsulation vlan
  8. Configure a VLAN range on the major VLAN interface, and assign a name to this range. For more information, see Creating a Bulk-Configured VLAN Range on a Static VLAN Major Interface

    Note: For information about the maximum number of VLAN bulk configurations supported per chassis, see JunosE Release Notes, Appendix A, System Maximums.

    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
  9. Assign the base profile configured for the VLAN subinterface to the VLAN range configured on the major VLAN interface. 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
  10. 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

Published: 2013-07-17