You can configure dynamic subscriber interfaces in the following configurations:
The following topics describe how to create each of these basic configurations. In addition, Example: Configuring Dynamic Subscriber Interfaces Using Loopback Interfaces, provides a detailed sample configuration.
This example shows how you can configure a dynamic subscriber interface in an IP over Ethernet configuration by using DHCP events.
This example uses the following software and hardware components:
Figure 1 shows the interface stack built for this configuration.
Figure 1: IP over Ethernet Dynamic Subscriber Interface Configuration

To configure a dynamic subscriber interface in an IP over Ethernet configuration by using DHCP events, perform the following steps:
For instructions, see Configuring the DHCP Local Server .
Use the no version to remove IP from an interface or subinterface. You must issue the no version from the highest level down; you cannot remove an interface or a subinterface if the one above it still exists.
You must specify the layer 2 encapsulation before you set the IP address. Issuing this command creates the primary IP interface. You must create a primary IP interface on which to enable dynamic creation of subscriber interfaces.
Use the no version to remove the IP address or to disable IP processing.
The router creates the required dynamic subscriber interfaces when the IP address is assigned to the associated subscriber. The address might be assigned by an external DHCP server, the DHCP local server, or the packet detect feature.
Use the include-primary keyword to specify that the primary interface can be assigned to a subscriber. Use the exclude-primary keyword to specify that the primary interface is not used for subscribers. The primary interface is not assigned to a subscriber by default. You can issue this command from Interface Configuration mode, Subinterface Configuration mode, or Profile Configuration mode.
Use the no version to disable creation of dynamic subscriber interfaces associated with this primary IP interface. Use the no version with the include-primary keyword to specify that the primary interface is not assigned to a subscriber.
You can use this command to allow more than one subscriber to have the same IP address across different virtual routers in the DSI configuration by appending the virtual router name to the interface. You can issue this command from either Interface Configuration mode or Profile Configuration mode.
Use the no version to disable ip auto-configure on the static primary interface if it is already configured. This feature is enabled by default in a non-DSI configuration with the DHCP local server.
You can use this command to configure a subscriber interface or a primary IP interface enabled for dynamic creation of subscriber interfaces to demultiplex traffic with the specified source address. Use the no version to remove the association between the interface and the specified IP source address and mask.
This example shows how you can configure a dynamic subscriber interface in an IP over VLAN over Ethernet configuration by using DHCP events.
This example uses the following software and hardware components:
Figure 2 shows the interface stack built for this configuration.
Figure 2: IP over VLAN over Ethernet Dynamic Subscriber Interface Configuration

To configure a dynamic subscriber interface in an IP over VLAN over Ethernet configuration by using DHCP events, perform the following steps:
For instructions, see Configuring the DHCP Local Server .
![]() | Note: You can configure only the primary port, 0, on the Gigabit Ethernet module. The router automatically uses the redundant port if the primary port fails. |
Use the no version to remove IP from an interface. You must issue the no version from the highest level down; you cannot remove an interface or a subinterface if the one above it still exists.
Use the no version to disable VLAN encapsulation on the interface.
You need to specify a VLAN ID number that is in the range 0–4095 and is unique within the Ethernet interface. Issue the vlan id command before you configure any upper-layer interfaces, such as IP.
There is no no version.
You must specify the layer 2 encapsulation before you set the IP address. Issuing this command creates the primary IP interface. You must create a primary IP interface on which to enable dynamic creation of subscriber interfaces.
Use the no version to remove the IP address or to disable IP processing.
You can use this command to configure a subscriber interface or a primary IP interface enabled for dynamic creation of subscriber interfaces to demultiplex traffic with the specified source address. Use the no version to remove the association between the interface and the specified IP source address and mask.
This example shows how you can configure a dynamic subscriber interface in an IP over bridged Ethernet over ATM configuration by using DHCP events.
This example uses the following software and hardware components:
Figure 3 shows the interface stack built for this configuration.
Figure 3: IP over Bridged Ethernet over ATM Dynamic Subscriber Interface Configuration

To configure a dynamic subscriber interface in an IP over bridged Ethernet over ATM configuration by using DHCP events, perform the following steps:
For instructions, see Configuring the DHCP Local Server .
Specify the VCD, the VPI, the VCI, and the encapsulation type. (For more information about these parameters, see the Creating a Basic Configuration section in JunosE Link Layer Configuration Guide .)
Use the no version to remove the specified PVC.
Use the no version to remove bridged Ethernet as the encapsulation method on the interface.
You must specify the layer 2 encapsulation before you set the IP address. Issuing this command creates the primary IP interface. You must create a primary IP interface on which to enable dynamic creation of subscriber interfaces.
Use the no version to remove the IP address or to disable IP processing.
You can use this command to configure a subscriber interface or a primary IP interface enabled for dynamic creation of subscriber interfaces to demultiplex traffic with the specified source address. Use the no version to remove the association between the interface and the specified IP source address and mask.
This example shows how you can configure a dynamic subscriber interface in a GRE tunnel configuration by using packet detection.
This example uses the following software and hardware components:
Figure 4 shows the interface stack built for this configuration.
Figure 4: GRE Tunnel Dynamic Subscriber Interface Configuration

To configure a dynamic subscriber interface in a GRE tunnel configuration by using packet detection, perform the following steps:
For instructions, see the Configuration Tasks section in JunosE IP Services Configuration Guide .
You must specify the layer 2 encapsulation before you set the IP address. Issuing this command creates the primary IP interface. You must create a primary IP interface on which to enable dynamic creation of subscriber interfaces.
Use the no version to remove the IP address or to disable IP processing.
When an unmatched packet is detected, an event is generated that determines whether to create a dynamic subscriber interface.
Use the no version to restore the default, in which packet detection is disabled.
A dynamically created subscriber interface is deleted if it is inactive for a period longer than the inactivity timer value. The timer value can be in the range 1–65335 minutes. A timer value of 0 specifies that dynamically created subscriber interfaces are never deleted by the inactivity timer.
Use the no version to restore the default, in which inactivity timer feature is disabled.
You can use this command to configure a subscriber interface or a primary IP interface enabled for dynamic creation of subscriber interfaces to demultiplex traffic with the specified source address. Use the no version to remove the association between the interface and the specified IP source address and mask.