[Contents] [Prev] [Next] [Index] [Report an Error]

Configuring a Dynamic VLAN Subinterface

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 Configuring a Dynamic Interface from a Profile in Configuring Dynamic Interfaces.

  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.
    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.
    1. Configure the VLAN major interface for autodetection of the PPPoE upper-interface encapsulation type.
    2. Configure the VLAN subinterface for autodetection of the IP upper-interface encapsulation type.
    3. Configure an Ethertype value for any S-VLANs configured on the VLAN.
      host1(config-profile)#vlan auto-configure pppoe
      host1(config-profile)#vlan auto-configure ip
      host1(config-profile)#svlan ethertype 8100
  5. (Optional) In the base profile, create nested profile assignments for the upper-interface encapsulation types.

    For example, the following command configures nested profile assignments for the IP upper-interface encapsulation types.

    host1(config-profile)#vlan profile ip myIpProfile
  6. Exit Profile Configuration mode.
  7. Configure the VLAN major 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.

    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
  9. Assign the base profile configured for the VLAN subinterface to the VLAN range configured on the major VLAN interface.
    host1(config-if)#profile vlan bulk-config myBulkConfig vlanBaseProfile
  10. Configure the VLAN major interface to support autodetection of the VLAN dynamic encapsulation type.
    host1(config-if)#auto-configure vlan

[Contents] [Prev] [Next] [Index] [Report an Error]