Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Announcement: Try the Ask AI chatbot for answers to your technical questions about Juniper products and solutions.

close
header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

Example: Configuring IPv4 Dynamic Stacked VLAN Demux Interfaces over an Aggregated Ethernet Underlying Interface with DHCP Local Server

date_range 06-Dec-23

This example shows how to configure the dynamic creation of IPv4 stacked 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:

  1. Enable VLAN tagging and VLAN auto-configuration on the underlying aggregated Ethernet interface that you plan to use for dynamically created VLAN demux interfaces.

    content_copy zoom_out_map
    interfaces {
        ae1 {
            flexible-vlan-tagging;
            auto-configure {
                stacked-vlan-ranges {
                    dynamic-profile auto-vlanDemux-profile {
                        accept inet;
                        ranges {
                            any;
                        }
                    }
                }
            }
            aggregated-ether-options {
                minimum-links 1;
                lacp {
                    active;
                    periodic slow;
                    link-protection {
                        non-revertive;
                    }
                }
            }
        }
    }
    
  2. Define the gigabit Ethernet interfaces that are part of the aggregated Ethernet interface.

    content_copy zoom_out_map
    interfaces {
        ge-5/0/0 {
            gigether-options {
                802.3ad ae1;
            }
        }
        ge-5/2/0 {
            gigether-options {
                802.3ad ae1;
            }
        }
    }
    
  3. Define the loopback interface.

    content_copy zoom_out_map
    interfaces {
        lo0 {
            unit 0 {
                family inet {
                    address 127.16.1.1/32;
                }
            }
        }
    }
    
  4. Configure a dynamic profile for subscriber access.

    content_copy zoom_out_map
    dynamic-profiles {
        user-profile {
            interfaces {
                "$junos-interface-ifd-name" {
                    unit "$junos-underlying-interface-unit" {
                        family inet;
                    }
                }
            }
        }
    }
    
  5. Configure a dynamic profile for VLAN demux interface creation.

    content_copy zoom_out_map
    dynamic-profiles {
        auto-vlanDemux-profile {
            interfaces {
                demux0 {
                    unit "$junos-interface-unit" {
                        vlan-tags outer "$junos-stacked-vlan-id" inner "$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 127.16.1.1;
                        }
                    }
                }
            }
        }
    }
    
  6. 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.

    content_copy zoom_out_map
    system {
        services {
            dhcp-local-server {
                group myDhcpGroup {
                    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.

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