Related Documentation
- J, M, MX, T Series
- PPPoE Overview
- Additional Information
- Junos® OS Ethernet Interfaces
Configuring PPPoE
To configure PPPoE on a J Series Services Router, perform the following tasks:
- Configure PPPoE encapsulation for an Ethernet interface or Ethernet over ATM encapsulation for an ATM-over-ADSL interface.
- If you are configuring ATM over ADSL, configure LLC encapsulation on the logical interface.
- Specify the logical Ethernet interface or the logical ATM interface as the underlying interface for the PPPoE session.
- Configure the operational mode as client.
- Identify the access concentrator by a unique name.
- Optionally, specify how many seconds to wait before attempting to reconnect.
- Provide a name for the type of service provided by the access concentrator.
- Optionally, configure the maximum transmission unit (MTU) of the interface.
- Configure the PPPoE interface address.
- Configure the destination PPPoE interface address.
- Optionally, configure the MTU size for the protocol family.
- Optionally, disable the sending of keepalive messages on the logical interface.
To configure PPPoE on an M120 or M320 Multiservice Edge Router or MX Series Universal Edge Router operating as an access concentrator, perform the following tasks:
- Configure PPPoE encapsulation for an Ethernet interface.
- Specify the logical Ethernet interface as the underlying interface for the PPPoE session.
- Optionally, configure the maximum transmission unit (MTU) of the interface.
- Configure the operational mode as server.
- Configure the PPPoE interface address.
- Configure the destination PPPoE interface address.
- Optionally, configure the MTU size for the protocol family.
- Optionally, configure one or more PPPoE service name tables and the action taken for each service in the tables.
- Optionally, disable the sending of PADS messages that contain certain error tags.
Setting the Appropriate Encapsulation on the PPPoE Interface
For PPPoE on an Ethernet interface, you must configure encapsulation on the logical interface and use PPP over Ethernet encapsulation.
For PPPoE on an ATM-over-ADSL interface, you must configure encapsulation on both the physical and logical interfaces. To configure encapsulation on an ATM-over-ADSL physical interface, use Ethernet over ATM encapsulation. To configure encapsulation on an ATM-over-ADSL logical interface, use PPPoE over AAL5 LLC encapsulation. LLC encapsulation allows a single ATM virtual connection to transport multiple protocols.
![]() | Note: PPPoE encapsulation is not supported on an M120 or M320 router on an ATM2 IQ interface. |
When you configure a point-to-point encapsulation such as PPP on a physical interface, the physical interface can have only one logical interface (only one unit statement) associated with it.
To configure physical interface properties, include the encapsulation statement at the [edit interfaces interface-name] hierarchy level:
To configure logical interface encapsulation properties, include the encapsulation statement:
You can include this statement at the following hierarchy levels:
- [edit interfaces interface-name unit logical-unit-number]
- [edit logical-systems logical-system-name interfaces interface-name unit logical-unit-number]
Perform the task appropriate for the interface on which you are using PPPoE:
- Configuring PPPoE Encapsulation on an Ethernet Interface
- Configuring PPPoE Encapsulation on an ATM-over-ADSL Interface
Configuring PPPoE Encapsulation on an Ethernet Interface
Both the client and the server must be configured to support PPPoE. To configure PPPoE encapsulation on an Ethernet interface, include the encapsulation statement:
You can include this statement at the following hierarchy levels:
- [edit interfaces pp0 unit logical-unit-number]
- [edit logical-systems logical-system-name interfaces pp0 unit logical-unit-number]
Configuring PPPoE Encapsulation on an ATM-over-ADSL Interface
To configure the PPPoE encapsulation on a ATM-over-ADSL interface, perform the following steps:
- Include the encapsulation statement at the [edit interfaces interface-name] hierarchy
level, and specify ethernet-over-atm:[edit interfaces pp0]encapsulation ethernet-over-atm;
- Configure LLC encapsulation on the logical interface by
including the encapsulation statement and specifying ppp-over-ether-over-atm-llc:encapsulation ppp-over-ether-over-atm-llc;
You can include this statement at the following hierarchy levels:
- [edit interfaces pp0 unit logical-unit-number]
- [edit logical-systems logical-system-name interfaces pp0 unit logical-unit-number]
Configuring a PPPoE Interface
- Configuring the PPPoE Underlying Interface
- Identifying the Access Concentrator
- Configuring the PPPoE Automatic Reconnect Wait Timer
- Configuring the PPPoE Service Name
- Configuring the PPPoE Server Mode
- Configuring the PPPoE Client Mode
- Configuring the PPPoE Source and Destination Addresses
- Deriving the PPPoE Source Address from a Specified Interface
- Configuring the PPPoE IP Address by Negotiation
- Configuring the Protocol MTU PPPoE
- Example: Configuring a PPPoE Client Interface on a J Series Services Router
- Example: Configuring a PPPoE Server Interface on an M120 or M320 Router
![]() | Note: When you configure a static PPPoE logical interface, you must include the pppoe-options subhierarchy at the [edit interfaces pp0 unit logical-unit-number] hierarchy level or at the [edit logical-systems logical-system-name interfaces pp0 unit logical-unit-number] hierarchy level. If you omit the pppoe-options subhierarchy from the configuration, the commit operation fails. |
Configuring the PPPoE Underlying Interface
To configure the underlying Fast Ethernet, Gigabit Ethernet, 10-Gigabit Ethernet, or ATM interface, include the underlying-interface statement:
You can include this statement at the following hierarchy levels:
- [edit interfaces pp0 unit logical-unit-number pppoe-options]
- [edit logical-systems logical-system-name interfaces pp0 unit logical-unit-number pppoe-options]
Specify the logical Ethernet, Fast Ethernet, Gigabit Ethernet, 10-Gigabit Ethernet, or ATM interface as the underlying interface—for example, at-0/0/1.0 (ATM VC), fe-1/0/1.0 (Fast Ethernet interface), or ge-2/0/0 (Gigabit Ethernet interface).
Identifying the Access Concentrator
When configuring a PPPoE client, identify the access concentrator by a unique name by including the access-concentrator statement:
You can include this statement at the following hierarchy levels:
- [edit interfaces pp0 unit logical-unit-number pppoe-options]
- [edit logical-systems logical-system-name interfaces pp0 unit logical-unit-number pppoe-options]
Configuring the PPPoE Automatic Reconnect Wait Timer
By default, after a PPPoE session is terminated, the session attempts to reconnect immediately. When configuring a PPPoE client, you can specify how many seconds to wait before attempting to reconnect, by including the auto-reconnect statement:
You can include this statement at the following hierarchy levels:
- [edit interfaces pp0 unit logical-unit-number pppoe-options]
- [edit logical-systems logical-system-name interfaces pp0 unit logical-unit-number pppoe-options]
You can configure the reconnection attempt to occur in 0 through 4,294,967,295 seconds after the session terminates.
Configuring the PPPoE Service Name
When configuring a PPPoE client, identify the type of service provided by the access concentrator—such as the name of the Internet service provider (ISP), class, or quality of service—by including the service-name statement:
You can include this statement at the following hierarchy levels:
- [edit interfaces pp0 unit logical-unit-number pppoe-options]
- [edit logical-systems logical-system-name interfaces pp0 unit logical-unit-number pppoe-options]
Configuring the PPPoE Server Mode
When configuring a PPPoE server, identify the mode by including the server statement:
You can include this statement at the following hierarchy levels:
- [edit interfaces pp0 unit logical-unit-number pppoe-options]
- [edit logical-systems logical-system-name interfaces pp0 unit logical-unit-number pppoe-options]
Configuring the PPPoE Client Mode
When configuring a PPPoE client, identify the mode by including the client statement:
You can include this statement at the following hierarchy levels:
- [edit interfaces pp0 unit logical-unit-number pppoe-options]
- [edit logical-systems logical-system-name interfaces pp0 unit logical-unit-number pppoe-options]
Configuring the PPPoE Source and Destination Addresses
When configuring a PPPoE client or server, assign source and destination addresses—for example, 192.168.1.1/32 and 192.168.1.2. To assign the source and destination address, include the address and destination statements:
You can include these statements at the following hierarchy levels:
- [edit interfaces pp0.0 family inet]
- [edit logical-systems logical-system-name interfaces pp0.0 family inet]
Deriving the PPPoE Source Address from a Specified Interface
For a router supporting PPPoE, you can derive the source address from a specified interface—for example, the loopback interface, lo0.0—and assign a destination address—for example, 192.168.1.2. The specified interface must include a logical unit number and have a configured IP address. To derive the source address and assign the destination address, include the unnumbered-address and destination statements:
You can include these statements at the following hierarchy levels:
- [edit interfaces pp0.0 family inet]
- [edit logical-systems logical-system-name interfaces pp0.0 family inet]
Configuring the PPPoE IP Address by Negotiation
You can have the PPPoE client router obtain an IP address by negotiation with the remote end. This method might require the access concentrator to use a RADIUS authentication server. To obtain an IP address from the remote end by negotiation, include the negotiate-address statement:
You can include this statement at the following hierarchy levels:
- [edit interfaces pp0.0 family (inet | inet6 | mpls)]
- [edit logical-systems logical-system-name interfaces pp0.0 family (inet | inet6 | mpls)]
Configuring the Protocol MTU PPPoE
You can configure the maximum transmission unit (MTU) size for the protocol family. Specify a range from 0 through 5012 bytes. Ensure that the size of the media MTU is equal to or greater than the sum of the protocol MTU and the encapsulation overhead. To set the MTU, include the mtu statement:
You can include this statement at the following hierarchy levels:
- [edit interfaces pp0.0 family (inet | inet6 | mpls)]
- [edit logical-systems logical-system-name interfaces pp0.0 family (inet | inet6 | mpls)]
You can modify the MTU size of the interface by including the mtu bytes statement at the [edit interfaces pp0] hierarchy level:
The default media MTU size used and the range of available sizes on a physical interface depends on the encapsulation used on that interface.
Example: Configuring a PPPoE Client Interface on a J Series Services Router
Configure a PPPoE over ATM-over-ADSL interface:
Example: Configuring a PPPoE Server Interface on an M120 or M320 Router
Configure a PPPoE server over a Gigabit Ethernet interface:
Related Documentation
- J, M, MX, T Series
- PPPoE Overview
- Additional Information
- Junos® OS Ethernet Interfaces
Published: 2012-12-11
Related Documentation
- J, M, MX, T Series
- PPPoE Overview
- Additional Information
- Junos® OS Ethernet Interfaces