Configuring a PPPoE Dynamic Profile
You can configure a basic dynamic profile for PPPoE subscribers that defines the attributes of the dynamic PPPoE logical subscriber interface (pp0).
To configure a basic PPPoE dynamic profile:
- Name the dynamic profile.
[edit] user@host# edit dynamic-profiles basic-pppoe-profile
- Specify that you want to configure the
pp0
logical interface in the dynamic profile.[edit dynamic-profiles basic-pppoe-profile] user@host# edit interfaces pp0
- Specify
$junos-interface-unit
as the predefined variable to represent the logical unit number for thepp0
interface.The
$junos-interface-unit
variable is replaced with the actual unit number supplied by the network when the subscriber logs in.[edit dynamic-profiles basic-pppoe-profile interfaces pp0] user@host# edit unit $junos-interface-unit
- Configure PPPoE-specific options for the
pp0
interface.- Specify the
$junos-underlying-interface
predefined variable to represent the name of the underlying Ethernet interface on which the router creates the dynamic PPPoE logical interface.The
$junos-underlying-interface
variable is replaced with the actual name of the underlying interface supplied by the network when the subscriber logs in.[edit dynamic-profiles basic-pppoe-profile interfaces pp0 unit "$junos-interface-unit"] user@host# set pppoe-options underlying-interface $junos-underlying-interface
- Configure the router to act as a PPPoE server, also known
as a remote access concentrator.
[edit dynamic-profiles basic-pppoe-profile interfaces pp0 unit "$junos-interface-unit"] user@host# set pppoe-options server
- Specify the
- Configure the PPP authentication protocol for the
pp0
interface.For dynamic interfaces, the router supports only unidirectional authentication; that is, the router always functions as the authenticator. When you configure PPP authentication in a dynamic profile, the chap and pap statements do not support any additional configuration options.
To configure CHAP authentication:
[edit dynamic-profiles basic-pppoe-profile interfaces pp0 unit "$junos-interface-unit"] user@host# set ppp-options chap
To configure PAP authentication:
[edit dynamic-profiles basic-pppoe-profile interfaces pp0 unit "$junos-interface-unit"] user@host# set ppp-options pap
- Modify the keepalive interval, or configure the router
to disable sending keepalive messages.
To modify the keepalive interval:
[edit dynamic-profiles basic-pppoe-profile interfaces pp0 unit "$junos-interface-unit"] user@host# set keepalives interval 15
To disable sending keepalive messages:
[edit dynamic-profiles basic-pppoe-profile interfaces pp0 unit "$junos-interface-unit"] user@host# set no-keepalives
- Configure the protocol family for the
pp0
interface.- Specify that you want to configure the
inet
(IPv4) orinet6
(IPv6) protocol family.[edit dynamic-profiles basic-pppoe-profile interfaces pp0 unit "$junos-interface-unit"] user@host# edit family inet
- Specify the IPv4 or IPv6 address of the dynamic PPPoE
logical interface.
[edit dynamic-profiles basic-pppoe-profile interfaces pp0 unit "$junos-interface-unit" family inet] user@host# set address 6.6.6.7/32
- Configure the unnumbered address for the protocol family.
[edit dynamic-profiles basic-pppoe-profile interfaces pp0 unit "$junos-interface-unit" family inet] user@host# set unnumbered-address lo0.0
- Specify the input and output service sets that you want
to apply to the dynamic PPPoE logical interface.
[edit dynamic-profiles basic-pppoe-profile interfaces pp0 unit "$junos-interface-unit" family inet] user@host# set service input service-set inputService_100 user@host# set service input post-service-filter postService_20 user@host# set service output service-set outputService_200
- Specify the input and output filters that you want to
apply to the dynamic PPPoE logical interface.
To control the order in which filters are processed, you can optionally specify a precedence value for the input filter, output filter, or both.
[edit dynamic-profiles basic-pppoe-profile interfaces pp0 unit "$junos-interface-unit" family inet] user@host# set filter input pppoe-input-filter user@host# set filter output pppoe-output-filter precedence 50
- Specify that you want to configure the