- play_arrow Configuring Dynamic VLANs for Subscriber Access Networks
- play_arrow Dynamic VLAN Overview
- Subscriber Management VLAN Architecture Overview
- Dynamic 802.1Q VLAN Overview
- Static Subscriber Interfaces and VLAN Overview
- Pseudowire Termination: Explicit Notifications for Pseudowire Down Status
- Configuring an Access Pseudowire That Terminates into VRF on the Service Node
- Configuring an Access Pseudowire That Terminates into a VPLS Routing Instance
- play_arrow Configuring Dynamic Profiles and Interfaces Used to Create Dynamic VLANs
- Configuring a Dynamic Profile Used to Create Single-Tag VLANs
- Configuring an Interface to Use the Dynamic Profile Configured to Create Single-Tag VLANs
- Configuring a Dynamic Profile Used to Create Stacked VLANs
- Configuring an Interface to Use the Dynamic Profile Configured to Create Stacked VLANs
- Configuring Interfaces to Support Both Single and Stacked VLANs
- Overriding the Dynamic Profile Used for an Individual VLAN
- Configuring a VLAN Dynamic Profile That Associates VLANs with Separate Routing Instances
- Automatically Removing VLANs with No Subscribers
- Verifying and Managing Dynamic VLAN Configuration
- play_arrow Configuring Subscriber Authentication for Dynamic VLANs
- Configuring an Authentication Password for VLAN or Stacked VLAN Ranges
- Configuring Dynamic Authentication for VLAN Interfaces
- Subscriber Packet Type Authentication Triggers for Dynamic VLANs
- Configuring Subscriber Packet Types to Trigger VLAN Authentication
- Configuring VLAN Interface Username Information for AAA Authentication
- Using DHCP Option 82 Suboptions in Authentication Usernames for Autosense VLANs
- Using DHCP Option 18 and Option 37 in Authentication Usernames for DHCPv6 Autosense VLANs
- play_arrow Configuring VLANs for Households or Individual Subscribers Using ACI-Based Dynamic VLANs
- Agent Circuit Identifier-Based Dynamic VLANs Overview
- Configuring Dynamic VLANs Based on Agent Circuit Identifier Information
- Defining ACI Interface Sets
- Configuring Dynamic Underlying VLAN Interfaces to Use Agent Circuit Identifier Information
- Configuring Static Underlying VLAN Interfaces to Use Agent Circuit Identifier Information
- Configuring Dynamic VLAN Subscriber Interfaces Based on Agent Circuit Identifier Information
- Verifying and Managing Agent Circuit Identifier-Based Dynamic VLAN Configuration
- Clearing Agent Circuit Identifier Interface Sets
- play_arrow Configuring VLANs for Households or Individual Subscribers Using Access-Line-Identifier Dynamic VLANs
- Access-Line-Identifier-Based Dynamic VLANs Overview
- Configuring Dynamic VLANs Based on Access-Line Identifiers
- Defining Access-Line-Identifier Interface Sets
- Configuring Dynamic Underlying VLAN Interfaces to Use Access-Line Identifiers
- Configuring Static Underlying VLAN Interfaces to Use Access-Line Identifiers
- Configuring Dynamic VLAN Subscriber Interfaces Based on Access-Line Identifiers
- Verifying and Managing Configurations for Dynamic VLANs Based on Access-Line Identifiers
- Clearing Access-Line-Identifier Interface Sets
- play_arrow High Availability for Service VLANs
-
- play_arrow Configuring PPPoE Subscriber Interfaces
- play_arrow Configuring Dynamic PPPoE Subscriber Interfaces
- Subscriber Interfaces and PPPoE Overview
- Dynamic PPPoE Subscriber Interfaces over Static Underlying Interfaces Overview
- Configuring Dynamic PPPoE Subscriber Interfaces
- Configuring a PPPoE Dynamic Profile
- Configuring an Underlying Interface for Dynamic PPPoE Subscriber Interfaces
- Configuring the PPPoE Family for an Underlying Interface
- Ignoring DSL Forum VSAs from Directly Connected Devices
- Example: Configuring a Dynamic PPPoE Subscriber Interface on a Static Gigabit Ethernet VLAN Interface
- play_arrow Configuring PPPoE Subscriber Interfaces over Aggregated Ethernet Examples
- Example: Configuring a Static PPPoE Subscriber Interface on a Static Underlying VLAN Demux Interface over Aggregated Ethernet
- Example: Configuring a Dynamic PPPoE Subscriber Interface on a Static Underlying VLAN Demux Interface over Aggregated Ethernet
- Example: Configuring a Dynamic PPPoE Subscriber Interface on a Dynamic Underlying VLAN Demux Interface over Aggregated Ethernet
- play_arrow Configuring PPPoE Session Limits
- play_arrow Configuring PPPoE Subscriber Session Lockout
- play_arrow Configuring MTU and MRU for PPP Subscribers
- play_arrow Configuring PPPoE Service Name Tables
- Understanding PPPoE Service Name Tables
- Evaluation Order for Matching Client Information in PPPoE Service Name Tables
- Benefits of Configuring PPPoE Service Name Tables
- Creating a Service Name Table
- Configuring PPPoE Service Name Tables
- Assigning a Service Name Table to a PPPoE Underlying Interface
- Configuring the Action Taken When the Client Request Includes an Empty Service Name Tag
- Configuring the Action Taken for the Any Service
- Assigning a Service to a Service Name Table and Configuring the Action Taken When the Client Request Includes a Non-zero Service Name Tag
- Assigning an ACI/ARI Pair to a Service Name and Configuring the Action Taken When the Client Request Includes ACI/ARI Information
- Assigning a Dynamic Profile and Routing Instance to a Service Name or ACI/ARI Pair for Dynamic PPPoE Interface Creation
- Limiting the Number of Active PPPoE Sessions Established with a Specified Service Name
- Reserving a Static PPPoE Interface for Exclusive Use by a PPPoE Client
- Example: Configuring a PPPoE Service Name Table
- Example: Configuring a PPPoE Service Name Table for Dynamic Subscriber Interface Creation
- Troubleshooting PPPoE Service Name Tables
- play_arrow Changing the Behavior of PPPoE Control Packets
- play_arrow Monitoring and Managing Dynamic PPPoE for Subscriber Access
-
- play_arrow Configuring MLPPP for Subscriber Access
- play_arrow MLPPP Support for LNS and PPPoE Subscribers Overview
- MLPPP Overview
- MLPPP Support for LNS and PPPoE Subscribers Overview
- Supported Features for MLPPP LNS and PPPoE Subscribers on the MX Series
- Mixed Mode Support for MLPPP and PPP Subscribers Overview
- Understanding DVLAN (Single/Dual tag) for Subscriber Services Scaling (Junos Evolved for ACX7100-48L Devices)
- play_arrow Configuring MLPPP Link Fragmentation and Interleaving
- play_arrow Configuring Inline Service Interfaces for LNS and PPPoE Subscribers
- play_arrow Configuring L2TP Access Client for MLPPP Subscribers
- play_arrow Configuring Static MLPPP Subscribers for MX Series
- play_arrow Configuring Dynamic MLPPP Subscribers for MX Series
- play_arrow Configuring Dynamic PPP Subscriber Services
- Dynamic PPP Subscriber Services for Static MLPPP Interfaces Overview
- Hardware Requirements for PPP Subscriber Services on Non-Ethernet Interfaces
- Configuring PPP Subscriber Services for MLPPP Bundles
- Enabling PPP Subscriber Services for Static Non-Ethernet Interfaces
- Attaching Dynamic Profiles to MLPPP Bundles
- Example: Minimum MLPPP Dynamic Profile
- Example: Configuring CoS on Static LSQ MLPPP Bundle Interfaces
- play_arrow Monitoring and Managing MLPPP for Subscriber Access
-
- play_arrow Configuring ATM for Subscriber Access
- play_arrow Configuring ATM to Deliver Subscriber-Based Services
- play_arrow Configuring PPPoE Subscriber Interfaces Over ATM
- play_arrow Configuring ATM Virtual Path Shaping on ATM MICs with SFP
- play_arrow Configuring Static Subscriber Interfaces over ATM
- play_arrow Verifying and Managing ATM Configurations
-
- play_arrow Troubleshooting
- play_arrow Contacting Juniper Networks Technical Support
- play_arrow Knowledge Base
-
- play_arrow Configuration Statements and Operational Commands
ON THIS PAGE
Example: Concurrent Configuration of Dynamic DHCP IP Demux and PPPoE Demux Interfaces over the Same VLAN Demux Interface
This example shows how to configure both dynamic DHCP IP demux and PPPoE demux interfaces over the same dynamic VLAN demux interface. The example provides an IPv4 configuration. However, you can also configure concurrent IP over Ethernet/DHCP and PPPoE interfaces over the same VLAN interface using IPv6 addressing.
Requirements
Before you begin, make sure to configure either DHCP Relay or DHCP Local Server. For information about configuring either of these components, see Extended DHCP Relay Agent Overview or Understanding Differences Between Legacy DHCP and Extended DHCP.
Overview
With the introduction of the family pppoe
statement,
PPPoE is no longer treated as an exclusive encapsulation configuration
and you can configure VLAN interfaces with multiple protocol interface
stacks. For example, you can configure IP over Ethernet/DHCP and PPPoE
interfaces concurrently over a single VLAN interface.
Configuration
- Preparing a Subscriber Access Interface
- Preparing the Loopback Interface
- Configuring a Dynamic Profile to Create Dynamic Single-Tagged VLANs
- Configuring a Dynamic Profile to Create Dynamic Dual-Tagged VLANs
- Configuring a Dynamic Profile to Create Dynamic IP Demux Interfaces
- Configuring a Dynamic Profile to Create Dynamic PPPoE Interfaces
Preparing a Subscriber Access Interface
CLI Quick Configuration
To quickly configure the aggregated Ethernet interface over which subscribers access the router:
[edit] set chassis aggregated-devices ethernet device-count 1 set interfaces ge-5/0/9 gigether-options 802.3ad ae0 set interfaces ge-5/1/9 gigether-options 802.3ad ae0 set interfaces ae0 flexible-vlan-tagging set interfaces ae0 auto-configure vlan-ranges dynamic-profile Auto-VLAN-Demux accept any set interfaces ae0 auto-configure vlan-ranges dynamic-profile Auto-VLAN-Demux ranges ranges 1000-1500 set interfaces ae0 auto-configure stacked-vlan-ranges dynamic-profile Auto-Stacked-VLAN-Demux accept any set interfaces ae0 auto-configure stacked-vlan-ranges dynamic-profile Auto-Stacked-VLAN-Demux ranges 1501-2000,any set interfaces ae0 aggregated-ether-options lacp active set interfaces ae0 aggregated-ether-options lacp link-protection
Step-by-Step Procedure
When configuring multiple protocol interface stacks concurrently over the same VLAN interface, you must configure physical interfaces over which DHCP or PPPoE clients initially access the router. We recommend that you specify the same VLAN tagging for the interface that you expect from incoming clients. This example uses flexible VLAN tagging to simultaneously support transmission of 802.1Q VLAN single-tag and dual-tag frames on logical interfaces on the same Ethernet port.
To automatically create dynamic VLANs, the interface must also include the VLAN range type (single or stacked), dynamic profile reference, and any specific ranges you want the VLANs to use.
To configure a physical interface for subscriber access:
Access the physical interface over which you want subscribers to initially access the router.
content_copy zoom_out_map[edit] user@host# edit interfaces ge-5/0/9
Specify the aggregated Ethernet interface to which the physical interface belongs.
content_copy zoom_out_map[edit interfaces ge-5/0/9] user@host# set gigether-options 802.3ad ae0
Repeat Step 1 and Step 2for each interface you want to assign to the aggregated Ethernet bundle.
content_copy zoom_out_map[edit] user@host# set interfaces ge-5/1/9 gigether-options 802.3ad ae0
Access the aggregated Ethernet interface.
content_copy zoom_out_map[edit] user@host# edit interfaces ae0
Specify the VLAN tagging that you want the aggregated Ethernet interfaces to use.
content_copy zoom_out_map[edit interfaces ae0] user@host# set flexible-vlan-tagging
Edit the
auto-configure
stanza to automatically configure VLANs.content_copy zoom_out_map[edit interfaces ae0] user@host# edit auto-configure
Edit the
vlan-ranges
stanza for single-tagged VLANs.content_copy zoom_out_map[edit interfaces ae0 auto-configure] user@host# edit vlan-ranges
Specify the dynamic VLAN profile that you want the interface to use for dynamically creating single-tagged VLANs.
content_copy zoom_out_map[edit interfaces ae0 auto-configure vlan-ranges] user@host# edit dynamic-profile Auto-VLAN-Demux
Specify what VLAN Ethernet packet type the VLAN profile accepts.
content_copy zoom_out_map[edit interfaces ae0 auto-configure vlan-ranges dynamic-profile Auto-VLAN-Demux] user@host# set accept any
Specify the VLAN ranges that you want the dynamic profile to use. The following example specifies a lower VLAN ID limit of 1000 and an upper VLAN ID limit of 1500.
content_copy zoom_out_map[edit interfaces ae0 auto-configure vlan-ranges dynamic-profile Auto-VLAN-Demux] user@host# set ranges 1000-1500
Edit the
stacked-vlan-ranges
stanza for the dual-tagged VLANs.content_copy zoom_out_map[edit interfaces ae0 auto-configure] user@host# edit stacked-vlan-ranges
Specify the dynamic VLAN profile that you want the interface to use for dynamically creating dual-tagged VLANs.
content_copy zoom_out_map[edit interfaces ae0 auto-configure stacked-vlan-ranges] user@host# edit dynamic-profile Auto-Stacked-VLAN-Demux
Specify what VLAN Ethernet packet type the stacked VLAN profile accepts.
content_copy zoom_out_map[edit interfaces ae0 auto-configure stacked-vlan-ranges dynamic-profile Auto-Stacked-VLAN-Demux] user@host# set accept any
Specify the outer and inner stacked VLAN ranges that you want the dynamic profile to use. The following example specifies an outer stacked VLAN ID range from 1501 through 2000 (to avoid overlapping VLAN IDs with single-tag VLANs) and an inner stacked VLAN ID range of any (enabling a range from 1 through 4094 for the inner stacked VLAN ID).
content_copy zoom_out_map[edit interfaces ge-5/0/9 auto-configure stacked-vlan-ranges dynamic-profile Auto-Stacked-VLAN-Demux] user@host# set ranges 1501-2000,any
(Optional) Activate the transmission of LACP packets on the aggregated Ethernet interfaces.
content_copy zoom_out_map[edit interfaces ae0] user@host# set aggregated-ether-options lacp active
Specify that the aggregated Ethernet interfaces use link protection.
content_copy zoom_out_map[edit interfaces ae0] user@host# set aggregated-ether-options link-protection
Preparing the Loopback Interface
CLI Quick Configuration
To quickly configure the required loopback interface for this example:
[edit] set interfaces lo0.0 unit 0 family inet address 100.100.100.1/32
Step-by-Step Procedure
You must configure a loopback interface for use as the unnumbered address and preferred source address for dynamically created interfaces.
To configure the required loopback interface for this example:
Configure a loopback interface.
content_copy zoom_out_map[edit] user@host# edit interfaces lo0.0
Specify that the loopback interface accept inet packets.
content_copy zoom_out_map[edit interfaces lo0 unit 0] user@host# edit family inet
Specify the IP address for the loopback interface.
content_copy zoom_out_map[edit interfaces lo0 unit 0 family inet] user@host# set address 100.100.100.1/32
Configuring a Dynamic Profile to Create Dynamic Single-Tagged VLANs
CLI Quick Configuration
To quickly configure the dynamic profile used to dynamically create single-tagged VLANs in the example:
[edit] set dynamic-profiles Auto-VLAN-Demux interfaces demux0 unit $junos-interface-unit demux-source inet set dynamic-profiles Auto-VLAN-Demux interfaces demux0 unit $junos-interface-unit proxy-arp set dynamic-profiles Auto-VLAN-Demux interfaces demux0 unit $junos-interface-unit vlan-id $junos-vlan-id set dynamic-profiles Auto-VLAN-Demux interfaces demux0 unit $junos-interface-unit demux options underlying-interface $junos-interface-ifd-name set dynamic-profiles Auto-VLAN-Demux interfaces demux0 unit $junos-interface-unit family inet unnumbered-address lo0.0 preferred source-address 100.100.100.1 set dynamic-profiles Auto-VLAN-Demux interfaces demux0 unit $junos-interface-unit family pppoe duplicate-protection set dynamic-profiles Auto-VLAN-Demux interfaces demux0 unit $junos-interface-unit family pppoe dynamic-profile PPP-Base-PAP
Step-by-Step Procedure
For both dynamic DHCP IP demux and dynamic PPPoE interfaces to reside concurrently on a single-tagged VLAN interface, the VLAN interface must first exist.
To configure a dynamic profile that automatically creates VLAN interfaces:
Create a dynamic profile for automatically creating VLAN interfaces.
content_copy zoom_out_map[edit] user@host# edit dynamic-profiles Auto-VLAN-Demux
Specify that the dynamic VLAN profile use the demux interface.
content_copy zoom_out_map[edit dynamic-profiles “Auto-VLAN-Demux”] user@host# edit interfaces demux0
Specify that the dynamic profile apply the demux interface unit value to the dynamic VLANs.
content_copy zoom_out_map[edit dynamic-profiles Auto-VLAN-Demux interfaces demux0] user@host# edit unit $junos-interface-unit
Specify that the demux source accept IPv4 (inet) packets.
content_copy zoom_out_map[edit dynamic-profiles Auto-VLAN-Demux interfaces demux0 unit “$junos-interface-unit”] user@host# set demux-source inet
(Optional) Specify that each dynamically created interface respond to any ARP request, as long as an active route exists to the target address of the ARP request.
content_copy zoom_out_map[edit dynamic-profiles Auto-VLAN-Demux interfaces demux0 unit “$junos-interface-unit”] user@host# set proxy-arp
Specify that VLAN IDs are dynamically created.
content_copy zoom_out_map[edit dynamic-profiles Auto-VLAN-Demux interfaces demux0 unit “$junos-interface-unit”] user@host# set vlan-id $junos-vlan-id
Specify the logical underlying interface for the dynamic VLANs.
content_copy zoom_out_map[edit dynamic-profiles Auto-VLAN-Demux interfaces demux0 unit “$junos-interface-unit”] user@host# set demux-options underlying-interface $junos-interface-ifd-name
Specify that the VLAN demux interface can accept inet family packets for IP over Ethernet/DHCP subscribers.
content_copy zoom_out_map[edit dynamic-profiles Auto-VLAN-Demux interfaces demux0 unit “$junos-interface-unit”] user@host# edit family inet
Specify the loopback address as the unnumbered address and preferred source address for the inet family.
content_copy zoom_out_map[edit dynamic-profiles Auto-VLAN-Demux interfaces demux0 unit “$junos-interface-unit” family inet] user@host# set unnumbered-address lo0.0 preferred-source-address 100.100.100.1
Specify that the VLAN demux interface can accept pppoe family packets for PPPoE subscribers.
content_copy zoom_out_map[edit dynamic-profiles Auto-VLAN-Demux interfaces demux0 unit “$junos-interface-unit”] user@host# edit family pppoe
Prevent multiple PPPoE sessions from being created for the same PPPoE subscriber on the same VLAN interface.
content_copy zoom_out_map[edit dynamic-profiles Auto-VLAN-Demux interfaces demux0 unit “$junos-interface-unit” family pppoe] user@host# set duplicate-protection
Apply the dynamic PPP interface profile to any dynamic PPP interfaces.
content_copy zoom_out_map[edit dynamic-profiles Auto-VLAN-Demux interfaces demux0 unit “$junos-interface-unit” family pppoe] user@host# set dynamic-profile PPP-Base-PAP
Configuring a Dynamic Profile to Create Dynamic Dual-Tagged VLANs
CLI Quick Configuration
To quickly configure the dynamic profile used to dynamically create stacked/dual-tagged VLANs in the example:
[edit] set dynamic-profiles Auto-Stacked-VLAN-Demux interfaces demux0 unit $junos-interface-unit demux-source inet set dynamic-profiles Auto-Stacked-VLAN-Demux interfaces demux0 unit $junos-interface-unit proxy-arp set dynamic-profiles Auto-Stacked-VLAN-Demux interfaces demux0 unit $junos-interface-unit vlan-tags outer $junos-stacked-vlan-id set dynamic-profiles Auto-Stacked-VLAN-Demux interfaces demux0 unit $junos-interface-unit vlan-tags inner $junos-vlan-id set dynamic-profiles Auto-Stacked-VLAN-Demux interfaces demux0 unit $junos-interface-unit demux options underlying-interface $junos-interface-ifd-name set dynamic-profiles Auto-Stacked-VLAN-Demux interfaces demux0 unit $junos-interface-unit family inet unnumbered-address lo0.0 preferred source-address 100.100.100.1 set dynamic-profiles Auto-Stacked-VLAN-Demux interfaces demux0 unit $junos-interface-unit family pppoe duplicate-protection set dynamic-profiles Auto-Stacked-VLAN-Demux interfaces demux0 unit $junos-interface-unit family pppoe dynamic-profile PPP-Base-PAP
Step-by-Step Procedure
For both dynamic DHCP IP demux and dynamic PPPoE interfaces to reside concurrently on a VLAN interface, the VLAN interface must first exist.
To configure a dynamic profile that automatically creates stacked/dual-tagged VLAN interfaces:
Create a dynamic profile for automatically creating VLAN interfaces.
content_copy zoom_out_map[edit] user@host# edit dynamic-profiles Auto-Stacked-VLAN-Demux
Specify that the dynamic VLAN profile use the demux interface.
content_copy zoom_out_map[edit dynamic-profiles “Auto-Stacked-VLAN-Demux”] user@host# edit interfaces demux0
Specify that the dynamic profile apply the demux interface unit value to the dynamic VLANs.
content_copy zoom_out_map[edit dynamic-profiles Auto-Stacked-VLAN-Demux interfaces demux0] user@host# edit unit $junos-interface-unit
Specify that the demux source accept IPv4 (inet) packets.
content_copy zoom_out_map[edit dynamic-profiles Auto-Stacked-VLAN-Demux interfaces demux0 unit “$junos-interface-unit”] user@host# set demux-source inet
(Optional) Specify that each dynamically created interface respond to any ARP request, as long as an active route exists to the target address of the ARP request.
content_copy zoom_out_map[edit dynamic-profiles Auto-Stacked-VLAN-Demux interfaces demux0 unit “$junos-interface-unit”] user@host# set proxy-arp
Specify that the outer VLAN ID is dynamically created.
content_copy zoom_out_map[edit dynamic-profiles Auto-Stacked-VLAN-Demux interfaces demux0 unit “$junos-interface-unit”] user@host# set vlan-id -tags outer $junos-stacked-vlan-id
Specify that the inner VLAN ID is dynamically created.
content_copy zoom_out_map[edit dynamic-profiles Auto-Stacked-VLAN-Demux interfaces demux0 unit “$junos-interface-unit”] user@host# set vlan-id -tags inner $junos-vlan-id
Specify the logical underlying interface for the dynamic VLANs.
content_copy zoom_out_map[edit dynamic-profiles Auto-Stacked-VLAN-Demux interfaces demux0 unit “$junos-interface-unit”] user@host# set demux-options underlying-interface $junos-interface-ifd-name
Specify that the VLAN demux interface can accept inet family packets for IP over Ethernet/DHCP subscribers.
content_copy zoom_out_map[edit dynamic-profiles Auto-Stacked-VLAN-Demux interfaces demux0 unit “$junos-interface-unit”] user@host# edit family inet
Specify the loopback address as the unnumbered address and preferred source address for the inet family.
content_copy zoom_out_map[edit dynamic-profiles Auto-Stacked-VLAN-Demux interfaces demux0 unit “$junos-interface-unit” family inet] user@host# set unnumbered-address lo0.0 preferred-source-address 100.100.100.1
Specify that the VLAN demux interface can accept pppoe family packets for PPPoE subscribers.
content_copy zoom_out_map[edit dynamic-profiles Auto-Stacked-VLAN-Demux interfaces demux0 unit “$junos-interface-unit”] user@host# edit family pppoe
Prevent the activation of another dynamic PPPoE logical interface on the same demux underlying interface.
content_copy zoom_out_map[edit dynamic-profiles Auto-Stacked-VLAN-Demux interfaces demux0 unit “$junos-interface-unit” family pppoe] user@host# set duplicate-protection
Apply the dynamic PPP interface profile to any dynamic PPP interfaces.
content_copy zoom_out_map[edit dynamic-profiles Auto-Stacked-VLAN-Demux interfaces demux0 unit “$junos-interface-unit” family pppoe] user@host# set dynamic-profile PPP-Base-PAP
Configuring a Dynamic Profile to Create Dynamic IP Demux Interfaces
CLI Quick Configuration
To quickly configure the dynamic profile used to dynamically create DHCP IP demux interfaces in the example:
[edit] set dynamic-profiles DHCP-IP-Demux interfaces demux0 unit $junos-interface-unit proxy-arp set dynamic-profiles DHCP-IP-Demux interfaces demux0 unit $junos-interface-unit demux-options underlying-interface $junos-underlying-interface set dynamic-profiles DHCP-IP-Demux interfaces demux0 unit $junos-interface-unit family inet demux-source $junos-subscriber-ip-address set dynamic-profiles DHCP-IP-Demux interfaces demux0 unit $junos-interface-unit family inet unnumbered-address lo0.0 preferred-source-address 100.100.100.1
Step-by-Step Procedure
To configure a dynamic profile that automatically creates IP demux interfaces:
Create a dynamic profile for dynamically creating IP demux interfaces.
content_copy zoom_out_map[edit] user@host# edit dynamic-profiles DHCP-IP-Demux
Specify that the dynamic profile use the demux0 interface.
content_copy zoom_out_map[edit dynamic-profiles DHCP-IP-Demux] user@host# edit interfaces demux0
Specify that the dynamic profile apply the interface unit value to the dynamic PPPoE interfaces.
content_copy zoom_out_map[edit dynamic-profiles DHCP-IP-Demux interfaces demux0] user@host# edit unit $junos-interface-unit
(Optional) Configure the router to respond to any ARP request, as long as the router has an active route to the target address of the ARP request.
content_copy zoom_out_map[edit dynamic-profiles DHCP-IP-Demux interfaces demux0 unit “$junos-interface-unit”] user@host# set proxy-arp
Specify the logical underlying interface for the dynamic IP demux interfaces.
content_copy zoom_out_map[edit dynamic-profiles DHCP-IP-Demux interfaces demux0 unit “$junos-interface-unit”] user@host# set demux-options underlying-interface $junos-underlying-interface
Specify the protocol family information for the dynamic IP demux interfaces.
content_copy zoom_out_map[edit dynamic-profiles DHCP-IP-Demux interfaces demux0 unit “$junos-interface-unit”] user@host# edit family inet
Specify the demux source address is obtained from the incoming subscriber IP address.
content_copy zoom_out_map[edit dynamic-profiles DHCP-IP-Demux interfaces demux0 unit “$junos-interface-unit” family inet] user@host# set demux-source $junos-subscriber-ip-address
Specify the loopback interface as the unnumbered address and the demux interface IP address as the preferred source address for the dynamic IP demux interfaces.
content_copy zoom_out_map[edit dynamic-profiles DHCP-IP-Demux interfaces demux0 unit “$junos-interface-unit” family inet] user@host# set unnumbered-address lo0.0 preferred-source-address 100.100.100.1
Configuring a Dynamic Profile to Create Dynamic PPPoE Interfaces
CLI Quick Configuration
To quickly configure the dynamic profile used to dynamically create PPPoE interfaces in the example:
[edit] set dynamic-profiles PPP-Base-PAP interfaces pp0 unit $junos-interface-unit ppp-options pap set dynamic-profiles PPP-Base-PAP interfaces pp0 unit $junos-interface-unit pppoe-options underlying-interface $junos-underlying-interface server set dynamic-profiles PPP-Base-PAP interfaces pp0 unit $junos-interface-unit no-keepalives set dynamic-profiles PPP-Base-PAP interfaces pp0 unit $junos-interface-unit family inet unnumbered-address lo0.0
Step-by-Step Procedure
Create a dynamic profile for automatically creating PPPoE interfaces.
content_copy zoom_out_map[edit] user@host# edit dynamic-profiles PPP-Base-PAP
Specify that the dynamic PPPoE profile use the pp0 interface.
content_copy zoom_out_map[edit dynamic-profiles PPP-Base-PAP] user@host# edit interfaces pp0
Specify that the dynamic profile apply the interface unit value to the dynamic PPPoE interfaces.
content_copy zoom_out_map[edit dynamic-profiles PPP-Base-PAP interfaces pp0] user@host# edit unit $junos-interface-unit
Specify that dynamically created PPPoE interfaces use PAP authentication.
content_copy zoom_out_map[edit dynamic-profiles PPP-Base-PAP interfaces pp0 unit “$junos-interface-unit”] user@host# set ppp-options pap
Specify the logical underlying interface for the dynamic PPPoE interfaces.
content_copy zoom_out_map[edit dynamic-profiles PPP-Base-PAP interfaces pp0 unit “$junos-interface-unit”] user@host# set pppoe-options underlying-interface $junos-underlying-interface
Specify that the router act as a PPPoE server.
content_copy zoom_out_map[edit dynamic-profiles PPP-Base-PAP interfaces pp0 unit “$junos-interface-unit”] user@host# set pppoe-options server
(Optional) Disable the sending of keepalive messages on the dynamic PPPoE interfaces.
content_copy zoom_out_map[edit dynamic-profiles PPP-Base-PAP interfaces pp0 unit “$junos-interface-unit”] user@host# set no-keepalives
Specify the protocol family information for the dynamic PPPoE interfaces.
content_copy zoom_out_map[edit dynamic-profiles PPP-Base-PAP interfaces pp0 unit “$junos-interface-unit”] user@host# edit family inet
Specify the loopback interface as the unnumbered address for the dynamic PPPoE interfaces.
content_copy zoom_out_map[edit dynamic-profiles PPP-Base-PAP interfaces pp0 unit “$junos-interface-unit”] user@host# set unnumbered-address lo0.0