Knowledge Search


[EX] [QFX] Example - Configuring an interface range

  [KB16354] Show Article Properties


This article provides an example of configuring an interface range in the EX and QFX series of switches.


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;
Related Links: