Example: Configuring IPv6 Dynamic VLAN Demux Interfaces over an Aggregated Ethernet Underlying Interface with DHCP Local Server
This example shows how to configure the dynamic creation of IPv6 VLAN demux interfaces with aggregated Ethernet as the underlying interface. DHCP Local Server configuration enables the association of subscribers to the VLAN demux interface by listing the aggregated Ethernet interface in the DHCP local server configuration.
![]() | Note: VLAN demux subscriber interfaces over aggregated Ethernet physical interfaces are supported only for MX Series routers that have only MPCs installed. If the router has other cards in addition to MPCs, the CLI accepts the configuration but errors are reported when the subscriber interfaces are brought up. |
To configure dynamic subscribers on dynamic VLAN demux interfaces:
- Enable VLAN tagging and VLAN auto-configuration on the
underlying aggregated Ethernet interface that you plan to use for
dynamically created VLAN demux interfaces.interfaces {ae1 {vlan-tagging;auto-configure {vlan-ranges {dynamic-profile auto-vlanDemux-profile {accept inet6;ranges {any;}}}}aggregated-ether-options {minimum-links 1;lacp {active;periodic slow;link-protection {non-revertive;}}}}}
- Define the gigabit Ethernet interfaces that are part of
the aggregated Ethernet interface.interfaces {ge-5/0/0 {gigether-options {802.3ad ae1;}}ge-5/2/0 {gigether-options {802.3ad ae1;}}}
- Define the loopback interface.interfaces {lo0 {unit 0 {family inet6 {address 2009:174:1:1::1/128;}}}}
- Configure a dynamic profile for subscriber access.dynamic-profiles {user-profile {interfaces {"$junos-interface-ifd-name" {unit "$junos-underlying-interface-unit" {family inet6;}}}}}
- Configure a dynamic profile for VLAN demux interface creation. dynamic-profiles {auto-vlanDemux-profile {interfaces {demux0 {unit "$junos-interface-unit" {vlan-id "$junos-vlan-id";demux-options {underlying-interface "$junos-interface-ifd-name";}family inet6 {filter {input v6_rate_limit;output v6_rate_limit;}unnumbered-address lo0.0 preferred-source-address 2009:174:1:1::1;}}}}}}
- Configure the access method used to dynamically create
the subscriber interfaces. The following stanza specifies the aggregated
Ethernet interface (ae1.0) for use with the dynamically created
subscriber interfaces.system {services {dhcp-local-server {dhcpv6 {group myV6DhcpGroup {authentication {password test;username-include {user-prefix igmp-user1;}}dynamic-profile user-profile;interface ae1.0;}}}}}
Instead of using the aggregated Ethernet interface, you can alternatively specify demux0 as the device to use with the subscriber interfaces as follows:

Note: Because the demux interfaces and unit values are created dynamically, the unit number is not specified for the demux0 interface.
system {services {dhcp-local-server {dhcpv6 {group myV6DhcpGroup {authentication {password test;username-include {user-prefix igmp-user1;}}dynamic-profile user-profile;interface demux0;}}}}}

