Configuring PPPoE for Ethernet Modules

You can configure PPPoE on Fast Ethernet (FE), Gigabit Ethernet (GE), and 10-Gigabit Ethernet (10GE) modules. You can configure Ethernet interfaces with IP only, with PPPoE only, with both IP and PPPoE, and with or without VLANs.

This section provides information about configuring PPPoE without VLANs. If you want to configure PPPoE with VLANs, see Configuring VLAN and S-VLAN Subinterfaces , which shows common VLAN configurations such as:

For more information about specific Ethernet modules and the protocols and applications they support, see:

PPPoE Interface and Subinterface Limits

PPPoE subinterfaces can be distributed in any way across I/O module ports. For example, you can configure the maximum supported number of PPPoE subinterfaces on one port of an FE-2 I/O module and no PPPoE subinterfaces on the other port.

For information about current system maximums supported for PPPoE interfaces and subinterfaces, see JunosE Release Notes, Appendix A, System Maximums.

Configuring IPv4 and IPv6 over PPPoE with VLAN

You can configure IPv4 and IPv6 interface columns over static PPPoE, as shown in Figure 41.

Figure 41: Example of Configuring IPv4 and IPv6 over PPPoE

Image g016516.gif

To configure IPv4 and IPv6 interface columns over static PPPoE:

  1. Specify a Fast Ethernet, Gigabit Ethernet, or 10-Gigabit Ethernet interface.
    host1(config)#interface gigabitEthernet 2/0/1
  2. Specify VLAN as the encapsulation method.
    host1(config-if)#encapsulation vlan

    The VLAN major interface is added.

  3. Create a VLAN subinterface by adding a subinterface number to the interface identification command.
    host1(config-if)#interface gigabitEthernet 2/0/1.1
  4. Assign a VLAN ID for the subinterface.
    host1(config-if)#vlan id 1
  5. Create a PPPoE subinterface.
    host1(config-if)#pppoe
  6. Specify PPPoE as the encapsulation method on the interface.
    host1(config-if)#pppoe subinterface gigabitEthernet 2/0/1.1.1host1(config-if)#encapsulation ppp
  7. Specify the order of preference for the primary authentication protocol.
    host1(config-if)#ppp authentication pap chap eap
  8. Enable IPv6 processing on an interface without assigning an explicit IPv6 address to that interface.
    host1(config-if)#ipv6 unnumbered loopback 0
  9. Enable the IPv6 Neighbor Discovery process on an interface.
    host1(config-if)#ipv6 nd
  10. Specify which IPv6 prefixes the system includes in IPv6 router advertisements.
    host1(config-if)#ipv6 nd prefix-advertisement 2002:1::/64 60000 45000 onlink autoconfig
  11. (Optional) Configure additional VLAN subinterfaces by completing Steps 3 through 10.

encapsulation ppp

encapsulation vlan

ipv6 address

ipv6 nd

ipv6 unnumbered

ppp authentication

pppoe

vlan id

Configuring PPPoE Without VLANs

To configure PPPoE over an Ethernet interface without VLANs:

  1. Specify a Fast Ethernet, Gigabit Ethernet, or 10-Gigabit Ethernet interface.
    host1(config)#interface fastEthernet 4/1
  2. Specify PPPoE as the encapsulation method on the interface.
    host1(config-if)#pppoe
  3. Create a PPPoE subinterface.
    host1(config-if)#pppoe subinterface fastEthernet 4/1.1
  4. Specify PPP as the encapsulation method on the interface.
    host1(config-subif)#encapsulation ppp
  5. (Optional) Configure an access concentrator (AC) name on the PPPoE interface.
    host1(config-subif)#pppoe acname CYM9876
  6. (Optional) Set up the router to prevent a client from establishing more than one session using the same MAC address.

    When the duplicate protection feature is enabled, multiple IWF PPPoE sessions (sent from PPPoE clients to the PPPoE access concentrator) that contain the same MAC address are still processed and can access network services until the maximum number of PPPoE sessions configured per major interface (configured using the pppoe sessions command) is reached.

    host1(config-subif)#pppoe duplicate-protection
  7. Assign an IP address and mask.
    host1(config-if)#ip address 192.6.129.5 255.255.255.0
  8. (Optional) Configure additional PPPoE subinterfaces by completing Steps 3 through 7 using unique numbering.

Figure 42 illustrates the interface stack for this configuration.

Figure 42: Example of PPPoE Stacking

Image g013090.gif

encapsulation ppp

interface fastEthernet

interface gigabitEthernet

interface tenGigabitEthernet

ip address

pppoe

pppoe acName

pppoe duplicate-protection

pppoe subinterface fastEthernet