Configuring Dynamic VLAN Subinterfaces
To configure a dynamic VLAN subinterface:
- 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.
- (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
- 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.
- Define attributes for the VLAN subinterface in the base
profile. For more information, see Configuring a Base Profile for VLAN Subinterface.
- Configure the VLAN major interface for autodetection of
the PPPoE upper-interface encapsulation type.host1(config-profile)#vlan auto-configure pppoe
- Configure the VLAN subinterface for autodetection of the
IP upper-interface encapsulation type.host1(config-profile)#vlan auto-configure ip
- Configure an Ethertype value for any S-VLANs configured
on the VLAN.host1(config-profile)#svlan ethertype 8100
- Configure the VLAN major interface for autodetection of
the PPPoE upper-interface encapsulation type.
- (Optional) In the base profile, create nested
profile assignments for the upper-interface encapsulation types.host1(config-profile)#vlan profile ip myIpProfile
- Exit Profile Configuration mode.
- 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
- 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 - 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
- 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
Related Documentation
- Dynamic VLAN Subinterfaces over Static VLAN Major Interfaces Overview
- Monitoring the Characteristics of a Profile Assigned to Dynamic Interfaces
- Monitoring Status and Configuration Information for VLAN Subinterfaces
- Monitoring Base Profile Assignments and Overriding Profile Assignments for VLAN Major Interface
- auto-configure vlan
- encapsulation vlan
- profile
- profile vlan bulk-config
- svlan ethertype
- vlan auto-configure
- vlan bulk-config
- vlan profile