ON THIS PAGE
Example: Dynamic IP Demux Subscriber Interfaces over Dynamic VLAN Demux Interfaces
This example describes how to configure dynamic IP demux interfaces over dynamic VLAN demux interfaces.
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.
Also, before you begin, see the conceptual information about VLAN demux interfaces in:
Overview
You can create a subscriber interface using an IP demux interface stacked on a static or dynamic VLAN demux interface. IP demux interfaces are used to uniquely identify subscribers in an access network based on their IP address.
Configuration
- Preparing a Subscriber Access Interface
- Preparing the Loopback Interface
- Configuring a Dynamic Profile to Dynamically Create Single-Tagged VLANs
- Configuring a Dynamic Profile to Dynamically Create IP Demux 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 inet set interfaces ae0 auto-configure vlan-ranges dynamic-profile Auto-VLAN-Demux ranges 500-1000 set interfaces ae0 aggregated-ether-options lacp active set interfaces ae0 aggregated-ether-options lacp link-protection
Step-by-Step Procedure
You must configure an interface over which 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.
If you want it to automatically create dynamic VLANs, the interface must include the VLAN range type (single or stacked) and contain any specific ranges you want the VLANs to use.
To configure an interface for subscriber access:
Configure the number of aggregated Ethernet interfaces on the router.
[edit] user@host# set chassis aggregated-devices ethernet device-count 1
Access the physical interface over which you want subscribers to initially access the router.
[edit] user@host# edit interfaces ge-5/0/9
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
Repeat Step 2 and Step 3 for 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
Access the aggregated Ethernet interface.
[edit] user@host# edit interfaces ae0
Specify the VLAN tagging that you want the aggregated Ethernet interfaces to use.
[edit interfaces ae0] user@host# set vlan-tagging
Edit the
auto-configure
stanza to automatically configure VLANs.[edit interfaces ae0] user@host# edit auto-configure
Edit the
vlan-ranges
stanza for single-tagged VLANs.[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.
[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.
[edit interfaces ae0 auto-configure vlan-ranges dynamic-profile Auto-VLAN-Demux] user@host# set accept inet
Specify the VLAN ranges that you want the dynamic profile to use. The following example specifies a lower VLAN ID limit of 500 and an upper VLAN ID limit of 1000.
[edit interfaces ae0 auto-configure vlan-ranges dynamic-profile Auto-VLAN-Demux] user@host# set ranges 500-1000
(Optional) Activate the transmission of LACP packets on the aggregated Ethernet interfaces.
[edit interfaces ae0] user@host# set aggregated-ether-options lacp active
Specify that the aggregated Ethernet interfaces use link protection.
[edit interfaces ae0] user@host# set aggregated-ether-options lacp 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 198.51.100.100/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.
[edit] user@host# edit interfaces lo0.0
Specify that the loopback interface accept inet packets.
[edit interfaces lo0 unit 0] user@host# edit family inet
Specify the IP address for the loopback interface.
[edit interfaces lo0 unit 0 family inet] user@host# set address 198.51.100.100/32
Configuring a Dynamic Profile to Dynamically Create 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 198.51.100.100
Step-by-Step Procedure
For dynamic IP demux interfaces to reside on a dynamic VLAN demux interface, the VLAN interface must first exist.
A dynamic profile that configures a VLAN demux interface must specify variables for unit, underlying interface name, and VLAN ID. A dynamic VLAN demux interface associates specific subscribers to separate individual circuits by VLAN ID.
To configure a dynamic profile and attach it to a dynamic VLAN demux interface so that it automatically creates VLAN interfaces:
Create a dynamic profile for automatically creating single-tagged VLAN interfaces.
[edit] user@host# edit dynamic-profiles Auto-VLAN-Demux
Specify that the dynamic VLAN profile use the demux interface.
[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.
[edit dynamic-profiles Auto-VLAN-Demux interfaces demux0] user@host# edit unit $junos-interface-unit
(Optional) Specify that the demux source accepts only IPv4 (inet) packets.
[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.
[edit dynamic-profiles Auto-VLAN-Demux interfaces demux0 unit “$junos-interface-unit”] user@host# set proxy-arp
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
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
Specify that the VLAN demux interface can accept inet family packets for IPoE/DHCP subscribers.
[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.
[edit dynamic-profiles Auto-VLAN-Demux interfaces demux0 unit “$junos-interface-unit” family inet] user@host# set unnumbered-address lo0.0 preferred-source-address 198.51.100.100
Configuring a Dynamic Profile to Dynamically Create IP Demux Interfaces
CLI Quick Configuration
To quickly configure the dynamic profile used to dynamically create 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 198.51.100.100
Step-by-Step Procedure
A dynamic profile that configures an IP demux interface must specify variables for unit, underlying interface name, and IP address. A dynamic IP demux interface associates specific subscribers to separate individual circuits by IP address.
To configure a dynamic profile and attach it to an interface so that it automatically creates IP demux interfaces:
Create a dynamic profile for dynamically creating IP demux interfaces.
[edit] user@host# edit dynamic-profiles DHCP-IP-Demux
Specify that the dynamic profile use the demux0 interface.
[edit dynamic-profiles DHCP-IP-Demux] user@host# edit interfaces demux0
Specify that the dynamic profile apply the interface unit value to the dynamic IP demux interfaces.
[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.
[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.
[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.
[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.
[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.
[edit dynamic-profiles DHCP-IP-Demux interfaces demux0 unit “$junos-interface-unit” family inet] user@host# set unnumbered-address lo0.0 preferred-source-address 198.51.100.100
Verification
Subscriber Verification
Purpose
View subscriber information on the router.
Action
To display dynamic subscriber information:
user@host# show subscribers detail