Example: Configuring a Dynamic PPPoE Subscriber Interface on
a Dynamic 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
- Trio 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 with an intermediate dynamic VLAN demux interface.
Sample tasks include configuring a two-member aggregated Ethernet
bundle, configuring dynamic profiles that establish the dynamic VLAN
demux interface that underlies the PPPoE subscriber interface, and
configuring the dynamic profile that establishes the dynamic PPPoE
subscriber interfaces.
In this example, two different dynamic profiles are configured
to instantiate either VLAN (vlan-profile) or S-VLAN (svlan-profile) demux interfaces. These profiles define PPPoE
family options and include the dynamic PPPoE profile (pppoe-profile) that creates the PPPoE subscriber interface. Junos OS predefined
variables are used in each profile to represent the interfaces and
VLAN identifiers that are dynamically created. These dynamic profiles
include the following predefined variables:
- $junos-interface-unit—Represents the logical
unit number of the dynamic VLAN demux interface. This predefined variable
is dynamically replaced with the unit number supplied by the router
when the subscriber logs in.
- $junos-interface-ifd-name—Represents the
underlying logical interface on which the PPPoE subscriber interface
is created. This predefined variable is dynamically replaced with
the name of the underlying interface supplied by the router when the
subscriber logs in.
- $junos-vlan-id—Represents the VLAN identifier.
This predefined variable is dynamically replaced with a VLAN ID when
the subscriber logs in. The VLAN ID is allocated within the VLAN range
specified in the aggregated Ethernet configuration. In the case of
the S-VLAN demux, $junos-vlan-id represents the inner VLAN
identifier.
- $junos-stacked-vlan-id—Represents the outer
VLAN identifier for the stacked VLAN. This predefined variable is
dynamically replaced with a VLAN ID when the subscriber logs in. The
VLAN ID is allocated within the VLAN range specified in the aggregated
Ethernet configuration. This variable is not used for the VLAN demux
configuration.
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 dynamic, intermediate VLAN and S-VLAN demux interfaces. 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 dynamic 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.
[edit]set chassis aggregated-devices ethernet device-count
1 set interfaces ge-5/0/3 gigether-options 802.3ad
ae0set interfaces ge-5/0/3 gigether-options 802.3ad
primaryset interfaces ge-5/1/2 gigether-options 802.3ad
ae0set interfaces ge-5/1/2 gigether-options 802.3ad
backupedit interfaces ae0set flexible-vlan-taggingset aggregated-ether-options link-protectionedit auto-configureset vlan-ranges dynamic-profile vlan-profile
accept pppoeset vlan-ranges dynamic-profile vlan-profile
ranges 1-4094set stacked-vlan-ranges dynamic-profile svlan-profile
accept pppoeset stacked-vlan-ranges dynamic-profile svlan-profile
ranges 1-4094,1-4094topedit dynamic-profiles pppoe-profileedit interfaces pp0 unit $junos-interface-unit set pppoe-options underlying-interface $junos-underlying-interfaceset pppoe-options serverset family inet unnumbered-address lo0.0topedit dynamic-profiles vlan-profile interfaces
demux0edit unit $junos-interface-unitset vlan-id $junos-vlan-idset demux-options underlying-interface $junos-interface-ifd-nameset family pppoe access-concentrator pppoe-server-1set family pppoe duplicate-protectionset family pppoe dynamic-profile pppoe-profiletopedit dynamic-profiles svlan-profile interfaces
demux0edit unit $junos-interface-unitset vlan-tags outer $junos-stacked-vlan-idset vlan-tags inner $junos-vlan-idset demux-options underlying-interface $junos-interface-ifd-nameset family pppoe access-concentrator pppoe-server-1set family pppoe duplicate-protectionset family pppoe dynamic-profile pppoe-profiletop
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 dynamic 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 dynamic 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 Trio 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 parameters for automatically configuring
VLANs and S-VLANs, including the VLAN ranges and dynamic profiles.
[edit interfaces]user@host# set ae0 auto-configure vlan-ranges
dynamic-profile vlan-profile accept pppoeuser@host# set ae0 auto-configure vlan-ranges
dynamic-profile vlan-profile ranges 1-4094user@host# set ae0 auto-configure stacked-vlan-ranges
dynamic-profile svlan-profile accept pppoeuser@host# set ae0 auto-configure stacked-vlan-ranges
dynamic-profile svlan-profile ranges 1-4094,1-4094
- Configure the dynamic profile that creates the PPPoE subscriber
interface.
[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
- Configure the dynamic profile that creates VLAN demux
underlying interfaces, including the PPPoE family attributes.
[edit dynamic-profiles vlan-profile]user@host# edit interfaces demux0 unit $junos-interface-unit[edit dynamic-profiles vlan-profile interfaces demux0 unit
"$junos-interface-unit"]user@host# set vlan-id $junos-vlan-iduser@host# set demux-options underlying-interface
$junos-interface-ifd-nameuser@host# set family pppoe access-concentrator
pppoe-server-1user@host# set family pppoe duplicate-protectionuser@host# set family pppoe dynamic-profile
pppoe-profile
- Configure the dynamic profile that creates S-VLAN demux
underlying interfaces, including the PPPoE family attributes.
[edit dynamic-profiles svlan-profile]user@host# edit interfaces demux0 unit $junos-interface-unit[edit dynamic-profiles svlan-profile interfaces demux0
unit "$junos-interface-unit"]user@host# set vlan-tags outer $junos-stacked-vlan-iduser@host# set vlan-tags inner $junos-vlan-iduser@host# set demux-options underlying-interface
$junos-interface-ifd-nameuser@host# set family pppoe access-concentrator
pppoe-server-1user@host# set family pppoe duplicate-protectionuser@host# set family pppoe dynamic-profile
pppoe-profile
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.
[edit]user@host# show chassisaggregated-devices {ethernet {device-count 1;}}
[edit]user@host# show interfacesge-5/0/3 {gigether-options {802.3ad {ae0;primary;}}}ge-5/1/2 {gigether-options {802.3ad {ae0;backup;}}}ae0 {flexible-vlan-tagging;aggregated-ether-options {link-protection;}auto-configure {vlan-ranges {dynamic-profile {vlan-profile {accept pppoe;vlan-ranges 1–4094};}}}stacked-vlan-ranges {dynamic-profile {svlan-profile {accept pppoe;vlan-ranges 1–4094,1–4094;}}}}}
[edit]user@host# show dynamic-profilespppoe-profile {interfaces {pp0 {unit $junos-interface-unit {pppoe-options {underlying-interface $junos-underlying-interface;server;}family inet {unnumbered-address lo0.0;}}}}}vlan-profile {interfaces {demux0 {unit "$junos-interface-unit" {vlan-id "$junos-vlan-id";demux-options {underlying-interface "$junos-interface-ifd-name";}family pppoe {access-concentrator pppoe-server-1;duplicate-protection;dynamic-profile pppoe-profile;}}}}}svlan-profile {interfaces {demux0 {unit "$junos-interface-unit" {vlan-tags outer "$junos-stacked-vlan-id" inner "$junos-vlan-id";demux-options {underlying-interface "$junos-interface-ifd-name";}family pppoe {access-concentrator pppoe-server-1;duplicate-protection;dynamic-profile pppoe-profile;}}}}}
If you are done configuring the device, enter commit from configuration mode.
Verification
To confirm that the configuration is working
properly, perform this task:
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-PrimaryMeaning
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.
Published: 2012-03-08