Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

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

Configuring VLAN Interfaces for the Layer 2 Wholesale Solution

date_range 06-Dec-23

Clients access the Layer 2 Wholesale network through a specific interface. After they access this interface, and when they are authenticated, VLANs are dynamically created to carry the client traffic.

Note:

To support Layer 2 access profiles the RADIUS server must provide VLAN authentication.

To configure a VLAN interface for dynamic client access:

  1. Access the physical interface that you want to use for dynamically creating VLAN interfaces.
    content_copy zoom_out_map
    [edit interfaces]
    user@host# edit ge-2/3/0
    
  2. Specify the encapsulation type for the VLAN interfaces.
    content_copy zoom_out_map
    [edit interfaces ge-2/3/0]
    user@host# set encapsulation flexible-ethernet-services
    
  3. Specify the desired VLAN tagging.
    Note:

    This example uses flexible VLAN tagging to simultaneously support transmission of 802.1Q VLAN single-tag and dual-tag frames on logical interfaces on the same Ethernet port.

    content_copy zoom_out_map
    [edit interfaces ge-2/3/0]
    user@host# set flexible-vlan-tagging
    
  4. Specify that you want to automatically configure VLAN interfaces.
    content_copy zoom_out_map
    [edit interfaces ge-2/3/0]
    user@host# edit auto-configure
    
  5. Specify that you want to configure stacked VLANs.
    content_copy zoom_out_map
    [edit interfaces ge-2/3/0 auto-configure]
    user@host# edit stacked-vlan-ranges
    
  6. Create the dynamic VLAN profile that you want the interface to use.
    content_copy zoom_out_map
    [edit interfaces ge-2/3/0 auto-configure stacked-vlan-ranges]
    user@host# edit dynamic-profile Subscriber_Profile_Retail1
    
  7. Define the VLAN ranges for the dynamic profile.
    content_copy zoom_out_map
    [edit interfaces ge-2/3/0 auto-configure stacked-vlan-ranges dynamic-profile “Subscriber_Profile_Retail1”]
    user@host# set accept any
    user@host# set ranges any,any
    
  8. Move up two levels in the configuration hierarchy to define the VLAN authentication profile.
    content_copy zoom_out_map
    [edit interfaces ge-2/3/0 auto-configure stacked-vlan-ranges dynamic-profile “Subscriber_Profile_Retail1”]
    user@host# up 2 
    [edit interfaces ge-2/3/0 auto-configure stacked-vlan-ranges]
    user@host# set authentication password abc123
    user@host# set authentication username-include user-prefix user1
    user@host# set authentication username-include interface-name
    user@host# set access-profile access-profile-1
    
  9. Define a simple access profile that specifies the RADIUS server used to provide VLAN authentication. Use the top command to position yourself at the edit hierarchy.
    content_copy zoom_out_map
    [edit]
    user@host# set access profile access-profile-1 radius-server 10.10.10.1 secret abc123 
    
  10. Repeat steps for any other interfaces that you want to use for creating VLANs.

The configuration of the VLAN Interface for the Layer 2 wholesale dynamic profile is displayed in curly brace format:

content_copy zoom_out_map
[edit]
user@host# show interfaces
ge-2/3/0 {
    flexible-vlan-tagging;
    auto-configure {
        stacked-vlan-ranges {
            dynamic-profile Subscriber_Profile_Retail1 {
                accept any;
                ranges {
                    any,any;
                }
            }
            authentication {
                password abc123;
                username-include {
                    user-prefix user1;
                    interface-name;
                }
            }
            access-profile access-profile-1;
        }
    }
}
external-footer-nav