Supported Platforms
Related Documentation
- M, MX Series
- Configuring a Basic PPPoE Dynamic Profile
- MX Series
- Subscriber Interfaces and Demultiplexing Overview
- Static or Dynamic Demux Subscriber Interfaces over Aggregated Ethernet Overview
- Configuring Dynamic Subscriber Interfaces Using VLAN Demux Interfaces in Dynamic Profiles
- Configuring the PPPoE Family for an Underlying Interface
Example: Configuring a Dynamic PPPoE Subscriber Interface on a Static Underlying VLAN Demux Interface over Aggregated Ethernet
This example shows how you can configure dynamic PPPoE subscriber interfaces over aggregated Ethernet bundles to provide subscriber link redundancy.
Requirements
PPPoE over VLAN demux interfaces over aggregated Ethernet requires the following hardware and software:
- MX Series 3D Universal Edge Routers
- MPCs
- Junos OS Release 11.2 or later
No special configuration beyond device initialization is required before you can configure this feature.
Overview
Aggregated Ethernet bundles enable link redundancy between the router and networking devices connected by Ethernet links. This example describes how to configure link redundancy for dynamic PPPoE subscribers over aggregated Ethernet interface, ae0, with an intermediate static VLAN demux interface, demux0.100. Sample tasks include configuring a two-member aggregated Ethernet bundle, configuring a static VLAN demux interface that underlies the PPPoE subscriber interface, and configuring the dynamic profile that establishes the dynamic PPPoE subscriber interfaces.
The dynamic PPPoE profile (pppoe-profile) creates the PPPoE subscriber interface. It also configures the router to act as a PPPoE server and enables the local address to be derived from the specified address without assigning an explicit IP address to the interface. The pppoe-profile dynamic profile is assigned to the static, intermediate VLAN demux interface (demux0.100), which is configured with the PPPoE family (family pppoe) attributes. This dynamic profile includes the following predefined variables:
- $junos-interface-unit—Represents the logical unit number of the dynamic PPPoE logical interface. This predefined variable is dynamically replaced with the unit number supplied by the router when the subscriber logs in.
- $junos-underlying-interface—Represents the name of the underlying Ethernet interface. This predefined variable is dynamically replaced with the interface name supplied by the router when the subscriber logs in.
This example does not show all possible configuration choices.
Configuration
CLI Quick Configuration
To quickly configure link redundancy for dynamic PPPoE subscribers over a static VLAN demux interface over aggregated Ethernet, copy the following commands, paste them in a text file, remove any line breaks, and then copy and paste the commands into the CLI.
Step-by-Step Procedure
The following example requires you to navigate various levels in the configuration hierarchy. For instructions on how to do that, see Using the CLI Editor in Configuration Mode.
To configure link redundancy for dynamic PPPoE subscribers over a static VLAN demux interface over aggregated Ethernet:
- Define the number of aggregated Ethernet devices on the
router.[edit chassis]user@host# set aggregated-devices ethernet device-count 1
- Configure a two-link aggregated Ethernet logical interface
to serve as the underlying interface for the static VLAN demux subscriber
interface. In this example, the LAG bundle is configured for one-to-one
active/backup link redundancy. To support link redundancy at the MPC
level, the LAG bundle attaches to ports from two different MPCs.[edit interfaces]user@host# set ge-5/0/3 gigether-options 802.3ad ae0user@host# set ge-5/0/3 gigether-options 802.3ad primaryuser@host# set ge-5/1/2 gigether-options 802.3ad ae0user@host# set ge-5/1/2 gigether-options 802.3ad backup
- Enable link protection on the aggregated Ethernet logical
interface and configure support for single and dual (stacked) VLAN
tags.[edit interfaces]user@host# set ae0 aggregated-ether-options link-protectionuser@host# set ae0 flexible-vlan-tagging
- Configure the VLAN demux interface over the aggregated
Ethernet logical interface.[edit interfaces]user@host# set demux0 unit 100 vlan-id 100user@host# set demux0 unit 100 demux-options underlying-interface ae0
- Configure the PPPoE family attributes on the VLAN demux
interface, including the dynamic profile.[edit interfaces]user@host# set demux0 unit 100 family pppoe access-concentrator pppoe-server-1user@host# set demux0 unit 100 family pppoe duplicate-protectionuser@host# set demux0 unit 100 family pppoe dynamic-profile pppoe-profile
- Configure the dynamic profile that creates the PPPoE subscriber
interfaces.[edit dynamic-profiles pppoe-profile]user@host# edit interfaces pp0 unit $junos-interface-unit[edit dynamic-profiles pppoe-profile interfaces pp0 unit "$junos-interface-unit"]user@host# set pppoe-options underlying-interface $junos-underlying-interfaceuser@host# set pppoe-options serveruser@host# set family inet unnumbered-address lo0.0
Results
From configuration mode, confirm the aggregated device configuration by entering the show chassis command. Confirm the interface configuration by entering the show interfaces command. Confirm the dynamic profile configuration by entering the show dynamic-profiles command. If the output does not display the intended configuration, repeat the configuration instructions in this example to correct it.
If you are done configuring the device, enter commit from configuration mode.
Verification
To confirm that the configuration is working properly, perform these tasks:
- Verifying the Aggregated Ethernet Interface Configuration
- Verifying the demux0 Interface Configuration
Verifying the Aggregated Ethernet Interface Configuration
Purpose
Verify that the interface values match your configuration, the link is up, and traffic is flowing.
Action
From operational mode, enter the show interfaces redundancy command.
user@host> show interfaces redundancy
Interface State Last change Primary Secondary Current status
ae0 On primary ge-5/0/3 ge-5/1/2 both up
From operational mode, enter the show interfaces ae0 command.
user@host> show interfaces ae0
Physical interface: ae0, Enabled, Physical link is Up
Interface index: 128, SNMP ifIndex: 606
Link-level type: Ethernet, MTU: 1522, Speed: 1Gbps, BPDU Error: None,
MAC-REWRITE Error: None, Loopback: Disabled, Source filtering: Disabled,
Flow control: Disabled, Minimum links needed: 1, Minimum bandwidth needed: 0
Device flags : Present Running
Interface flags: SNMP-Traps Internal: 0x4000
Current address: 00:1f:12:b8:ef:c0, Hardware address: 00:1f:12:b8:ef:c0
Last flapped : 2011-03-11 13:24:18 PST (2d 03:34 ago)
Input rate : 1984 bps (2 pps)
Output rate : 0 bps (0 pps)
Logical interface ae0.32767 (Index 69) (SNMP ifIndex 709)
Flags: SNMP-Traps 0x4004000 VLAN-Tag [ 0x0000.0 ] Encapsulation: ENET2
Statistics Packets pps Bytes bps
Bundle:
Input : 371259 2 46036116 1984
Output: 0 0 0 0
Protocol multiservice, MTU: Unlimited
Flags: Is-Primary
Meaning
The show interfaces redundancy output shows
the redundant link configuration and that both link interfaces are
up. The show interfaces ae0 output shows that the aggregated
Ethernet interface is up and that traffic is being received on the
logical interface.
Verifying the demux0 Interface Configuration
Purpose
Verify that the VLAN demux interface displays the configured
PPPoE family attributes and the member links in the aggregated Ethernet
bundle.
Action
From operational mode, enter the show interfaces demux0 command.
user@host> show interfaces demux0.100
Logical interface demux0.100 (Index 76) (SNMP ifIndex 61160)
Flags: SNMP-Traps 0x4000 VLAN-Tag [ 0x8100.100 ]
Encapsulation: ENET2
Demux:
Underlying interface: ae0 (Index 199)
Link:
ge-5/0/3
ge-5/1/2
Input packets : 2
Output packets: 18575
Protocol pppoe
Dynamic Profile: pppoe-profile,
Service Name Table: None,
Max Sessions: 16000, Duplicate Protection: On,
AC Name: pppoe-server-1
Alternatively, you can enter show pppoe underlying-interfaces detail to display the state and PPPoE family configuration for
all configured underlying interfaces. The output also provides information
about PPPoE negotiation on a per-VLAN basis.
Meaning
The output shows the name of the underlying interface,
the member links of the aggregated bundle, and the PPPoE family configuration.
The output shows packet counts when traffic is present on the logical
interface.
Related Documentation
M Series
Configuring a Basic PPPoE Dynamic Profile
MX Series
Subscriber Interfaces and Demultiplexing Overview
Static or Dynamic Demux Subscriber Interfaces over Aggregated Ethernet Overview
Configuring Dynamic Subscriber Interfaces Using VLAN Demux Interfaces in Dynamic Profiles
Configuring the PPPoE Family for an Underlying Interface
Configuring a Basic PPPoE Dynamic Profile
Published: 2013-02-11
Supported Platforms
Related Documentation
- M, MX Series
- Configuring a Basic PPPoE Dynamic Profile
- MX Series
- Subscriber Interfaces and Demultiplexing Overview
- Static or Dynamic Demux Subscriber Interfaces over Aggregated Ethernet Overview
- Configuring Dynamic Subscriber Interfaces Using VLAN Demux Interfaces in Dynamic Profiles
- Configuring the PPPoE Family for an Underlying Interface
Published: 2013-02-11