Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
Broadband Subscriber Sessions User Guide
Table of Contents Expand all
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

Dual Stack for PPPoE Access Networks Using DHCP

date_range 06-Dec-23

Configuring a DHCPv6 Local Server for DHCPv6 over PPPoE

To layer DHCPv6 above the PPPoE IPv6 family (inet6), create a DHCPv6 local server and associate DHCPv6 with the PPPoE interfaces by adding the PPPoE interfaces to the DHCPv6 local server configuration. Specify static and dynamic PPPoE interfaces as follows:

  • Dynamic—Use the pp0.0 (PPPoE) logical interface as a wildcard to indicate that a DHCPv6 binding can be made on top of a PPPoE interface.

  • Static—Use unit numbers to explicitly specify static interfaces; for example, pp0.2000.

To configure a DHCPv6 local server:

  1. Access the DHCPv6 local server configuration.
    content_copy zoom_out_map
    [edit]
    user@host# edit system services dhcp-local-server dhcpv6
    [edit system services dhcp-local-server dhcpv6]
    
  2. Create a group for dynamic PPPoE interfaces and assign a name.

    The group feature groups a set of interfaces and then applies a common DHCP configuration to the named interface group.

    content_copy zoom_out_map
    [edit system services dhcp-local-server dhcpv6]
    user@host# edit group group-pppoe 
    
  3. For dynamic PPPoE logical interfaces, add an interface.
    content_copy zoom_out_map
    [edit system services dhcp-local-server dhcpv6 group group-pppoe]
    user@host# set interface pp0.0 
    
  4. For static PPPoE, add a range of interfaces.
    content_copy zoom_out_map
    [edit system services dhcp-local-server dhcpv6 group group-pppoe]
    user@host# set interface pp0.2000 upto pp0.2999
    

Configuring a PPPoE Dynamic Profile for Use with DHCP Addressing in a Dual-Stack Network

Configure a dynamic profile for IPv4 and IPv6 subscribers that access the network. The dynamic profile defines the attributes of the dynamic PPPoE logical subscriber interface.

To configure a PPPoE dynamic profile for both IPv4 and IPv6 subscribers:

  1. Create and name the dynamic profile.
    content_copy zoom_out_map
    [edit]
    user@host# edit dynamic profiles PPPOE-dyn-ipv4v6
    
  2. If you are using routing instances, add a routing instance to the profile, and add an interface to the routing instance.
    • Specify the $junos-routing-instance variable for the routing instance. The routing instance variable is dynamically replaced with the routing instance the accessing subscriber uses when connecting to the BNG.

    • Specify the $junos-interface-name variable for the interface. The interface variable is dynamically replaced with the interface that the accessing subscriber uses when connecting to the BNG.

    content_copy zoom_out_map
    [edit dynamic profiles PPPOE-dyn-ipv4v6]
    user@host# set routing-instances $junos-routing-instance interface $junos-interface-name
    
  3. Add a PPPoE logical interface (pp0) to the profile, and specify $junos-interface-unit as the predefined variable to represent the logical unit number for the interface. The variable is dynamically replaced with the actual unit number supplied by the network when the subscriber logs in.
    content_copy zoom_out_map
    [edit dynamic profiles PPPOE-dyn-ipv4v6]
    user@host# edit interfaces pp0 unit $junos-interface-unit
    
  4. Configure the IPv4 family for the pp0 interface as follows:
    • If you are not using routing instances, assign an unnumbered address. The unnumbered address enables the local address to be derived from the specified interface and allows IP processing on the interface without an explicit IP address assigned to the interface.

      For example:

      content_copy zoom_out_map
      [edit dynamic-profiles PPPOE-dyn-ipv4v6 interfaces pp0 unit "$junos-interface-unit"]
      user@host# set family inet unnumbered-address lo0.0 
      
    • If you are using routing instances, assign the predefined variable $junos-loopback-interface.

      For example:

      content_copy zoom_out_map
      [edit dynamic-profiles PPPOE-dyn-ipv4v6 interfaces pp0 unit "$junos-interface-unit"]
      user@host# set family inet unnumbered-address $junos-loopback-interface
      
  5. Configure the IPv6 family for the pp0 interface as follows:
    • If you are not using routing instances, assign an unnumbered address that specifies the loopback interface. The unnumbered address enables the local address to be derived from the loopback interface and allows IP processing on the interface without an explicit IP address assigned to the interface.

      For example:

      content_copy zoom_out_map
      [edit dynamic-profiles PPPOE-dyn-ipv4v6 interfaces pp0 unit "$junos-interface-unit"]
      user@host# set family inet6 unnumbered-address lo0.0 
      
    • If you are using routing instances, assign the predefined variable $junos-loopback-interface.

      For example:

      content_copy zoom_out_map
      [edit dynamic-profiles PPPOE-dyn-ipv4v6 interfaces pp0 unit "$junos-interface-unit"]
      user@host# set family inet6 unnumbered-address $junos-loopback-interface
      
  6. Specify $junos-underlying-interface as the predefined variable to represent the name of the underlying Ethernet interface on which the router creates the dynamic PPPoE logical interface. The variable is dynamically replaced with the actual name of the underlying interface.
    content_copy zoom_out_map
    [edit dynamic-profiles PPPOE-dyn-ipv4v6 interfaces pp0 unit "$junos-interface-unit"]
    user@host# set pppoe-options underlying-interface $junos-underlying-interface
    
  7. Define the router to act as a PPPoE server when a PPPoE logical interface is dynamically created.
    content_copy zoom_out_map
    [edit dynamic-profiles PPPOE-dyn-ipv4v6 interfaces pp0 unit "$junos-interface-unit"]
    user@host# set pppoe-options server
    
  8. (Optional) Configure the PPP authentication protocol for the pp0 interface. Specify either chap or pap (or both).
    content_copy zoom_out_map
    [edit dynamic-profiles PPPOE-dyn-ipv4v6 interfaces pp0 unit "$junos-interface-unit"]
    user@host# set ppp-options chap 
    user@host# set ppp-options pap
    
  9. (Optional) Enable keepalives and set an interval for keepalives. We recommend an interval of 30 seconds. For example:
    content_copy zoom_out_map
    [edit dynamic-profiles PPPOE-dyn-ipv4v6 interfaces pp0 unit "$junos-interface-unit"]
    user@host# set keepalives interval 30 
    
footer-navigation