Point-to-Point Protocol over Ethernet (PPPoE)combines PPP, with the Ethernet link-layer protocol that allows usersto connect to a network of hosts over a bridge or access concentrator.The below topics discuss the overview of PPPoE interfaces, PPPoE Ethernetinterfaces, PPPoE ATM-over-ADSL, and ATM-over-SHDSL Interfaces, CHAPaunthentication on PPPoE, displaying statistics, setting tracing optionsfor PPPoE and verification of these interfaces on security devices.
Understanding Point-to-Point Protocol over Ethernet
Point-to-Point Protocol over Ethernet (PPPoE)combines PPP, which typically runs over broadband connections, withthe Ethernet link-layer protocol that allows users to connect to anetwork of hosts over a bridge or access concentrator. PPPoE enablesservice providers to maintain access control through PPP connectionsand also manage multiple hosts at a remote site.
PPPoE connects multiple hosts on an Ethernet LAN to a remotesite through a single customer premises equipment (CPE) device—aJuniper Networks device. Hosts share a common digital subscriber line(DSL), a cable modem, or a wireless connection to the Internet.
To use PPPoE, you must initiate a PPPoE session, encapsulatePoint-to-Point Protocol (PPP) packets over Ethernet, and configurethe device as a PPPoE client. To provide a PPPoE connection, eachPPP session must learn the Ethernet address of the remote peer andestablish a unique session identifier during the PPPoE discovery andsession stages.
Note:
Juniper Networks devices with asymmetric digital subscriberline (ADSL) or symmetric high-speed DSL (SHDSL) interfaces can usePPPoE over Asynchronous Transfer Mode (ATM) to connect through DSLlines only, not for direct ATM connections.
PPPoE has two stages, the discovery stage and the PPPoE sessionstage. In the discovery stage, the client discovers the access concentratorby identifying the Ethernet media access control (MAC) address ofthe access concentrator and establishing a PPPoE session ID. In thesession stage, the client and the access concentrator build a point-to-pointconnection over Ethernet, based on the information collected in thediscovery stage.
This topic contains the following sections:
- PPPoE Discovery Stage
- PPPoE Session Stage
PPPoE Discovery Stage
To initiate a PPPoE session, a host must first identify theEthernet MAC address of the remote peer and establish a unique PPPoEsession ID for the session. Learning the remote Ethernet MAC addressis called PPPoE discovery.
During the PPPoE discovery process, the host does not discovera remote endpoint on the Ethernet network. Instead, the host discoversthe access concentrator through which all PPPoE sessions are established.Discovery is a client/server relationship, with the host (a devicerunning Junos OS) acting as the client and the access concentratoracting as the server. Because the network might have more than oneaccess concentrator, the discovery stage allows the client to communicatewith all of them and select one.
Note:
A device cannot receive PPPoE packets from two different accessconcentrators on the same physical interface.
The PPPoE discovery stage consists of the following steps:
PPPoE Active Discovery Initiation (PADI)—The clientinitiates a session by broadcasting a PADI packet to the LAN to requesta service.
PPPoE Active Discovery Offer (PADO)—Any access concentrator thatcan provide the service requested by the client in the PADI packetreplies with a PADO packet that contains its own name, the unicastaddress of the client, and the service requested. An access concentrator can alsouse the PADO packet to offer other services to the client.
PPPoE Active Discovery Request (PADR)—From the PADOsit receives, the client selects one access concentrator based on its name or theservices offered and sends it a PADR packet to indicate the serviceor services needed.
PPPoE Active Discovery Session-Confirmation (PADS)—Whenthe selected access concentrator receives the PADR packet, it accepts or rejectsthe PPPoE session:
To accept the session, the access concentrator sends the client a PADSpacket with a unique session ID for a PPPoE session and a servicename that identifies the service under which it accepts the session.
To reject the session, the access concentrator sends the client a PADSpacket with a service name error and resets the session ID to zero.
PPPoE Session Stage
The PPPoE session stage starts after the PPPoE discovery stageis over. The access concentrator can start the PPPoE session afterit sends a PADS packet to the client, or the client can start thePPPoE session after it receives a PADS packet from the access concentrator.A device supports multiple PPPoE sessions on each interface, but nomore than 256 PPPoE sessions per device.
Each PPPoE session is uniquely identified by the Ethernet addressof the peer and the session ID. After the PPPoE session is established,data is sent as in any other PPP encapsulation. The PPPoE informationis encapsulated within an Ethernet frame and is sent to a unicastaddress. Magic numbers, echo requests, and all other PPP traffic behaveexactly as in normal PPP sessions. In this stage, both the clientand the server must allocate resources for the PPPoE logical interface.
After a session is established, the client or the access concentratorcan send a PPPoE Active Discovery Termination (PADT) packet anytimeto terminate the session. The PADT packet contains the destinationaddress of the peer and the session ID of the session to be terminated.After this packet is sent, the session is closed to PPPoE traffic.
Note:
If PPPoE session is already up and the user restarts the PPPoEdaemon, a new PPPoE daemon with a new PID starts while the existingsession is not terminated.
If PPPoE session is already down and user restarts the PPPoEdaemon, the PPPoE discovery establishes a new session.
The PPPoE session is not terminated for the following configurationchanges:
Changing idle time out value
Changing auto rec timer value
Deleting idle time out
Deleting auto rec timer
Add new auto rec time
Add new idle time out
Change negotiate address to static address
Change static ip address to a new static ip address
Changing default chap secrete
The PPPoE session is terminated for the following configurationchanges:
Add ac name
Delete chap ppp options
Add new chap ppp options
Configure uifd mac
Note:
When the MTU for an underlying physical interface is changed,it brings down the PPPoE session. The PPPoE MTU can be greater than1492 if the Ethernet or WAN connection supports RFC 4638 (Mini JumboFrames).
See Also
Understanding Physical Encapsulation on an Interface
Understanding PPPoE Interfaces
Understanding PPPoE Ethernet Interfaces
Understanding PPPoE ATM-over-ADSL and ATM-over-SHDSLInterfaces
Understanding CHAP Authentication on a PPPoE Interface
Understanding the PPPoE-BasedRadio-to-Router Protocol
Understanding PPPoE Interfaces
The device’s Point-to-Point Protocol over Ethernet(PPPoE) interface to the access concentrator can be a Fast Ethernetinterface, a Gigabit Ethernet interface, a redundant Ethernet interface,an ATM-over-ADSL interface, or an ATM-over-SHDSL interface. The PPPoEconfiguration is the same for all interfaces. The only differenceis the encapsulation for the underlying interface to the access concentrator:
If the interface is Ethernet, use a PPPoE encapsulation.
If the interface is ATM-over-ADSL or ATM-over-SHDSL, usea PPPoE over ATM encapsulation.
To configure a PPPoE interface, you create an interface witha logical interface unit 0, then specifya logical Ethernet or ATM interface as the underlying interface forthe PPPoE session. You then specify other PPPoE options, includingthe access concentrator and PPPoE session parameters.
Note:
PPPoE over redundant Ethernet (reth) interface is supportedon SRX100, SRX210, SRX220, SRX240, SRX300, SRX320, SRX340 and SRX650devices. (Platform support depends on the Junos OS release in yourinstallation.) This feature allows an existing PPPoE session to continuewithout starting a new PPP0E session in the event of a failover.
Example: Configuring PPPoE Interfaces
This example shows how to configure a PPPoEinterface.
- Requirements
- Overview
- Configuration
- Disabling the End-of-List Tag
Requirements
Before you begin, configure an Ethernet interface.See Example: Creating an Ethernet Interface.
Overview
In this example, you create the PPPoE interface pp0.0 and specifythe logical Ethernet interface ge-0/0/1.0 as the underlying interface.You also set the access concentrator, set the PPPoE session parameters,and set the MTU of the IPv4 family to 1492
.
Configuration
Procedure
- CLI Quick Configuration
- Step-by-Step Procedure
- Results
CLI Quick Configuration
To quickly configure this example, copy thefollowing command, paste it into a text file, remove any line breaks,change any details necessary to match your network configuration,copy and paste the command into the CLI at the [edit]
hierarchylevel, and then enter commit
from configuration mode.
set interfaces pp0 unit 0 pppoe-options underlying-interface ge-0/0/1.0 access-concentrator ispl.com auto-reconnect 100 idle-timeout 100 client service-name [email protected]set interfaces pp0 unit 0 family inet mtu 1492 negotiate-address
Step-by-Step Procedure
The following example requires you to navigate variouslevels in the configuration hierarchy. For instructions on how todo that, see Using the CLI Editor in ConfigurationMode.
To configure a PPPoE interface:
Create a PPPoE interface.
[edit]user@host# edit interfaces pp0 unit 0
Configure PPPoE options.
[edit interfaces pp0 unit 0]user@host# set pppoe-options underlying-interface ge-0/0/1.0 access-concentrator ispl.com auto-reconnect 100 idle-timeout 100 client service-name [email protected]
Configure the MTU.
[edit interfaces pp0 unit 0]user@host# set family inet mtu 1492
Note:
If you want to configure
mtu
to a value above1492 octets, then useppp-max-payload
option. Refer pppoe-options for more details.Configure the PPPoE interface address.
[edit interfaces pp0 unit 0]user@host# set family inet negotiate-address
Results
From configuration mode, confirm your configurationby entering the show interfaces pp0
command. If the outputdoes not display the intended configuration, repeat the configurationinstructions in this example to correct it.
[edit] user@host# show interfaces pp0
unit 0 { pppoe-options { underlying-interface ge-0/0/1.0; idle-timeout 100; access-concentrator ispl.com; service-name "[email protected]"; auto-reconnect 100; client; } family inet { mtu 1492; negotiate-address; } }
If you are done configuring the device, enter commit
from configuration mode.
Verification
Confirm that the configuration is working properly.
- Verifying PPPoE Interfaces
- Verifying PPPoE Sessions
- Verifying the PPPoE Version
- Verifying PPPoE Statistics
Verifying PPPoE Interfaces
- Purpose
- Action
Purpose
Verify that the PPPoE device interfaces are configuredproperly.
Action
From operational mode, enter the show interfacespp0
command.
user@host> show interfaces pp0Physical interface: pp0, Enabled, Physical link is Up Interface index: 67, SNMP ifIndex: 317 Type: PPPoE, Link-level type: PPPoE, MTU: 9192 Device flags : Present Running Interface flags: Point-To-Point SNMP-Traps Link type : Full-Duplex Link flags : None Last flapped : Never Input rate : 0 bps (0 pps) Output rate : 0 bps (0 pps) Logical interface pp0.0 (Index 1) (SNMP ifIndex 330) Flags: Point-To-Point SNMP-Traps 16384 Encapsulation: PPPoE PPPoE: State: SessionUp, Session ID: 3304, Session AC name: isp1.com, AC MAC address: 00:90:1a:40:f6:4c, Service name: [email protected], Configured AC name: isp1.com, Auto-reconnect timeout: 60 seconds Underlying interface: ge-5/0/0.0 (Index 71) Input packets : 23 Output packets: 22 Keepalive settings: Interval 10 seconds, Up-count 1, Down-count 3 Keepalive: Input: 16 (00:00:26 ago), Output: 0 (never) LCP state: Opened NCP state: inet: Opened, inet6: Not-configured, iso: Not-configured, mpls: Not-configured CHAP state: Success Protocol inet, MTU: 1492 Flags: Negotiate-Address Addresses, Flags: Kernel Is-Preferred Is-Primary Destination: 211.211.211.2, Local: 211.211.211.1
The output shows information about the physical and the logicalinterfaces. Verify the following information:
The physical interface is enabled and the link is up.
The PPPoE session is running on the correct logical interface.
For state, the state is active (up).
For underlying interface, the physical interface on whichthe PPPoE session is running is correct:
For an Ethernet connection, the underlying interface isFast Ethernet or Gigabit Ethernet—for example, ge-5/0/0.0.
For an ATM-over-ADSL or ATM-over-SHDSL connection, theunderlying interface is ATM—for example, at-2/0/0.0.
Verifying PPPoE Sessions
- Purpose
- Action
Purpose
Verify that a PPPoE session is running properly onthe logical interface.
Action
From operational mode, enter the show pppoe interfaces
command.
user@host> show pppoe interfacespp0.0 Index 67 State: Session up, Session ID: 31, Service name: [email protected], Configured AC name: isp1.com, Session AC name: belur, AC MAC address: 00:90:1a:40:f6:4e, Auto-reconnect timeout: 1 seconds, Underlying interface: ge-0/0/1.0 Index 69
The output shows information about the PPPoE sessions. Verifythe following information:
The PPPoE session is running on the correct logical interface.
For state, the session is active (up).
For underlying interface, the physical interface on whichthe PPPoE session is running is correct:
For an Ethernet connection, the underlying interface isFast Ethernet or Gigabit Ethernet—for example, ge-0/0/1.0.
For an ATM-over-ADSL or ATM-over-SHDSL connection, theunderlying interface is ATM—for example, at-2/0/0.0.
Note:
To clear a PPPoE session on the pp0.0 interface, use the clear pppoe sessions pp0.0
command. To clear all sessions onthe interface, use the clear pppoe sessions
command.
Verifying the PPPoE Version
- Purpose
- Action
Purpose
Verify the version information of the PPPoE protocolconfigured on the device interfaces.
Action
From operational mode, enter the show pppoe version
command.
user@host> show pppoe versionPoint-to-Point Protocol Over Ethernet, version 1. rfc2516 PPPoE protocol = Enabled Maximum Sessions = 256 PADI resend timeout = 2 seconds PADR resend timeout = 16 seconds Max resend timeout = 64 seconds Max Configured AC timeout = 4 seconds
The output shows PPPoE protocol information. Verify the followinginformation:
The correct version of the PPPoE protocol is configuredon the interface.
For PPPoE protocol, the PPPoE protocol is enabled.
Verifying PPPoE Statistics
- Purpose
- Action
Purpose
Verify the statistics information about PPPoE interfaces.
Action
From operational mode, enter the show pppoe statistics
command.
user@host> show pppoe statisticsActive PPPoE sessions: 4 PacketType Sent Received PADI 502 0 PADO 0 219 PADR 219 0 PADS 0 219 PADT 0 161 Service name error 0 0 AC system error 0 13 Generic error 0 0 Malformed packets 0 41 Unknown packets 0 0 Timeout PADI 42 PADO 0 PADR 0
The output shows information about active sessions on PPPoEinterfaces. Verify the following information:
Total number of active PPPoE sessions running on the interfac
For packet type, the number of packets of each type sentand received during the PPPoE session
Disabling the End-of-List Tag
During the PPPoE discovery stage, any accessconcentrator that can provide the service requested by the clientin the PADI packet replies with a PADO packet that contains its ownname, the unicast address of the client, and the service requested.An access concentrator can also use the PADO packet to offer otherservices to the client. When a client receives a PADO packet, andif it encounters the End-of-List
tag inthe PADO packet, tags after the End-of-List
tag are ignored and the complete information is not processed correctly.As a result, the PPPoE connection is not established correctly.
Starting in JunosOS Release 12.3X48-D10 you can avoid some PPPoE connection errorsby configuring the ignore-eol-tag
option to disable the End-of-List
tag in the PADO packet.
- Procedure
- Verifying That the End-of-List Tag Is Disabled
Procedure
- Step-by-Step Procedure
- Results
Step-by-Step Procedure
The following example requires you to navigate variouslevels in the configuration hierarchy. For instructions on how todo that, see Using the CLI Editor in ConfigurationMode.
To disable the End-of-List
tag:
Create a PPPoE interface.
[edit]
user@host# set interfaces pp0 unit 0
Configure PPPoE options.
[edit interfaces pp0 unit 0]
user@host# set pppoe-options ignore-eol-tag
Results
From configuration mode, confirm your configurationby entering the show interfaces pp0
command. If the outputdoes not display the intended configuration, repeat the configurationinstructions in this example to correct it.
[edit]user@host# show interfaces pp0
unit 0 {pppoe-options { ignore-eol-tag; }
If you are done configuring the device, enter commit
from configuration mode.
Verifying That the End-of-List Tag Is Disabled
- Purpose
- Action
Purpose
Verify the status of the End-of-List
tag in the PPPoE configuration.
Action
From operational mode, enter the show interfacespp0.0
command.
user@host> show pppoe interfaces pp0.0 Logical interface pp0.0 (Index 78) (SNMP ifIndex 541) Flags: Point-To-Point SNMP-Traps 0x0 Encapsulation: PPPoE PPPoE: State: SessionUp, Session ID: 3, Session AC name: cell, Remote MAC address: 00:26:88:f7:77:83, Configured AC name: None, Service name: None, Auto-reconnect timeout: Never, Idle timeout: Never, Underlying interface: ge-0/0/3.0 (Index 77) Ignore End-Of-List tag: Enable
user@host> show pppoe interfaces pp0.0 extensive pp0.0 Index 74 State: Session up, Session ID: 1, Service name: None, Session AC name: cell, Configured AC name: None, Remote MAC address: 00:26:88:f7:77:83, Session uptime: 00:02:03 ago, Auto-reconnect timeout: 10 seconds, Idle timeout: Never, Underlying interface: ge-0/0/3.0 Index 73 Ignore End-of-List tag: Enable
PacketType Sent Received PADI 23 0 PADO 0 5 PADR 11 0 PADS 0 2 PADT 2 0 Service name error 0 0 AC system error 0 0 Generic error 0 0 Malformed packets 0 0 Unknown packets 0 0 Timeout PADI 3 PADO 0 PADR 3 Receive Error Counters PADI 0 PADO 0 PADR 0 PADS 0
The output shows information about active sessions on PPPoEinterfaces. Verify that the Ignore End-of-List tag: Enable
option is set.
Understanding PPPoE Ethernet Interfaces
During a Point-to-Point Protocol over Ethernet (PPPoE) session,the device encapsulates each PPP frame in an Ethernet frame and transportsthe frames over an Ethernet loop. Figure 1 shows a typical PPPoE session between a device and an accessconcentrator on the Ethernet loop.
Figure 1: PPPoE Session on the EthernetLoop
To configure PPPoE on an Ethernet interface, you configure encapsulationon the logical interface.
Example: Configuring PPPoE Encapsulation on an Ethernet Interface
This example shows how to configure PPPoE encapsulationon an Ethernet interface.
- Requirements
- Overview
- Configuration
- Verification
Requirements
Before you begin:
Configure an Ethernet interface. See Example: Creating an Ethernet Interface.
Configure a PPPoE encapsulation interface. See Example: Configuring PPPoE Interfaces.
Overview
In this example, you configure PPPoE encapsulation on the ge-0/0/1interface.
Configuration
Procedure
Step-by-Step Procedure
To configure PPPoE encapsulation:
Enable PPPoE encapsulation on the interface.
[edit]user@host# set interfaces ge-0/0/1 unit 0 encapsulation ppp-over-ether
Commit the configuration if you are done configuring thedevice.
[edit]user@host# commit
Verification
To verify the configuration is working properly,enter the show interfaces ge-0/0/1
command.
Understanding PPPoE ATM-over-ADSL and ATM-over-SHDSL Interfaces
When an ATM network is configured with a point-to-point connection,Point-to-Point Protocol over Ethernet (PPPoE) can use ATM AdaptationLayer 5 (AAL5) for framing PPPoE-encapsulated packets. The AAL5 protocolprovides a virtual connection between the client and the server withinthe same network. The device encapsulates each PPPoE frame in anATM frame and transports each frame over an asymmetric digital subscriberline (ADSL) or symmetric high-speed DSL (SHDSL) loop and a digitalsubscriber line access multiplexer (DSLAM). For example, Figure 2 shows a typical PPPoE overATM session between a device and an access concentrator on an ADSLloop.
Figure 2: PPPoE Session on anADSL Loop
For PPPoE on an ATM-over-ADSL or ATM-over-SHDSL interface, youmust configure encapsulation on both the physical and logical interfaces.To configure encapsulation on an ATM-over-ADSL or ATM-over-SHDSL physicalinterface, use Ethernet over ATM encapsulation. To configure encapsulationon an ATM-over-ADSL or ATM-over-SHDSL logical interface, use PPPoE over AAL5 logical link control (LLC) encapsulation. LLCencapsulation allows a single ATM virtual connection to transportmultiple protocols.
Example: Configuring PPPoE Encapsulation on an ATM-over-ADSLInterface
This example shows how to configure a physicalinterface for Ethernet over ATM encapsulation and how to create alogical interface for PPPoE over LLC encapsulation.
- Requirements
- Overview
- Configuration
- Verification
Requirements
Before you begin:
Configure network interfaces. See Example: Creating an Ethernet Interface.
Configure PPPoE interfaces. See Example: Configuring PPPoE Interfaces.
Configure PPPoE encapsulation on an Ethernet interface.See Example: Configuring PPPoE Encapsulation on an EthernetInterface.
Overview
In this example, you configure the physical interface at-2/0/0for Ethernet over ATM encapsulation. As part of the configuration,you set the virtual path identifier (VPI) on an ATM-over-ADSL physicalinterface to 0, you set the ADSL operating mode to auto, and you setthe encapsulation type to ATM-over-ADSL. Then you create a logicalinterface for PPPoE over LLC encapsulation.
Configuration
Procedure
- CLI Quick Configuration
- Step-by-Step Procedure
- Results
CLI Quick Configuration
To quickly configure this example, copy thefollowing command, paste it into a text file, remove any line breaks,change any details necessary to match your network configuration,copy and paste the command into the CLI at the [edit]
hierarchylevel, and then enter commit
from configuration mode.
set interfaces at-2/0/0 atm-options vpi 0set interfaces at-2/0/0 dsl-options operating-mode auto set interfaces at-2/0/0 encapsulation ethernet-over-atm set interfaces at-2/0/0 unit 0 encapsulation ppp-over-ether-over-atm-llc vci 0.120
Step-by-Step Procedure
The following example requires you to navigate variouslevels in the configuration hierarchy. For instructions on how todo that, see Using the CLI Editor in ConfigurationMode.
To configure PPPoE encapsulation on an ATM-over-ADSL interface:
Configure the physical interface.
[edit]user@host# edit interfaces at-2/0/0
Set the VPI on the interface.
[edit interfaces at-2/0/0]user@host# set atm-options vpi 0
Configure the ADSL operating mode.
[edit interfaces at-2/0/0]user@host# set dsl-options operating-mode auto
Configure PPPoE encapsulation.
[edit interfaces at-2/0/0]user@host# set encapsulation ethernet-over-atm
Create a logical interface and configure LLC encapsulation.
[edit interfaces at-2/0/0]user@host# set unit 0 encapsulation ppp-over-ether-over-atm-llc vci 0.120
Results
From configuration mode, confirm your configurationby entering the show interfaces at-2/0/0
command. If theoutput does not display the intended configuration, repeat the configurationinstructions in this example to correct it.
[edit]user@host# show interfaces at-2/0/0
{ encapsulation ethernet-over-atm; atm-options { vpi 0; } dsl-options { operating-mode auto; } unit 0 { encapsulation ppp-over-ether-over-atm-llc; vci 0.120; } }
If you are done configuring the device, enter commit
from configuration mode.
Verification
Confirm that the configuration is working properly.
Verifying a PPPoE Configuration for an ATM-over-ADSL or ATM-over-SHDSLInterface
- Purpose
- Action
Purpose
Verify the PPPoE configuration for an ATM-over-ADSLor ATM-over-SHDSL interface.
Action
From operational mode, enter the show interfaces
command.
Understanding CHAP Authentication on a PPPoE Interface
For interfaces with Point-to-Point Protocol over Ethernet (PPPoE)encapsulation, you can configure interfaces to support the PPP ChallengeHandshake Authentication Protocol (CHAP). When you enable CHAP onan interface, the interface can authenticate its peer and be authenticatedby its peer.
If you set the passive
option to handle incomingCHAP packets only, the interface does not challenge its peer. However,if the interface is challenged, it responds to the challenge. If youdo not set the passive
option, the interface always challengesits peer.
You can configure Remote Authentication Dial-In User Service(RADIUS) authentication of PPP sessions using CHAP. CHAP enables youto send RADIUS messages through a routing instance to customer RADIUSservers in a private network.
Example: Configuring CHAP Authentication on a PPPoE Interface
This example shows how to configure CHAP authenticationon a PPPoE interface.
- Requirements
- Overview
- Configuration
- Verification
Requirements
Before you begin:
Configure an Ethernet interface. See Example: Creating an Ethernet Interface.
Configure a PPPoE interface. See Example: Configuring PPPoE Interfaces.
Configure PPPoE encapsulation on an ATM-over-ADSL interface.See Example: Configuring PPPoE Encapsulation on an ATM-over-ADSLInterface.
Overview
In this example, you configure a CHAP access profile, and thenapply it to the PPPoE interface pp0. You also configure the hostnameto be used in CHAP challenge and response packets, and set the passiveoption for handling incoming CHAP packets.
Configuration
Procedure
- CLI Quick Configuration
- Step-by-Step Procedure
- Results
CLI Quick Configuration
To quickly configure this example, copy thefollowing command, paste it into a text file, remove any line breaks,change any details necessary to match your network configuration,copy and paste the command into the CLI at the [edit]
hierarchylevel, and then enter commit
from configuration mode.
set access profile A-ppp-client client client1 chap-secret my-secretset interfaces pp0 unit 0 ppp-options chap access-profile A-ppp-client local-name A-ge-0/0/1.0 passive
Step-by-Step Procedure
The following example requires you to navigate variouslevels in the configuration hierarchy. For instructions on how todo that, see Using the CLI Editor in ConfigurationMode.
To configure CHAP on a PPPoE interface:
Configure a CHAP access profile.
[edit]user@host# set access profile A-ppp-client client client1 chap-secret my-secret
Enable CHAP options on the interface.
[edit]user@host# edit interfaces pp0 unit 0 ppp-options chap
Configure the CHAP access profile on the interface.
[edit interfaces pp0 unit 0 ppp-options chap]user@host# set access-profile A-ppp-client
Configure a hostname for the CHAP challenge and responsepackets.
[edit interfaces pp0 unit 0 ppp-options chap]user@host# set local-name A-ge-0/0/1.0
Set the passive option to handle incoming CHAP packetsonly.
[edit interfaces pp0 unit 0 ppp-options chap]user@host# set passive
Results
From configuration mode, confirm your configurationby entering the show interfaces
command. If the outputdoes not display the intended configuration, repeat the configurationinstructions in this example to correct it.
[edit] user@host# show interfaces
pp0 { unit 0 { ppp-options { chap { access-profile A-ppp-client; local-name A-ge-0/0/1.0; passive; } } }}
If you are done configuring the device, enter commit
from configuration mode.
Verification
Confirm that the configuration is working properly.
Verifying CHAP Authentication
- Purpose
- Action
Purpose
Verify that CHAP is enabled on the interface.
Action
From operational mode, enter the show interfaces
command.
Verifying Credit-Flow Control
- Purpose
- Action
Purpose
Display PPPoE credit-flow control information aboutcredits on each side of the PPPoE session when credit processing isenabled on the interface.
Action
user@host> show pppoe interface detail
pp0.51 Index 73 State: Session up, Session ID: 3, Service name: None, Configured AC name: None, Session AC name: None, Remote MAC address: 00:22:83:84:2e:81, Session uptime: 00:05:48 ago, Auto-reconnect timeout: Never, Idle timeout: Never, Underlying interface: ge-0/0/4.1 Index 72 PADG Credits: Local: 12345, Remote: 6789, Scale factor: 128 bytes PADQ Current bandwidth: 750 Kbps, Maximum 1000 Kbps Quality: 85, Resources 65, Latency 100 msec. Dynamic bandwidth: 3 Kbpspp0.1000 Index 71 State: Down, Session ID: 1, Service name: None, Configured AC name: None, Session AC name: None, Remote MAC address: 00:00:00:00:00:00, Auto-reconnect timeout: Never, Idle timeout: Never, Underlying interface: ge-0/0/1.0 Index 70 PADG Credits: enabled Dynamic bandwidth: enabled
Verifying PPPoE Interfaces
- Purpose
- Action
Purpose
Display PPPoE interfaces information.
Action
To display PPPoE interface information:
user@host> show pppoe interfaces pp0.51 detail
pp0.51 Index 75 State: Session up, Session ID: 1, Service name: None, Configured AC name: None, Session AC name: None, Remote MAC address: 00:11:22:33:44:55, Session uptime: 00:04:18 ago, Auto-reconnect timeout: Never, Idle timeout: Never, Underlying interface: ge-0/0/1.0 Index 70 PADQ Current bandwidth: 750 Kbps, Maximum 1000 Kbps Quality: 85, Resources 65, Latency 100 msec. Dynamic bandwidth: 3 Kbps
To display PPPoE terse interface information:
user@host> show pppoe interfaces terse pp0.51
Interface Admin Link Proto Local Remote pp0.51 up up inet 5.1.1.1 --> 5.1.1.2 inet6 fe80::21f:12ff:fed2:2918/64 feee::5:1:1:1/126
Verifying R2CP Interfaces
- Purpose
- Action
Purpose
Display R2CP interfaces information.
Action
To display R2CP interface information:
root@host> show r2cp interfaces
Interface: ge-0/0/3.51 Nodes: 0
To display R2CP information:
root@host> show r2cp radio extensive
Node Packet Type Sent Received Errors MIM - 1 0 ROM 1 - - Heartbeats 0 0 0 Node Term 0 0 0 Node Term Ack 0 0 - Heartbeat Timeouts 0 Node Term Timeouts 0 Session Packet Type Sent Received Errors Init - 1 0 Init ACK 1 - - Update - 0 0 Terminate 0 0 0 Terminate ACK 0 0 0 Terminate Timeouts 0
To display R2CP session information:
root@host> show r2cp sessions extensive
Session: 1 Destination MAC address 01:02:03:04:05:06 Status: Established VLANs 201 Virtual channel: 2 Session Update: last received: 3.268 seconds Current bandwidth: 22000 Kbps, Maximum 22000 Kbps Quality: 100, Resources 100, Latency 100 msec. Effective bandwidth: 952 Kbps, last change: 51.484 seconds Updates below threshold: 1 Session Packet Type Sent Received Errors Init - 1 0 Init ACK 1 - - Update - 0 0 Terminate 0 0 0 Terminate ACK 0 0 0 Terminate Timeouts 0
Displaying Statistics for PPPoE
- Purpose
- Action
Purpose
Display PPPoE statistics.
Action
user@host> show interfaces pp0.51 statistics
Logical interface pp0.51 (Index 75) (SNMP ifIndex 137) Flags: Point-To-Point SNMP-Traps 0x0 Encapsulation: PPPoE PPPoE: State: SessionUp, Session ID: 1, Session AC name: None, Remote MAC address: 00:22:83:84:2f:03, Underlying interface: ge-0/0/4.1 (Index 74) Input packets : 20865 Output packets: 284636 Keepalive settings: Interval 10 seconds, Up-count 1, Down-count 3 Keepalive: Input: 0 (never), Output: 943 (00:00:06 ago) LCP state: Opened NCP state: inet: Opened, inet6: Opened, iso: Not-configured, mpls: Not-configured CHAP state: Closed PAP state: Closed Security: Zone: Null Protocol inet, MTU: 1492 Flags: None Addresses, Flags: Is-Preferred Is-Primary Destination: 5.1.1.2, Local: 5.1.1.1 Protocol inet6, MTU: 1492 Flags: None Addresses, Flags: Is-Preferred Destination: fe80::/64, Local: fe80::21f:12ff:fed2:2918 Addresses, Flags: Is-Preferred Is-Primary Destination: feee::5:1:1:0/126, Local: feee::5:1:1:1
Setting Tracing Options for PPPoE
To trace the operations of the router’s PPPoE process,include the traceoptions statement at the [edit protocols pppoe] hierarchylevel:
[edit protocols pppoe]traceoptions { file filename <files number> <matchregular-expression> <sizesize> <world-readable| no-world-readable>; flag flag; level severity-level; no-remote-trace;}
To specify more than one tracing operation, include multiple flag
statements.
You can specify the following flags in the traceoptions
statement:
all
—All areas of codeconfig
—Configuration codeevents
—Event codegres
—Gres codeinit
—Initialization codeinterface-db
—Interface database codememory
—Memory management codeprotocol
—PPPoE protocol processing codertsock
—Routing socket codesession-db
—Session management codesignal
—Signal handling codestate
—State handling codetimer
—Timer codeui
—User interface code
Change History Table
Feature support is determined by the platform and release you are using. Use Feature Explorer to determine if a feature is supported on your platform.
Release
Description
12.3X48-D10
Starting in JunosOS Release 12.3X48-D10 you can avoid some PPPoE connection errorsby configuring the ignore-eol-tag
option to disable the End-of-List
tag in the PADO packet.