Example: Configuring PPPoE Interfaces
This example shows how to configure a PPPoE interface.
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 specify the 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
Step-by-Step Procedure
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 video@ispl.com
- Configure the MTU. [edit interfaces pp0 unit 0]user@host# set family inet mtu 1492
- Configure the PPPoE interface address. [edit interfaces pp0 unit 0]user@host# set family inet negotiate-address
- Commit the configuration if you are done
configuring the device. [edit interfaces pp0 unit 0]user@host# commit
Verification
To confirm that the configuration is working properly, perform these tasks:
- Verifying PPPoE Interfaces
- Verifying PPPoE Sessions
- Verifying the PPPoE Version
- Verifying PPPoE Statistics
Verifying PPPoE Interfaces
Purpose
Verify that the PPPoE device interfaces are configured properly.
Action
From operational mode, enter the show interfaces pp0 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: video@isp1.com, 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
Meaning
The output shows information about the physical and the logical interface. Verify the following information:
- The physical interface is enabled and the link is up.
- The PPPoE session is running on the correct logical interface.
- Under State, the state is active (up).
- Under Underlying interface, the physical interface
on which the PPPoE session is running is correct:
- For an Ethernet connection, the underlying interface is Fast Ethernet or Gigabit Ethernet—for example, ge-5/0/0.0.
- For an ATM-over-ADSL or ATM-over-SHDSL connection, the underlying interface is ATM—for example, at-2/0/0.0.
Verifying PPPoE Sessions
Purpose
Verify that a PPPoE session is running properly on the 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: video@isp1.com, 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
Meaning
The output shows information about the PPPoE sessions. Verify the following information:
- The PPPoE session is running on the correct logical interface.
- Under State, the session is active (up).
- Under Underlying interface, the physical interface
on which the PPPoE session is running is correct:
- For an Ethernet connection, the underlying interface is Fast Ethernet or Gigabit Ethernet—for example, ge-0/0/1.0.
- For an ATM-over-ADSL or ATM-over-SHDSL connection, the underlying 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 on the interface, use the clear pppoe sessions command. |
Verifying the PPPoE Version
Purpose
Verify the version information of the PPPoE protocol configured 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
Meaning
The output shows PPPoE protocol information. Verify the following information:
- The correct version of the PPPoE protocol is configured on the interface.
- Under PPPoE protocol, the PPPoE protocol is enabled.
Verifying PPPoE Statistics
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
Meaning
The output shows information about active sessions on PPPoE interfaces. Verify the following information:
- Total number of active PPPoE sessions running on the interface.
- Under Packet Type, the number of packets of each type sent and received during the PPPoE session.
Related Topics
- Junos OS Feature Support Reference for SRX Series and J Series Devices
- Understanding PPPoE Interfaces
- Configuring PPPoE Interfaces in the Junos Network Interfaces Configuration Guide
- show interfaces (PPPoE) in the Junos Interfaces Command Reference.
- show pppoe interfaces in the Junos Interfaces Command Reference
- show pppoe version in the Junos Interfaces Command Reference.
- show pppoe statistics in the Junos Interfaces Command Reference
Hide Navigation Pane
Show Navigation Pane
Download
SHA1
