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:

  1. Create a PPPoE interface.
    [edit]user@host# edit interfaces pp0 unit 0
  2. 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
  3. Configure the MTU.
    [edit interfaces pp0 unit 0]user@host# set family inet mtu 1492
  4. Configure the PPPoE interface address.
    [edit interfaces pp0 unit 0]user@host# set family inet negotiate-address
  5. 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

Purpose

Verify that the PPPoE device interfaces are configured properly.

Action

From operational mode, enter the show interfaces pp0 command.


user@host> show interfaces pp0
Physical 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:

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 interfaces
pp0.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:

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 version
Point-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:

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 statistics
Active 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:

Related Topics