Interface Range Configuration
Table of Contents
1.1 Interface Range Configuration Task......................................................................................1
1.1.1 Understanding Interface Range..................................................................................1
1.1.2 Entering Interface Range Mode..................................................................................1
1.1.3 Configuration Example................................................................................................. 1
Interface Range Configuration
Chapter 1 Interface Range Configuration
1.1 Interface Range Configuration Task
1.1.1 Understanding Interface Range
In the process of configuring interface tasks, there are cases when you have to configure the
same attribute on ports of the same type. In order to avoid repeated configuration on each port,
we provide the interface range configuration mode. You can configure ports of the same type
and slot number with the same configuration parameters. This reduces the workload. Note:
when entering the interface range mode, all interfaces included in this mode must have been
established.
1.1.2 Entering Interface Range Mode
Run the following command to enter the interface range mode.
Procedure Command Purpose
1 interface range type Enters the range mode. All ports included in
slot/{port1-port2 | this mode accord to the following conditions:
port3}[,{port1-port2|port3}] 1) The slot number is set to slot.
2) The port numbers before/after the
hyphen (-) must range between port1
and port2, or equal toport3.
3) Port 2 must be no less than port1;
4) There must be space before/after the
hyphen (-) or the comma(,).
2 Interface range gpon Enters the range mode of LLID port. All ports
slot/port:{ channel1–chann included in this mode accord to the following
el | channel3}[, conditions:
{channel1–channel2|chan 1) PON port is slot/port;
nel3}] 2) The port numbers before/after the
hyphen (-) must range between channel
1 and channel 2, or equal to channel 3;
3) channel 2 must less than channel 1;
4) There must be no space before/after the
hyphen (-) or the comma(,).
1.1.3 Configuration Example
The following example shows how to enter the port configuration mode of gigabit Ethernet port
1, 2, 3 or 4 on slot 0.
switch_config# interface range g0/1-2,3-4
switch_config_if_range#
Run the following command to enter ONU port configuration mode, which includes three ONU
ports 1, 2 and 5 under gp0/1:
Interface Range Configuration
switch_config# interface range gp0/1:1-2,5
switch_config_if_range#