You can configure dynamic subscriber interfaces using
VLAN demux interfaces.
To enable the dynamic demux interface to be created by DHCP,
you configure the demux options in a dynamic profile. Dynamic profiles
enable you to dynamically apply configured values (including CoS,
IGMP, or filter configuration) to the dynamic interfaces, making them
easier to manage.
Note: Only demux0 is supported. If you configure another demux
interface, such as demux1, the configuration commit fails.
To configure dynamic subscriber interfaces:
- Specify that you want to configure the
demux0
interface in the dynamic profile.user@host# edit dynamic-profiles business-profile interfaces demux0
- Configure the unit for the
demux0
interface. - Configure the variable for the unit number of the
demux0
interface.The variable is dynamically replaced with the unit number that
DHCP supplies when the subscriber logs in.
[edit dynamic-profiles business-profile interfaces demux0]
user@host# edit unit $junos-interface-unit
- Configure the variable for the underlying interface of
the demux interfaces by specifying the
$junos-interface-ifd-name
variable.The variable is dynamically replaced with the underlying device
name that DHCP supplies when the subscriber logs in.
[edit dynamic-profiles business-profile interfaces demux0 unit “$junos-interface-unit”]
user@host# set demux-options underlying-interface $junos-interface-ifd-name
- Configure the variable for the VLAN ID.
[edit dynamic-profiles business-profile interfaces demux0 unit “$junos-interface-unit”]
user@host# set vlan-id $junos-vlan-id
- Configure the family for the demux interfaces.
- Specify that you want to configure the family.
For IPv4:
[edit dynamic-profiles business-profile interfaces demux0 unit “$junos-interface-unit”]
user@host# edit family inet
For IPv6:
[edit dynamic-profiles business-profile interfaces demux0 unit “$junos-interface-unit”]
user@host# edit family inet6
- Configure the unnumbered address for the family.
[edit dynamic-profiles business-profile interfaces demux0 unit “$junos-interface-unit” family inet]
user@host# set unnumbered-address lo0.0