[ Contents] [ Prev] [ Next] [ Index] [ Report an Error]

Example: Configuring Dynamic Subscriber Interfaces on IP Demux Interfaces

This example shows how to configure dynamic subscriber interfaces on IP demux interfaces.

DHCP dynamically creates the demux interface when a subscriber logs in.

To configure subscribers on dynamic demux interfaces:

  1. Configure the static VLAN as the underlying interface.
    interfaces {
    ge-0/3/0 {
    vlan-tagging;
    unit 0 {
    vlan-id 0;
    demux-source inet;
    family inet {
    unnumbered-address lo0.0;
    }
    }
    }
    lo0 {
    unit 0 {
    family inet {
    address 90.1.1.1/24;
    }
    }
    }
    }
  2. Configure the creation of demux interfaces in the dynamic profile.
    dynamic-profiles {
    subscriber profile {
    interfaces {
    demux0 {
    "$junos-interface-ifd-name" {
    unit "$junos-interface-unit" {
    demux-options {
    underlying-interface "$junos-underlying-interface";
    }
    family inet {
    demux-source {
    $junos-subscriber-ip-address;
    }
    filter {
    input ingressFilter;
    output egressFilter;
    }
    mac-validate loose;
    }
    }
    }
    }
    }
  3. Configure the access method to dynamically create the demux interface.

    DHCP relay is the access method used in this example.

    forwarding-options {
    dhcp-relay {
    traceoptions {
    flag all;
    }
    server-group {
    router {
    100.20.42.1;
    }
    dynamic-profile subscriber-profile;
    active-server-group erx;
    group one {
    interface ge-0/0/2.0 upto ge-0/0/2.4000;
    interface-client-limit 200
    }
    }
    }
  4. Configure the interface for DHCP.
    interfaces {
    traceoptions {
    flag all;
    }
    ge-0/0/2 {
    unit 0 {
    demux-source inet;
    family inet {
    unnumbered-address lo0.0;
    }
    }
    }
    lo0 {
    unit 0 {
    family inet {
    address 100.20.32.2/32;
    }
    }
    }
    }

Related Topics


[ Contents] [ Prev] [ Next] [ Index] [ Report an Error]