Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?


Configure Interface Ranges

To configure an interface range, use the interface-range statement at the [edit interfaces] hierarchy level. The interface-range statement accepts only physical networking interface names in its definition. Junos OS supports interface ranges for the following interface types:

  • ATM: at-fpc/pic/port

  • Channelized: (coc | cstm)n-fpc/pic/port

  • DPC: xe-fpc/pic/port

  • E1/E3: (e1 | e3)-fpc/pic/port

  • Ethernet: (xe | ge | fe)-fpc/pic/port

  • ISDN: isdn-fpc/pic/port

  • Serial: se-fpc/pic/port

  • SONET/SDH: so-fpc/pic/port

  • T1/T3: (t1 | t3)-fpc/pic/port

To configure an interface range:

  1. Use the interface-range statement at the [edit interfaces] hierarchy level. Include the name you have chosen for your interface range.

    For example, to configure an interface range named "range1":

  2. To specify a member range, use the member-range start-range to end-range statement at the [edit interfaces interface-range range-name] hierarchy level. For example:

  3. To specify an individual member, use the member statement at the [edit interfaces interface-range range-name] hierarchy level. For example:
  4. You can specify a list of interface range members using regular expressions with the member range of interface names statement. A range for a member statement can contain the following:
    • *—All. Specifies sequential interfaces from 0 through 47.


      The wildcard * in a member statement does not take into account the interface numbers supported by a specific interface type. Irrespective of the interface type, * includes interface numbers ranging from 0 through 47 to the interface group. Therefore, use * in a member statement with caution.

    • num—Number. Specifies one specific interface by its number.

    • [low-high]—Numbers from low to high. Specifies a range of sequential interfaces.

    • [num1, num2, num3]—Numbers num1, num2, and num3 specify multiple specific interfaces.

    Regular expressions and wildcards are not supported for interface-type prefixes. For example, prefixes et and xe must be mentioned explicitly.

    For example:

An interface-range definition can contain both member and member-range statements within it. There is no limit on the number of member or member-range statements within an interface-range definition. However, at least one member or member-range statement must exist within an interface-range definition.

An interface-range definition having just member or member-range statements and no common configuration statement is valid. However, you can optionally add a common configuration statement to an interface range as a part of the interface-range definition. For example:

These defined interface ranges can be used in other configuration hierarchies in places where an interface node exists. For example:

In the preceding example, the interface node can accept both individual interfaces and interface ranges.


To view an interface range in expanded configuration, use the (show | display inheritance) command.

Supported Hierarchies

By default, interface-range is not available to configure in the CLI where the interface statement is available. The following locations are supported. However, some of the hierarchies shown in this list are product specific:

  • ethernet-switching-options analyzer name input [egress | ingress ] interface

  • ethernet-switching-options analyzer name output interface

  • ethernet-switching-options bpdu-block interface

  • ethernet-switching-options interfaces ethernet-switching-options voip interface

  • ethernet-switching-options redundant-trunk-group group g1 interface

  • ethernet-switching-options secure-access-port interface

  • poe interface vlans pro-bng-mc1-bsd1 interface

  • protocols dot1x authentication interface

  • protocols dvmrp interface

  • protocols esis interface

  • protocols gvrp interface

  • protocols igmp interface

  • protocols igmp-snooping vlan name interface

  • protocols igmp-host client num interface

  • protocols isis interface

  • protocols layer2-control bpdu-block interface

  • protocols layer2-control mac-rewrite interface

  • protocols ldp interface

  • protocols link-management peer control-channel

  • protocols link-management peer lmp-control-channel interface

  • protocols link-management te-link name interface

  • protocols lldp interface

  • protocols lldp-med interface

  • protocols mld interface

  • protocols mld-host client num interface

  • protocols mpls interface

  • protocols mstp interface

  • protocols mstp msti id interface

  • protocols mstp msti vlan id interface

  • protocols oam ethernet link-fault-management interface

  • protocols oam ethernet lmi interface

  • protocols ospf area id interface

  • protocols pim interface

  • protocols rip group name neighbour

  • protocols ripng group name neighbour

  • protocols router-advertisement interface

  • protocols router-discovery interface

  • protocols rstp interface

  • protocols rsvp interface

  • protocols sflow interfaces

  • protocols snmp interface

  • protocols stp interface

  • protocols vstp interface

  • protocols vstp vlan name interface