Example: Configuring Subscribers on Dynamically Created VLAN Demux Interfaces
This example shows how to configure DHCP subscribers which reside on dynamically created (auto-sense) VLAN Demux Interfaces. DHCP triggers the dynamic creation of the demux interface when a subscriber logs in.
To configure subscribers on dynamic VLAN demux interfaces:
- Enable VLAN tagging on the underlying interface
that you plan to use for dynamically created VLAN demux interfaces.interfaces {ge-0/3/0 {vlan-tagging;}
- Define the loopback interface.lo0 {unit 0 {family inet {address 90.1.1.1/24;}}}
- Configure the creation of demux interfaces
in the dynamic profile. dynamic-profiles {subscriber-profile {interfaces {demux0 {unit "$junos-interface-unit" {demux-options {underlying-interface "$junos-interface-ifd-name";}family inet; filter {input ingressFilter;output egressFilter;}mac-validate loose;}vlan-id $junos-vlan-id;}}}}}
- Configure the access method used to dynamically
create the demux interface.

Note: DHCP relay is the access method used in this example.
forwarding-options {dhcp-relay {server-group {router {100.20.42.1;}active-server-group erx;group one {interface demux0;interface-client-limit 200}}}
