Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation

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.

Note: You can also configure dynamic IP over Ethernet/DHCP and PPPoE interfaces concurrently over the same static VLAN interface. For information on how to configure static VLAN interfaces, see the Ethernet Interfaces.

Requirements

Before you begin, make sure to configure either DHCP Relay or DHCP Local Server. You can find information about configuring either of these components in the Junos OS Subscriber Management and Services Library.

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

CLI Quick Configuration

To quickly configure the aggregated Ethernet interface over which subscribers access the router:

[edit]set chassis aggregated-devices ethernet device-count 1set interfaces ge-5/0/9 gigether-options 802.3ad ae0set interfaces ge-5/1/9 gigether-options 802.3ad ae0set interfaces ae0 flexible-vlan-taggingset interfaces ae0 auto-configure vlan-ranges dynamic-profile Auto-VLAN-Demux accept anyset interfaces ae0 auto-configure vlan-ranges dynamic-profile Auto-VLAN-Demux ranges ranges 1000-1500set interfaces ae0 auto-configure stacked-vlan-ranges dynamic-profile Auto-Stacked-VLAN-Demux accept anyset interfaces ae0 auto-configure stacked-vlan-ranges dynamic-profile Auto-Stacked-VLAN-Demux ranges 1501-2000,anyset interfaces ae0 aggregated-ether-options lacp activeset 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:

  1. Access the physical interface over which you want subscribers to initially access the router.
    [edit]user@host# edit interfaces ge-5/0/9
  2. Specify the aggregated Ethernet interface to which the physical interface belongs.
    [edit interfaces ge-5/0/9]user@host# set gigether-options 802.3ad ae0
  3. Repeat Step 1 and Step 2for each interface you want to assign to the aggregated Ethernet bundle.
    [edit]user@host# set interfaces ge-5/1/9 gigether-options 802.3ad ae0
  4. Access the aggregated Ethernet interface.
    [edit]user@host# edit interfaces ae0
  5. Specify the VLAN tagging that you want the aggregated Ethernet interfaces to use.
    [edit interfaces ae0]user@host# set flexible-vlan-tagging
  6. Edit the auto-configure stanza to automatically configure VLANs.
    [edit interfaces ae0]user@host# edit auto-configure
  7. Edit the vlan-ranges stanza for single-tagged VLANs.
    [edit interfaces ae0 auto-configure]user@host# edit vlan-ranges
  8. Specify the dynamic VLAN profile that you want the interface to use for dynamically creating single-tagged VLANs.
    [edit interfaces ae0 auto-configure vlan-ranges]user@host# edit dynamic-profile Auto-VLAN-Demux
  9. Specify what VLAN Ethernet packet type the VLAN profile accepts.
    [edit interfaces ae0 auto-configure vlan-ranges dynamic-profile Auto-VLAN-Demux]user@host# set accept any
  10. 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.
    [edit interfaces ae0 auto-configure vlan-ranges dynamic-profile Auto-VLAN-Demux]user@host# set ranges 1000-1500
  11. Edit the stacked-vlan-ranges stanza for the dual-tagged VLANs.
    [edit interfaces ae0 auto-configure]user@host# edit stacked-vlan-ranges
  12. Specify the dynamic VLAN profile that you want the interface to use for dynamically creating dual-tagged VLANs.
    [edit interfaces ae0 auto-configure stacked-vlan-ranges]user@host# edit dynamic-profile Auto-Stacked-VLAN-Demux
  13. Specify what VLAN Ethernet packet type the stacked VLAN profile accepts.
    [edit interfaces ae0 auto-configure stacked-vlan-ranges dynamic-profile Auto-Stacked-VLAN-Demux]user@host# set accept any
  14. 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).
    [edit interfaces ge-5/0/9 auto-configure stacked-vlan-ranges dynamic-profile Auto-Stacked-VLAN-Demux]user@host# set ranges 1501-2000,any
  15. (Optional) Activate the transmission of LACP packets on the aggregated Ethernet interfaces.
    [edit interfaces ae0]user@host# set aggregated-ether-options lacp active
  16. Specify that the aggregated Ethernet interfaces use link protection.
    [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:

  1. Configure a loopback interface.
    [edit]user@host# edit interfaces lo0.0
  2. Specify that the loopback interface accept inet packets.
    [edit interfaces lo0 unit 0]user@host# edit family inet
  3. Specify the IP address for the loopback interface.
    [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 inetset dynamic-profiles Auto-VLAN-Demux interfaces demux0 unit $junos-interface-unit proxy-arpset dynamic-profiles Auto-VLAN-Demux interfaces demux0 unit $junos-interface-unit vlan-id $junos-vlan-idset dynamic-profiles Auto-VLAN-Demux interfaces demux0 unit $junos-interface-unit demux options underlying-interface $junos-interface-ifd-nameset dynamic-profiles Auto-VLAN-Demux interfaces demux0 unit $junos-interface-unit family inet unnumbered-address lo0.0 preferred source-address 100.100.100.1set dynamic-profiles Auto-VLAN-Demux interfaces demux0 unit $junos-interface-unit family pppoe duplicate-protectionset 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:

  1. Create a dynamic profile for automatically creating VLAN interfaces.
    [edit]user@host# edit dynamic-profiles Auto-VLAN-Demux
  2. Specify that the dynamic VLAN profile use the demux interface.
    [edit dynamic-profiles “Auto-VLAN-Demux”]user@host# edit interfaces demux0
  3. Specify that the dynamic profile apply the demux interface unit value to the dynamic VLANs.
    [edit dynamic-profiles Auto-VLAN-Demux interfaces demux0]user@host# edit unit $junos-interface-unit
  4. Specify that the demux source accept IPv4 (inet) packets.
    [edit dynamic-profiles Auto-VLAN-Demux interfaces demux0 unit “$junos-interface-unit”]user@host# set demux-source inet
  5. (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.
    [edit dynamic-profiles Auto-VLAN-Demux interfaces demux0 unit “$junos-interface-unit”]user@host# set proxy-arp
  6. Specify that VLAN IDs are dynamically created.
    [edit dynamic-profiles Auto-VLAN-Demux interfaces demux0 unit “$junos-interface-unit”]user@host# set vlan-id $junos-vlan-id
  7. Specify the logical underlying interface for the dynamic VLANs.
    [edit dynamic-profiles Auto-VLAN-Demux interfaces demux0 unit “$junos-interface-unit”]user@host# set demux-options underlying-interface $junos-interface-ifd-name
  8. Specify that the VLAN demux interface can accept inet family packets for IP over Ethernet/DHCP subscribers.
    [edit dynamic-profiles Auto-VLAN-Demux interfaces demux0 unit “$junos-interface-unit”]user@host# edit family inet
  9. Specify the loopback address as the unnumbered address and preferred source address for the inet family.
    [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
  10. Specify that the VLAN demux interface can accept pppoe family packets for PPPoE subscribers.
    [edit dynamic-profiles Auto-VLAN-Demux interfaces demux0 unit “$junos-interface-unit”]user@host# edit family pppoe
  11. Prevent multiple PPPoE sessions from being created for the same PPPoE subscriber on the same VLAN interface.
    [edit dynamic-profiles Auto-VLAN-Demux interfaces demux0 unit “$junos-interface-unit” family pppoe]user@host# set duplicate-protection
  12. Apply the dynamic PPP interface profile to any dynamic PPP interfaces.
    [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 inetset dynamic-profiles Auto-Stacked-VLAN-Demux interfaces demux0 unit $junos-interface-unit proxy-arpset dynamic-profiles Auto-Stacked-VLAN-Demux interfaces demux0 unit $junos-interface-unit vlan-tags outer $junos-stacked-vlan-idset dynamic-profiles Auto-Stacked-VLAN-Demux interfaces demux0 unit $junos-interface-unit vlan-tags inner $junos-vlan-idset dynamic-profiles Auto-Stacked-VLAN-Demux interfaces demux0 unit $junos-interface-unit demux options underlying-interface $junos-interface-ifd-nameset dynamic-profiles Auto-Stacked-VLAN-Demux interfaces demux0 unit $junos-interface-unit family inet unnumbered-address lo0.0 preferred source-address 100.100.100.1set dynamic-profiles Auto-Stacked-VLAN-Demux interfaces demux0 unit $junos-interface-unit family pppoe duplicate-protectionset 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:

  1. Create a dynamic profile for automatically creating VLAN interfaces.
    [edit]user@host# edit dynamic-profiles Auto-Stacked-VLAN-Demux
  2. Specify that the dynamic VLAN profile use the demux interface.
    [edit dynamic-profiles “Auto-Stacked-VLAN-Demux”]user@host# edit interfaces demux0
  3. Specify that the dynamic profile apply the demux interface unit value to the dynamic VLANs.
    [edit dynamic-profiles Auto-Stacked-VLAN-Demux interfaces demux0]user@host# edit unit $junos-interface-unit
  4. Specify that the demux source accept IPv4 (inet) packets.
    [edit dynamic-profiles Auto-Stacked-VLAN-Demux interfaces demux0 unit “$junos-interface-unit”]user@host# set demux-source inet
  5. (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.
    [edit dynamic-profiles Auto-Stacked-VLAN-Demux interfaces demux0 unit “$junos-interface-unit”]user@host# set proxy-arp
  6. Specify that the outer VLAN ID is dynamically created.
    [edit dynamic-profiles Auto-Stacked-VLAN-Demux interfaces demux0 unit “$junos-interface-unit”]user@host# set vlan-id -tags outer $junos-stacked-vlan-id
  7. Specify that the inner VLAN ID is dynamically created.
    [edit dynamic-profiles Auto-Stacked-VLAN-Demux interfaces demux0 unit “$junos-interface-unit”]user@host# set vlan-id -tags inner $junos-vlan-id
  8. Specify the logical underlying interface for the dynamic VLANs.
    [edit dynamic-profiles Auto-Stacked-VLAN-Demux interfaces demux0 unit “$junos-interface-unit”]user@host# set demux-options underlying-interface $junos-interface-ifd-name
  9. Specify that the VLAN demux interface can accept inet family packets for IP over Ethernet/DHCP subscribers.
    [edit dynamic-profiles Auto-Stacked-VLAN-Demux interfaces demux0 unit “$junos-interface-unit”]user@host# edit family inet
  10. Specify the loopback address as the unnumbered address and preferred source address for the inet family.
    [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
  11. Specify that the VLAN demux interface can accept pppoe family packets for PPPoE subscribers.
    [edit dynamic-profiles Auto-Stacked-VLAN-Demux interfaces demux0 unit “$junos-interface-unit”]user@host# edit family pppoe
  12. Prevent the activation of another dynamic PPPoE logical interface on the same demux underlying interface.
    [edit dynamic-profiles Auto-Stacked-VLAN-Demux interfaces demux0 unit “$junos-interface-unit” family pppoe]user@host# set duplicate-protection
  13. Apply the dynamic PPP interface profile to any dynamic PPP interfaces.
    [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-arpset dynamic-profiles DHCP-IP-Demux interfaces demux0 unit $junos-interface-unit demux-options underlying-interface $junos-underlying-interfaceset dynamic-profiles DHCP-IP-Demux interfaces demux0 unit $junos-interface-unit family inet demux-source $junos-subscriber-ip-addressset 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:

  1. Create a dynamic profile for dynamically creating IP demux interfaces.
    [edit]user@host# edit dynamic-profiles DHCP-IP-Demux
  2. Specify that the dynamic profile use the demux0 interface.
    [edit dynamic-profiles DHCP-IP-Demux]user@host# edit interfaces demux0
  3. Specify that the dynamic profile apply the interface unit value to the dynamic PPPoE interfaces.
    [edit dynamic-profiles DHCP-IP-Demux interfaces demux0]user@host# edit unit $junos-interface-unit
  4. (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.
    [edit dynamic-profiles DHCP-IP-Demux interfaces demux0 unit “$junos-interface-unit”]user@host# set proxy-arp
  5. Specify the logical underlying interface for the dynamic IP demux interfaces.
    [edit dynamic-profiles DHCP-IP-Demux interfaces demux0 unit “$junos-interface-unit”]user@host# set demux-options underlying-interface $junos-underlying-interface
  6. Specify the protocol family information for the dynamic IP demux interfaces.
    [edit dynamic-profiles DHCP-IP-Demux interfaces demux0 unit “$junos-interface-unit”]user@host# edit family inet
  7. Specify the demux source address is obtained from the incoming subscriber IP address.
    [edit dynamic-profiles DHCP-IP-Demux interfaces demux0 unit “$junos-interface-unit” family inet]user@host# set demux-source $junos-subscriber-ip-address
  8. 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.
    [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 papset dynamic-profiles PPP-Base-PAP interfaces pp0 unit $junos-interface-unit pppoe-options underlying-interface $junos-underlying-interface serverset dynamic-profiles PPP-Base-PAP interfaces pp0 unit $junos-interface-unit no-keepalivesset dynamic-profiles PPP-Base-PAP interfaces pp0 unit $junos-interface-unit family inet unnumbered-address lo0.0

Step-by-Step Procedure

  1. Create a dynamic profile for automatically creating PPPoE interfaces.
    [edit]user@host# edit dynamic-profiles PPP-Base-PAP
  2. Specify that the dynamic PPPoE profile use the pp0 interface.
    [edit dynamic-profiles PPP-Base-PAP]user@host# edit interfaces pp0
  3. Specify that the dynamic profile apply the interface unit value to the dynamic PPPoE interfaces.
    [edit dynamic-profiles PPP-Base-PAP interfaces pp0]user@host# edit unit $junos-interface-unit
  4. Specify that dynamically created PPPoE interfaces use PAP authentication.
    [edit dynamic-profiles PPP-Base-PAP interfaces pp0 unit “$junos-interface-unit”]user@host# set ppp-options pap
  5. Specify the logical underlying interface for the dynamic PPPoE interfaces.
    user@host# set ppp-options pap
    [edit dynamic-profiles PPP-Base-PAP interfaces pp0 unit “$junos-interface-unit”]user@host# set pppoe-options underlying-interface $junos-underlying-interface
  6. Specify that the router act as a PPPoE server.
    [edit dynamic-profiles PPP-Base-PAP interfaces pp0 unit “$junos-interface-unit”]user@host# set pppoe-options server
  7. (Optional) Disable the sending of keepalive messages on the dynamic PPPoE interfaces.
    [edit dynamic-profiles PPP-Base-PAP interfaces pp0 unit “$junos-interface-unit”]user@host# set no-keepalives
  8. Specify the protocol family information for the dynamic PPPoE interfaces.
    [edit dynamic-profiles PPP-Base-PAP interfaces pp0 unit “$junos-interface-unit”]user@host# edit family inet
  9. Specify the loopback interface as the unnumbered address for the dynamic PPPoE interfaces.
    [edit dynamic-profiles PPP-Base-PAP interfaces pp0 unit “$junos-interface-unit”]user@host# set unnumbered-address lo0.0

Verification

Subscriber Verification

Purpose

View subscriber information on the router.

Action

  • To display dynamic subscriber information:
    user@host# show subscribers detail

Interface Verification

Purpose

View interface-specific information on the router.

Action

  • To display interface-specific output:
    user@host# show interfaces interface-name

Published: 2013-07-31