Configuring Dynamic VLAN Subscriber Interfaces Based on Access-Line Identifiers
After you define the dynamic access-line-identifier (ALI) interface set and enable creation of ALI-based dynamic VLAN subscriber interfaces on the underlying VLAN interface, you must complete the configuration by associating the ALI interface set with the PPPoE or IP demultiplexing (IP demux) subscriber interface in the dynamic profile for the subscriber interface.
Before you begin:
Create a dynamic profile that defines the logical subscriber interface.
See the following topics:
To configure a dynamic VLAN subscriber interface based on the ALI:
In the dynamic profile for the PPPoE or IP demux subscriber interface, associate the dynamic ALI interface set with the dynamic VLAN subscriber interface name (
pp0
ordemux0
) and logical unit number.[edit dynamic-profiles profile-name] user@host# set interfaces interface-set $junos-interface-set-name interface interface-name unit $junos-interface-unit
For example, the following statement in a dynamic profile named ali-vlan-pppoe-profile associates the dynamic ALI interface set with the dynamic pp0 (PPPoE) logical subscriber interface. You must use the predefined dynamic variable $junos-interface-set-name to represent the name of the dynamic ALI interface set, and $junos-interface-unit to represent the logical unit number of the subscriber interface.
[edit dynamic-profiles ali-vlan-pppoe-profile] user@host# set interfaces interface-set $junos-interface-set-name interface pp0 unit $junos-interface-unit
Similarly, the following statement in a dynamic profile named ali-vlan-demux-profile associates the dynamic ALI interface set (represented by $junos-interface-set-name) with the demux0 (IP demux) logical subscriber interface.
[edit dynamic-profiles ali-vlan-demux-profile] user@host# set interfaces interface-set $junos-interface-set-name interface demux0 unit $junos-interface-unit
The following examples show the dynamic configurations that use each of these statements. The following sample configuration shows a dynamic profile named ali-vlan-pppoe-profile for an ALI-based dynamic PPPoE (pp0) subscriber interface for use by PPPoE subscribers.
[edit dynamic-profiles ali-vlan-pppoe-profile] interfaces { interface-set "$junos-interface-set-name" { interface pp0 { unit "$junos-interface-unit"; } } pp0 { unit "$junos-interface-unit" { ppp-options { chap; pap; } pppoe-options { underlying-interface "$junos-underlying-interface"; server; } no-keepalives; family inet { unnumbered-address lo0.0; } } } }
The following sample configuration shows a dynamic profile named ali-vlan-demux-profile for an ALI-based dynamic IP demux (demux0) subscriber interface for use by DHCP subscribers.
[edit dynamic-profiles ali-vlan-demux-profile] interfaces { interface-set "$junos-interface-set-name" { interface demux0 { unit "$junos-interface-unit"; } } demux0 { unit "$junos-interface-unit" { demux-options { underlying-interface "$junos-underlying-interface"; } family inet { demux-source { $junos-subscriber-ip-address; } unnumbered-address lo0.0 preferred-source-address 198.51.100.202; } } } }