You can configure dynamic subscriber interfaces using
IP 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 and specify the
$junos-underlying-interface
variable.The variable is dynamically replaced with the underlying interface
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-underlying-interface
- (Optional) To improve data path performance for DHCPv4
subscribers, specify that only subscribers with 32-bit prefixes are
allowed to come up on the interface.
[edit dynamic-profiles business-profile interfaces demux0 unit “$junos-interface-unit”]
user@host# set host-prefix-only
Note: This step requires that you specify the demux-source
as inet
.
[edit dynamic-profiles business-profile interfaces demux0 unit “$junos-interface-unit”]
user@host# set demux-source inet
- 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
- Configure the variable for the IP address of the demux
interface.
The variable is dynamically replaced with the IP address that
DHCP supplies when the subscriber logs in. For IPv4, use $junos-subscriber-ip-address
, For IPv6, use $junos-subscriber-ipv6-address
. For IPv6
multiple address support, use $junos-subscriber-ipv6-multi-address
.
[edit dynamic-profiles business-profile interfaces demux0 unit “$junos-interface-unit” family inet]
user@host# set demux-source $junos-subscriber-ip-address