Support Support Downloads Knowledge Base Case Manager My Juniper Community

Knowledge Base

Search our Knowledge Base sites to find answers to your questions.

Ask All Knowledge Base Sites All Knowledge Base Sites JunosE Defect (KA)Knowledge BaseSecurity AdvisoriesTechnical BulletinsTechnotes Sign in to display secure content and recently viewed articles

[EX/QFX] Example - Configuring an interface range



Article ID: KB16354 KB Last Updated: 18 Jun 2020Version: 5.0

This article provides an example of configuring an interface range on the EX and QFX series of switches that can be applied to a single VLAN.


In the following steps, an example interface range "test" is configured and member interfaces are added to the interface range.

Note: For detailed information about configuring an interface range, refer to Interface Ranges.

  1. Configure a VLAN:
    user@juniper# set vlans vlan10 vlan-id 10
  2. Configure the interface range "test" to be a part of a vlan (vlan10, in this case):
    user@juniper# set interfaces interface-range test unit 0 family ethernet-switching vlan members vlan10
  3. Add member interfaces (actual physical interface) to the interface range:
    user@juniper# set interfaces interface-range test member-range ge-0/0/0 to ge-0/0/10
    user@juniper# commit check
    configuration check succeeds
    user@juniper# commit
    configuration check succeeds
    commit complete
  4. Verify that all physical interfaces in the interface range have become part of the member VLAN to which the "test" interface range was added:

user@juniper# run show vlans

Name                 Tag                Interfaces
                                        ge-0/0/11.0, ge-0/0/12.0, ge-0/0/13.0, ge-0/0/14.0,
                                        ge-0/0/15.0, ge-0/0/16.0*, ge-0/0/17.0, ge-0/0/18.0,
                                        ge-0/0/19.0, ge-0/0/20.0, ge-0/0/21.0, ge-0/0/22.0,
                                        ge-0/0/23.0, ge-0/1/0.0
                                        vlan10 10                            <<<<<<< Interfaces ge-0/0/0 - ge-0/0/10 in vlan10
                                        ge-0/0/0.0, ge-0/0/1.0, ge-0/0/2.0, ge-0/0/3.0,
                                        ge-0/0/4.0, ge-0/0/5.0, ge-0/0/6.0, ge-0/0/7.0,
                                        ge-0/0/8.0, ge-0/0/9.0, ge-0/0/10.0*

user@juniper# edit interfaces interface-range test
[edit interfaces interface-range test]
user@juniper# show
member-range ge-0/0/0 to ge-0/0/10;
unit 0 {
     family ethernet-switching {
          vlan {
               members 10;
Modification History:

2020/06/18 - Minor change in Summary. Article reviewed for accuracy; article accurate and valid.

Related Links

Comment on this article > Affected Products Browse the Knowledge Base for more articles related to these product categories. Select a category to begin.

Getting Up and Running with Junos

Getting Up and Running with Junos Security Alerts and Vulnerabilities Product Alerts and Software Release Notices Problem Report (PR) Search Tool EOL Notices and Bulletins JTAC User Guide Customer Care User Guide Pathfinder SRX High Availability Configurator SRX VPN Configurator Training Courses and Videos End User Licence Agreement Global Search