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:
- 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;
- }
- }
- }
- }
- 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;
- }
- }
- }
- }
- }
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 aggregate-clients;
- active-server-group erx;
-
- group one {
- interface ge-0/0/2.0 upto ge-0/0/2.4000;
- interface-client-limit 200
- }
- }
- }
- 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;
- }
- }
- }
- }