Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Announcement: Try the Ask AI chatbot for answers to your technical questions about Juniper products and solutions.

close
header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
Junos CLI Reference
Table of Contents Expand all
list Table of Contents

interface-range

date_range 27-Apr-24

Syntax

content_copy zoom_out_map
interface-range name {
    member-range interface-name-fpc/pic/port to interface-name-fpc/pic/port;
    member interface-name-fpc/pic/port;
    member interface-name-fpc/[low-high]/*;
    member interface-name-fpc/[pic1,pic2,pic3...picN]/port
    
    /*Common config is added as part of interface-range definition, as follows*/
    mtu 256;
    hold-time up 10;
    ether-options {
        flow-control;
        speed {
            100m;
        }
        802.3ad primary;
    }
    
}

Hierarchy Level

content_copy zoom_out_map
\

Description

Specify a set of identical interfaces as an interface group, to which you can apply a common configuration to the entire set of interfaces. This group can consist of both lexical member ranges of interfaces specified using the member-range interface-type-fpc/pic/port to xx-fpc/pic/port option (regex not supported), and of individual or non-sequential members using the member interface-type-fpc/pic/port option (with regex support to specify the fpc/pic/port values).

Note: If PTP (Precision Time Protocol) is enabled on the last port (31 or 47, depending on the device) in member-range, the interface range unused option cannot be configured. The sample configuration varies for each platform. If PTP is enabled on an unused port, an error message is displayed.

Options

member-range

Adds interfaces in lexical order. Regex is not supported.

Format:

member-range <start-range> to <end-range>

Example:

member-range ge-0/0/0 to ge-4/0/40;

member

To add individual interfaces or multiple interfaces using regex.

Format:

member <list of interface names>

Example:

member ge-0/0/0;

member ge-0/1/1;

member ge-0/*/*;

member ge-0/[1-10]/0;

member ge-1/[1,3,6,10]/12

Required Privilege Level

interface—To view this statement in the configuration.

interface-control—To add this statement to the configuration.

Release Information

Statement introduced in Junos OS Release 10.0.

footer-navigation