Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?


Example: Configuring Virtual LAN Queuing and Shaping in PTX Series Packet Transport Routers

You can enable virtual LAN (VLAN) queuing on 100-Gigabit Ethernet interfaces on PTX Series Packet Transport Routers and specify a traffic-shaping rate for each VLAN.


This example uses the following hardware and software components:

  • Junos OS Release 13.2 or later.

  • One PTX5000 router.


This example shows how to configure 10 VLANs, enable class-of-service (CoS) queuing, and specify a traffic-shaping rate for each VLAN. The total traffic-shaping rate for all VLANs cannot exceed 100 Gbps.


CLI Quick Configuration

To configure VLAN queuing and traffic shaping on the PTX5000 router, copy the following commands and paste them into the terminal window of the router:


Step-by-Step Procedure

To configure the PTX5000 router:

  1. Enable the reception and transmission of 8021.q VLAN-tagged frames on the interface:

  2. Specify a VLAN identifier for each logical interface:

  3. Configure per-VLAN traffic shaping by specifying the amount of bandwidth to be allocated to each logical interface:


Confirm your results by entering the show interfaces and show class-of-service commands: