Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

Example: Configuring a Dynamic Interface Set of VLAN Subscribers

Requirements

This example uses the following software and hardware components:

  • MX Series Router with MPCs

Overview

In this example, the network administrator groups dynamic VLAN interfaces in an interface set. The interface set is configured in a dynamic profile, and enables hierarchical scheduling for the VLAN interfaces for a multiplay service.

DHCP is used as the access method, and RADIUS is used as the authentication method for the interfaces associated with the interface set.

Configuring the Dynamic VLANs

CLI Quick Configuration

To quickly configure the dynamic VLANs, copy the following commands and paste them into the router terminal window:

Configuring the Dynamic Profile for the Autoconfigured VLANs

Step-by-Step Procedure

In this section, you create a dynamic profile for the VLAN IDs to be automatically assigned when subscribers log in.

To configure the dynamic profile for the VLANs:

  1. Configure the dynamic profile.

  2. Configure the interfaces.

  3. Add the VLAN ID variable.

  4. Configure the demux source as IPv4.

  5. Configure the family.

Configuring the VLAN Interfaces

Step-by-Step Procedure

To configure the VLAN interfaces:

  1. Create the VLAN interface.

  2. Enable hierarchical scheduling.

  3. Configure VLAN tagging.

  4. Configure auto-configuration for the dynamic profile.

  5. Configure any VLAN ID range.

  6. Specify IPv4 traffic for the VLAN.

Configuring the Loopback Interface

Step-by-Step Procedure

To configure the loopback interface:

  1. Create the loopback interface.

  2. Configure the unit and the family.

Configuring Dynamic Traffic Scheduling and Shaping

CLI Quick Configuration

To quickly configure the traffic scheduling and shaping parameters, copy the following commands and paste them into the router terminal window:

Configuring the Schedulers in the Dynamic Profile

Step-by-Step Procedure

In this section, you create a dynamic profile for the multiplay service and configure scheduling and shaping.

To configure the schedulers:

  1. Create the multiplay dynamic profile.

  2. Configure the best effort scheduler.

  3. Configure the expedited forwarding scheduler.

  4. Configure the assured forwarding scheduler.

  5. Configure the network control scheduler.

  6. Configure the voice scheduler.

  7. Configure the video scheduler.

  8. Configure the gaming scheduler.

  9. Configure the data scheduler.

Configuring the Scheduler Map in the Dynamic Profile

Step-by-Step Procedure

To configure the scheduler map:

  1. Configure the scheduler map for all of the services.

  2. Configure the forwarding classes for each service in the scheduler map.

Configuring the Traffic-Control Profile in the Dynamic Profile

Step-by-Step Procedure

To configure the traffic-control profile the interface set:

  1. Configure the traffic-control profile.

  2. Configure the scheduler map.

  3. Configure the shaping rate.

  4. Configure the guaranteed rate.

Configuring the Interface Set in the Dynamic Profile

CLI Quick Configuration

To quickly configure the interface set, copy the following commands and paste them into the router terminal window:

Configuring the Interfaces for the Interface Set

Step-by-Step Procedure

To configure the interface variable for the interface set:

  1. Configure the dynamic profile for the interface set.

  2. Configure the interface using the Junos OS predefined variable.

  3. Configure the family.

Configuring the Interface Set

Step-by-Step Procedure

To configure the interface set:

  1. Configure the interface set using the Junos OS predefined variable.

  2. Add the dynamic VLAN interfaces to the interface set.

Applying the Traffic-Control Profile to the Interface Set

Step-by-Step Procedure

You apply the traffic-control profile outside of the dynamic profile in the [edit class-of-service] hierarchy.

To apply the traffic-control profile:

  1. Specify the interface set to which you want to apply the traffic-control profile.

  2. Attach the output traffic-control profile defined in the dynamic profile to the interface set.

Configuring DHCP Access

CLI Quick Configuration

To quickly configure DHCP access, copy the following commands and paste them into the router terminal window:

Configuring the DHCP Local Server

Step-by-Step Procedure

To configure DHCP access:

  1. Configure the DHCP local server.

  2. Set the password.

  3. Specify that you want to include optional information in the username.

  4. Attach the dynamic profile with the interface set.

  5. Configure a group for the VLAN interface.

Configuring Address Assignment Pools

Step-by-Step Procedure

To configure address assignment pools:

  1. Configure the pool of IPv4 addresses.

  2. Configure the family of interfaces in the pool.

  3. Configure the upper and lower bounds of the address range.

  4. Configure the maximum length of time in seconds for which a subscriber can request and hold a lease.

Configuring RADIUS Authentication

CLI Quick Configuration

To quickly configure RADIUS authentication, copy the following commands and paste them into the router terminal window:

Configuring RADIUS Access

Step-by-Step Procedure

To configure RADIUS access:

  1. Configure the RADIUS server.

  2. Configure the required secret (password) that the local router or switch passes to the RADIUS client.

  3. Configure the length of time that the local router or switch waits to receive a response from a RADIUS server.

  4. Configure the number of times that the router or switch attempts to contact a RADIUS accounting server.

  5. Configure the access profile.

  6. Configure the authentication order.

  7. Configure the authentication server.

Results

Verification

To confirm that the configuration is correct, perform these tasks:

Verifying the Interfaces that are Included in the Interface Set

Purpose

Verify the interfaces included in the interface set.

Action

Verifying the Traffic Scheduling and Shaping Parameters for the Interface Set

Purpose

Verify that the traffic scheduling and shaping parameters are applied properly to an interface included in the interface set.

Action