Configuring PPPoE Dynamic Interfaces over PPPoE Static Interfaces
E-series routers support dynamic PPPoE subinterfaces over static PPPoE major interfaces. The PPPoE major interfaces can be created over:
The following sections describe how to create each of these configurations on the router. In addition, Configuring Encapsulation Type Lockout for PPPoE Clients describes how to configure dynamic encapsulation type lockout for PPPoE clients associated with dynamic PPPoE subinterface columns.
Configuring Dynamic PPPoE over Static PPPoE with ATM Interface Columns
Figure 42 shows dynamic PPPoE subinterface columns and illustrates an alternative method for PPPoE to support multiple IP sessions over each ATM 1483 circuit.
![]()
To configure an ATM 1483 subinterface to support a dynamic PPPoE subinterface:
- Configure a physical interface.
host1(config)#interface atm 5/0- Configure an ATM 1483 subinterface.
host1(config-if)#interface atm 5/0.1- Configure a PVC by specifying the virtual circuit descriptor (VCD), the virtual path identifier (VPI), the virtual channel identifier (VCI), and the encapsulation type.
If you want the router to autodetect the encapsulation type, use the aal5autoconfig option.
host1(config-subif)#atm pvc 10 100 22 aal5snaphost1(config-subif)#atm pvc 10 100 22 aal5autoconfig
- Set the encapsulation type to PPPoE to create the PPPoE major interface.
host1(config-subif)#encapsulation pppoe- Assign a profile.
host1(config-subif)#pppoe profile pppoeProfile1- Configure the interface to detect and accept dynamic PPPoE subinterfaces.
host1(config-subif)#pppoe auto-configure- (Optional) Verify your configuration.
host1#show atm subinterface atm 5/0.1host1#show pppoe interface atm 5/0.1Configuring Dynamic PPPoE over Static PPPoE with Ethernet Interface Columns
Figure 43 shows dynamic PPPoE subinterface columns configured over an Ethernet interface without VLANs.
![]()
To configure an Ethernet interface without VLANs to support a dynamic PPPoE subinterface:
- Specify a Fast Ethernet, Gigabit Ethernet, or 10-Gigabit Ethernet interface.
host1(config)#interface fastEthernet 4/1- Assign an IP address and mask.
host1(config-if)#ip address 192.6.129.5 255.255.255.0- Specify PPPoE as the encapsulation method on the interface.
host1(config-subif)#encapsulation pppoeThis command creates the static PPPoE major interface.
- Assign a profile to the PPPoE major interface.
host1(config-subif)#pppoe profile pppoeProfile3- Configure the interface to detect and accept dynamic PPPoE subinterfaces.
host1(config-subif)#pppoe auto-configureConfiguring Dynamic PPPoE over Static PPPoE with Ethernet and VLAN Interface Columns
Figure 44 shows dynamic PPPoE subinterface columns and illustrates an alternative method for PPPoE to support multiple IP sessions over each VLAN.
![]()
To configure a VLAN subinterface to support a dynamic PPPoE subinterface:
- Specify a Fast Ethernet, Gigabit Ethernet, or 10-Gigabit Ethernet interface.
host1(config)#interface fastEthernet 4/1- Specify VLAN as the encapsulation method.
host1(config-if)#encapsulation vlanThis command adds the VLAN major interface.
- Create a VLAN subinterface by adding a subinterface number to the interface identifier.
host1(config-if)#interface fastEthernet 4/1.1- Assign a VLAN ID for the subinterface.
host1(config-if)#vlan id 400- Set the encapsulation type to PPPoE.
host1(config-subif)#encapsulation pppoe- Assign a profile.
host1(config-subif)#pppoe profile pppoeProfile2- Configure the interface to detect and accept dynamic PPPoE subinterfaces.
host1(config-subif)#pppoe auto-configureConfiguring Dynamic PPPoE over Static PPPoE with Ethernet and S-VLAN Interface Columns
Figure 45 shows dynamic PPPoE subinterface columns over PPPoE major interfaces using S-VLANs over Ethernet.
![]()
To configure an S-VLAN subinterface to support a dynamic PPPoE subinterface:
- Specify a Fast Ethernet, Gigabit Ethernet, or 10-Gigabit Ethernet interface.
host1(config)#interface fastEthernet 4/1- Specify VLAN as the encapsulation method.
host1(config-if)#encapsulation vlanThis command creates the VLAN major interface.
- Create a VLAN subinterface by adding a subinterface number to the interface identifier.
host1(config-if)#interface fastEthernet 3/1.1- Assign an S-VLAN ID and a VLAN ID for the subinterface.
host1(config-if)#svlan id 3 300- Assign an S-VLAN Ethertype.
host1(config-if)#svlan ethertype 9200- Specify PPPoE as the encapsulation method on the interface.
host1(config-subif)#encapsulation pppoeThis command creates the PPPoE major interface.
- Assign a profile.
host1(config-subif)#pppoe profile pppoeProfile3- Configure the interface to detect and accept dynamic PPPoE subinterfaces.
host1(config-subif)#pppoe auto-configureS-VLAN Oversubscription
When you configure S-VLAN subinterfaces over Ethernet interfaces to support dynamic PPPoE subinterfaces, you can take advantage of S-VLAN oversubscription.
The maximum number of S-VLANs that you can create per I/O module or IOA with PPPoE major interfaces stacked over them is greater than the maximum number of dynamic PPPoE subinterfaces. The maximum number of PPP interfaces supported per line module is directly proportional to the maximum number of PPPoE subinterfaces.
As a result, you can oversubscribe S-VLANs by configuring up to the maximum number of S-VLANs supported on the I/O module or IOA, knowing that no more than the maximum number of supported PPP sessions can be connected to the router at any one time.
For information about the module combinations that support S-VLAN oversubscription, see S-VLAN Oversubscription in Chapter 5, Configuring VLAN and S-VLAN Subinterfaces.
For specific information about the maximum number of S-VLANs supported per I/O module or IOA and the maximum number of PPP interfaces and PPPoE subinterfaces supported per line module, see JUNOSe Release Notes, Appendix A, System Maximums.
atm pvc
- aal5autoconfigEnables autodetection of the 1483 encapsulation (LLC/SNAP or VC multiplexed).
- aal5snapSpecifies a logical link control (LLC) encapsulated circuit; the LLC/Subnetwork Access Protocol (LLC/SNAP) header precedes the protocol datagram.
- aal5mux ipSpecifies a VC multiplexed circuit. This option is used for IP only.
host1(config-subif)#atm pvc 6 0 11 aal5autoconfigUse the no version to remove the specified PVC. encapsulation pppoe
host1(config-if)#encapsulation pppoeUse the no version to remove PPPoE encapsulation from the interface. encapsulation vlan
host1(config-if)#encapsulation vlanUse the no version to remove VLAN encapsulation from the interface. interface atm
- Use to select an ATM interface or ATM 1483 subinterface.
- For information about specifying the ATM interface or subinterface, see interface atm.
- Examples
host1(config)#interface atm 5/0.1host1(config)#interface atm 4/0/2.1Use the no version to remove the interface or subinterface. interface fastEthernet
host1(config)#interface fastEthernet 4/1Use the no version to remove IP from an interface or a 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. interface gigabitEthernet
- Use to select a Gigabit Ethernet interface or a 10-Gigabit Ethernet interface.
- To specify a Gigabit Ethernet interface for ERX-7xx models, ERX-14xx models, and ERX-310 routers, use the slot/port[.subinterface ] format.
- To specify a Gigabit Ethernet interface or a 10-Gigabit Ethernet interface for E120 and E320 routers, use the slot/adapter/port[.subinterface ] format.
- For more information, see JUNOSe Physical Layer Configuration Guide, Chapter 5, Configuring Ethernet Interfaces.
- Examples
host1(config)#interface gigabitEthernet 1/0host1(config)#interface gigabitEthernet 4/0/1host1(config)#interface tenGigabitEthernet 4/0/1Use 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 subinterface if the one above it still exists. ip address
host1(config-if)#ip address 192.1.1.1 255.255.255.0Use the no version to remove an IP address or disable IP processing. pppoe auto-configure
- Use to set up the router to dynamically create PPPoE subinterfaces on the PPPoE major interfaces.
- Example
host1(config-subif)#pppoe auto-configureUse the no version to remove this configuration. pppoe profile
- Use to assign a profile to a static PPPoE major interface. The profile configuration is used to dynamically configure an upper bridged Ethernet, IP, PPP, or PPPoE interface.
- Specify a profile name with up to 80 alphanumeric characters.
- The default encapsulation type, any, applies to any autoconfigured encapsulation that does not have a specific profile assignment.
- Examples
host1(config-subif)#pppoe profile pppoeProfile4host1(config-if)#pppoe profile any anyProfileUse the no version to remove the profile assignment from the interface. svlan ethertype
- Use to assign an Ethertype value for the S-VLAN subinterface.
- Choose one of the following Ethertype values:
- 8100Specifies Ethertype value 0x8100, as defined in IEEE Standard 802.1q
- 9100Specifies Ethertype value 0x9100, which is the default
- 9200Specifies Ethertype value 0x9200
- Use an Ethertype value that matches the Ethertype value set on the customer premises equipment (CPE) to which your router connects.
- Example
host1(config-if)#svlan ethertype 8100Use the no version to restore the default value, 9100. svlan id
- Use to assign S-VLAN IDs and VLAN IDs to VLAN subinterfaces.
- Use S-VLAN ID and VLAN ID numbers that are in the range 04095 and that are unique within the Ethernet interface.
- Issue the svlan id command before any upper bindings are made, such as IP or PPPoE.
- Example
host1(config-if)#svlan id 4 255There is no no version. vlan id
- Use to specify the VLAN ID.
- Use a VLAN ID that is in the range 04095 and is unique within the Ethernet interface.
- Issue the vlan id command before any upper bindings are made, such as IP or PPPoE.
- Use the optional keyword untagged to specify that frames be sent untagged. The keyword is valid only for VLAN ID 0, which can receive tagged frames but sends out untagged frames.
- Example
host1(config-if)#vlan id 400There is no no version. Configuring Encapsulation Type Lockout for PPPoE Clients
In configurations with dynamic PPPoE subinterfaces over static PPPoE major interfaces, you can configure dynamic encapsulation type lockout for the PPPoE clients associated with a dynamic PPPoE subinterface column. Using this feature enables you to temporarily prevent the static PPPoE major interface from autodetecting, accepting, and creating dynamic PPPoE subinterface columns for a configurable time period.
By default, encapsulation type lockout is disabled for PPPoE clients. To configure a lockout time range for the PPPoE clients associated with the dynamic PPPoE subinterface columns on the PPPoE major interface, use the pppoe auto-configure command with the lockout-time keyword. You can also use the show pppoe interface lockout-time command to display detailed information about the current lockout condition for each PPPoE client, and the pppoe clear lockout interface command to clear (reset) the lockout condition for an individual PPPoE client.
For illustrations of the interface stacking in dynamic PPPoE over static PPPoE configurations, see Figure 42, Figure 43, Figure 44, and Figure 45.
Differences from Lockout Configuration for PPPoE over Static ATM
Table 24 lists the important differences between how encapsulation type lockout works for dynamic PPPoE over static PPPoE configurations and how lockout works for dynamic PPPoE over static ATM 1483 configurations.
Encapsulation type lockout is enabled by default with a lockout time range of 1300 seconds.
You must explicitly configure encapsulation type lockout for PPPoE clients with the pppoe auto-configure command.
PPPoE clients automatically inherit their lockout setting from the lockout parameters configured for the underlying static ATM 1483 subinterface with the auto-configure command.
Currently, the dynamic PPPoE interface layer must be configured directly above the static ATM 1483 interface layer to support inheritance of lockout parameters. For an illustration of dynamic PPPoE over static ATM 1483 interface stacking, see Figure 41.
For more information about the benefits and operation of dynamic encapsulation type lockout, see Encapsulation Type Lockout. In particular, see Guidelines for Configuring Encapsulation Type Lockout for information about the rules that apply when you configure the lockout time. These rules are common to both dynamic PPPoE over static PPPoE configurations and dynamic PPPoE over static ATM 1483 configurations.
Configuration Tasks
Configuring dynamic encapsulation type lockout for PPPoE clients includes the following tasks:
- Configuring and verifying lockout for PPPoE clients
- Clearing the lockout condition for a specific PPPoE client
Configuring and Verifying Lockout for PPPoE Clients
To configure and verify encapsulation type lockout for a PPPoE client:
For example, the following commands configure a static ATM 1483 subinterface and corresponding ATM PVC.
host1(config)#interface atm 3/0host1(config-if)#interface atm 3/0.101host1(config-subif)#atm pvc 10 10 20 aal5snap
- Create a static PPPoE major interface.
host1(config-subif)#encapsulation pppoe- Configure the PPPoE major interface to detect and accept dynamic PPPoE subinterfaces. Use the lockout-time keyword to configure a nondefault lockout time range for the PPPoE clients associated with the dynamic PPPoE subinterface column.
For example, the following command configures a lockout time in the range 560 seconds for the PPPoE clients associated with the dynamic PPPoE subinterface column on the PPPoE major interface.
host1(config-subif)#pppoe auto-configure lockout-time 5 60
- Assign a profile to the PPPoE major interface.
host1(config-subif)#pppoe profile pppoeLockoutProfileFor information about creating and using profiles, see Configuring a Dynamic Interface from a Profile.
- To display summary information about the lockout configuration, use the show pppoe interface command. (The following example shows only the portion of the command display relevant to the PPPoE lockout configuration.)
host1#show pppoe interface atm 3/0.101PPPoE interface ATM 3/0.101 is operStatusUp (dynamic). . .Lockout Configuration (seconds): Min 5, Max 60Total clients in active lockouts: 0Total clients in lockout grace period: 0To display detailed information about the current lockout condition for each PPPoE client associated with a specific source media access control (MAC) address, use the show pppoe interface lockout-time command. host1#show pppoe interface atm 3/0.101 lockout-timePPPoE interface ATM 3/0.101Lockout Configuration (seconds): Min 5, Max 60Total clients in active lockout: 0Total clients in lockout grace period: 0Client Address Current Elapsed Next-------------- ------- ------- ----0090.1a10.165e 0 0 5For a description of the fields in the command display, see show pppoe interface and show pppoe interface lockout-time.
pppoe auto-configure lockout-time
- Use to specify the lockout time range for the PPPoE clients associated with the dynamic PPPoE subinterface column on the static PPPoE major interface.
- Dynamic encapsulation type lockout is disabled for PPPoE clients by default.
- Configuring dynamic encapsulation type lockout temporarily prevents the static PPPoE major interface from detecting, accepting, and creating dynamic PPPoE subinterface columns until the lockout time expires.
- Use the lockout-time keyword to set the minimum lockout time and maximum lockout time, each of which can be in the range 186400 seconds (24 hours).
- Use the none keyword to disable lockout for the PPPoE clients associated with the dynamic PPPoE subinterface column on the static PPPoE major interface.
- For information about the rules that apply when you configure the lockout time for dynamic encapsulation type lockout, see Guidelines for Configuring Encapsulation Type Lockout.
- Example 1Enables dynamic creation of PPPoE subinterfaces on the static PPPoE major interface using a nondefault lockout time range, 10120 seconds
host1(config-subif)#pppoe auto-configure lockout-time 10 120Example 2Disables dynamic encapsulation type lockout for any PPPoE clients associated with the dynamic PPPoE subinterface column on the static PPPoE major interface host1(config-subif)#pppoe auto-configure lockout-time noneExample 3Terminates dynamic creation of PPPoE subinterfaces on the static PPPoE major interface and, by extension, disables dynamic encapsulation type lockout for this interface host1(config-subif)#no pppoe auto-configureUse the no pppoe auto-configure command to terminate dynamic creation of PPPoE subinterfaces on the static PPPoE major interface. Clearing the Lockout Condition for a PPPoE Client
You can use the pppoe clear lockout interface command to clear the lockout condition for an individual PPPoE client associated with a dynamic PPPoE subinterface column on a static PPPoE major interface. To identify the PPPoE client, you must specify its source MAC address.
To clear the current lockout condition for a PPPoE client:
- Display the source MAC address assigned to the PPPoE client by issuing one of the following show commands:
- To display the source MAC address when there is no available PPPoE session in progress, use the show pppoe interface lockout-time command.
host1#show pppoe interface atm 3/0.101 lockout-timePPPoE interface ATM 3/0.101Lockout Configuration (seconds): Min 5, Max 60Total clients in active lockout: 0Total clients in lockout grace period: 0Client Address Current Elapsed Next-------------- ------- ------- ----0090.1a10.165e 0 0 5To display the source MAC address when a subscriber is connected to the router through an available PPPoE session, use either the show pppoe interface lockout-time command or the show pppoe subinterface full command. (The following example shows only the portion of the command display relevant to the source MAC address.) host1#show pppoe subinterface full...PPPoE subinterface ATM 3/0.101 has source MAC address 0090.1a10.165e...For a description of the fields in the command display, see show pppoe interface lockout-time and show pppoe subinterface.
- Clear the current lockout condition for the PPPoE client associated with the specified source MAC address on the static PPPoE major interface.
host1#pppoe clear lockout interface atm 3/0.101 0090.1a10.165eIf the specified PPPoE client is undergoing active lockout or is in a lockout grace period, issuing the pppoe clear lockout interface command causes the router to reset the current lockout condition and start the next lockout interval at the minimum configured lockout time.
The lockout grace period occurs when the time between lockout events is greater than either 15 minutes or the maximum lockout time. When a PPPoE client is in a lockout grace period, the router resets the number of consecutive lockout events to 1. (For more information, see Guidelines for Configuring Encapsulation Type Lockout.)
pppoe clear lockout interface
- Use to clear the lockout condition for the PPPoE client associated with the specified source MAC address.
- For PPPoE clients undergoing active lockout or in a lockout grace period, issuing the pppoe clear lockout interface command causes the router to reset the current lockout condition and start the next lockout interval at the minimum configured lockout time.
- You must specify the following:
- interfaceTypeOne of the following interface types listed in Interface Types and Specifiers in JUNOSe Command Reference Guide, About This Guide:
- interfaceSpecifierParticular interface; format varies according to interface type; see Interface Types and Specifiers in JUNOSe Command Reference Guide, About This Guide for information
- macAddressSource MAC address of the PPPoE client, specified as a dotted triple of four-digit hexadecimal numbers
host1#pppoe clear lockout interface gigabitEthernet 2/1.1 1011.22c2.333dThere is no no version.