Technical Documentation

Example: Configuring IPv4 Dynamic VLAN Demux Interfaces Over a Gigabit Ethernet Underlying Interface with DHCP Local Server

This example shows how to configure the dynamic creation of IPv4 VLAN demux interfaces with gigabit 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.

To configure dynamic subscribers on dynamic VLAN demux interfaces:

  1. Enable VLAN tagging and VLAN auto-configuration on the underlying gigabit Ethernet interface that you plan to use for dynamically created VLAN demux interfaces.
    interfaces {ge-5/0/0 {hierarchical-scheduler;vlan-tagging;auto-configure {vlan-ranges {dynamic-profile auto-vlanDemux-profile {accept inet;ranges {103-103;}}}}}}
  2. Define the loopback interface.
    interfaces {lo0 {unit 0 {family inet {address 192.16.1.1/32;}}}}
  3. Configure a dynamic profile for subscriber access.
    dynamic-profiles {user-profile {interfaces {"$junos-interface-ifd-name" {unit "$junos-underlying-interface-unit" {family inet;}}}}}
  4. 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 inet {filter {input rate_limit;output rate_limit;}unnumbered-address lo0.0 preferred-source-address 192.16.1.1;}}}}}}
  5. Configure the access method used to dynamically create the subscriber interfaces. The following stanza specifies the gigabit Ethernet interface (ge-5/0/0.0) for use with the dynamically-created subscriber interfaces.
    system {services {dhcp-local-server {group myDhcpGroup {authentication {password test;username-include {user-prefix igmp-user1;}}dynamic-profile user-profile;interface ge-5/0/0.0;}}}}

    Instead of using the gigabit 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 numbers are created dynamically, the unit number is not specified for the demux0 interface.

    system {services {dhcp-local-server {group myDhcpGroup {authentication {password test;username-include {user-prefix igmp-user1;}}dynamic-profile user-profile;interface demux0;}}}}

Published: 2010-04-15